diff options
author | portix <portix@gmx.net> | 2011-12-31 13:47:43 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2011-12-31 13:47:43 +0100 |
commit | f12aafe0fd66d41a94d955c3cad2c19600f57543 (patch) | |
tree | c4a46693a08beafb961cb3ada9f84dd065d9156e /src/util.c | |
parent | 4e5bd32e81d26b97c340d32b9a39bdc706a22573 (diff) | |
download | dwb-f12aafe0fd66d41a94d955c3cad2c19600f57543.zip |
Removed setting top-statusbar, tabbar-position; introducing new setting widget-packing
--HG--
branch : experimental
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -659,6 +659,13 @@ gtk_box_insert(GtkBox *box, GtkWidget *child, gboolean expand, gboolean fill, gi gtk_box_pack_start(box, child, expand, fill, padding); gtk_box_reorder_child(box, child, position); } +void +gtk_widget_remove_from_parent(GtkWidget *widget) { + g_object_ref(widget); + GtkWidget *parent = gtk_widget_get_parent(widget); + gtk_container_remove(GTK_CONTAINER(parent), widget); +} + char * util_strcasestr(const char *haystack, const char *needle) { if (needle == NULL || ! *needle ) |