Make Xfce headers look like the real thing

This commit is contained in:
Nick Schermer 2009-01-09 23:59:39 +01:00 committed by Christian Dywan
parent b6e33e5399
commit 626c5c904f

View file

@ -300,6 +300,8 @@ sokoke_xfce_header_new (const gchar* icon,
GtkWidget* hbox; GtkWidget* hbox;
GtkWidget* image; GtkWidget* image;
GtkWidget* label; GtkWidget* label;
GtkWidget* vbox;
GtkWidget* separator;
xfce_heading = gtk_event_box_new (); xfce_heading = gtk_event_box_new ();
entry = gtk_entry_new (); entry = gtk_entry_new ();
@ -323,7 +325,14 @@ sokoke_xfce_header_new (const gchar* icon,
gtk_container_add (GTK_CONTAINER (xfce_heading), hbox); gtk_container_add (GTK_CONTAINER (xfce_heading), hbox);
g_free (markup); g_free (markup);
gtk_widget_destroy (entry); gtk_widget_destroy (entry);
return xfce_heading;
vbox = gtk_vbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), xfce_heading, FALSE, FALSE, 0);
separator = gtk_hseparator_new ();
gtk_box_pack_start (GTK_BOX (vbox), separator, FALSE, FALSE, 0);
return vbox;
} }
return NULL; return NULL;
} }