Problems with GtkFrame



Hi!

I write a small application which show a small window. And this a
GtkFrame. And this does not work correct. Here is my source code

--snip--
	gtk_init(&argc, &argv);

	window = g_object_new(GTK_TYPE_WINDOW,
						  "title", PACKAGE_STRING,
						  "type", GTK_WINDOW_TOPLEVEL,
						  "resizable", FALSE,
						  "window-position", GTK_WIN_POS_CENTER,
						  NULL);

	frame = g_object_new(GTK_TYPE_FRAME,
						"label", "",
						"shadow-type", GTK_SHADOW_ETCHED_IN,
						"border-width", 10,
						NULL);
	gtk_container_add(GTK_CONTAINER(window), frame);

	vbox = g_object_new(GTK_TYPE_VBOX,
						"homogeneous", FALSE,
						"spacing", 5,
						"border-width", 5,
						NULL);
	gtk_container_add(GTK_CONTAINER(frame), vbox);

	label = g_object_new(GTK_TYPE_LABEL,
						"label", " Searching for devices ",
						NULL);
	gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 2);

	gtk_widget_show_all(window);

	usleep(100000);
	while (gtk_events_pending()) {
		gtk_main_iteration();
	}
--snap--

frame = g_object_new(GTK_TYPE_FRAME, "label", "",

I need the empty label to get this frame to work. Why that?

OS: Debian Etch (testing)
Gtk+ 2.8.20

In Debian SID it works

CU        
         
  Michael  
          
-- 
    ,''`.   Michael Ott, e-mail: michael at zolnott dot de
   : :' :   Debian SID on Thinkpad T43: 
   `. `'    http://www.zolnott.de/laptop/ibm-t43-uc34nge.html 
     `-     
Jeden Mittwoch von 21 - 24 Uhr. Zosh! auf Radio Z. 
Das Härteste, was der Musikmarkt zu bieten hat. http://www.zosh.de
Online hören: http://www.radio-z.net 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]