hi everybody,
My problem is i am setting width and hight to 50,50 as bellow and aswell as from glade tool.
But it is not happennig it.
could any one help me out where i am going wrong.
Code:
short int Decorations(void)
{
GtkWidget *win;
static int count= 0;
win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_modal ((GtkWindow *)win,TRUE);
gtk_widget_set_size_request(Param_widgets.progress_window,50,50);
gtk_window_set_decorated((GtkWindow *)Param_widgets.progress_window,FALSE);
gtk_container_add (GTK_CONTAINER (win),Param_widgets.progrss_image);
gtk_widget_show(Param_widgets.progress_window);
while(1)
{
switch(count)
{
case 0:gtk_image_set_from_file((GtkImage*)Param_widgets.progrss_image,"P1.png");break;
case 1:gtk_image_set_from_file((GtkImage*)Param_widgets.progrss_image,"P2.png");break;
case 2:gtk_image_set_from_file((GtkImage*)Param_widgets.progrss_image,"P3.png");break;
case 3:gtk_image_set_from_file((GtkImage*)Param_widgets.progrss_image,"P4.png");break;
case 4:gtk_image_set_from_file((GtkImage*)Param_widgets.progrss_image,"P5.png");break;
case 5:gtk_image_set_from_file((GtkImage*)Param_widgets.progrss_image,"P6.png");break;
case 6:gtk_image_set_from_file((GtkImage*)Param_widgets.progrss_image,"P7.png");break;
case 7:gtk_image_set_from_file((GtkImage*)Param_widgets.progrss_image,"P8.png");break;
default:break;
}
if(7 == count++)
count= 0;
//g_static_mutex_lock(&my_mutex);
if(NO == cntl_response || cntl_response>0)
{
gtk_widget_destroy(win);
g_thread_exit( thread3);
}
//g_static_mutex_unlock(&my_mutex);
}
}
Added CodeBB -dreblen
thanks and regards,
harinath.