summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-02-12 16:34:32 +0100
committerportix <portix@gmx.net>2012-02-12 16:34:32 +0100
commit0029950026c8499947d0f0b992c05262e432b52c (patch)
treec7e9d7effcb763ca702f6270d2d7543a4c5e976f /src/util.c
parent01673ff072f7257824ec564374600e31d5ed554d (diff)
downloaddwb-0029950026c8499947d0f0b992c05262e432b52c.zip
New commands tab_move, tab_move_left, tab_move_right
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index e5cfeded..766187bd 100644
--- a/src/util.c
+++ b/src/util.c
@@ -661,8 +661,11 @@ util_file_add_navigation(const char *filename, const Navigation *n, int append,
}/*}}}*/
void
-gtk_box_insert(GtkBox *box, GtkWidget *child, gboolean expand, gboolean fill, gint padding, int position) {
- gtk_box_pack_start(box, child, expand, fill, padding);
+gtk_box_insert(GtkBox *box, GtkWidget *child, gboolean expand, gboolean fill, gint padding, int position, GtkPackType packtype) {
+ if (packtype == GTK_PACK_START)
+ gtk_box_pack_start(box, child, expand, fill, padding);
+ else
+ gtk_box_pack_end(box, child, expand, fill, padding);
gtk_box_reorder_child(box, child, position);
}
void