summaryrefslogtreecommitdiff
path: root/src/dwb.c
diff options
context:
space:
mode:
authorportix <none@none>2012-12-01 14:17:53 +0100
committerportix <none@none>2012-12-01 14:17:53 +0100
commit887b7b3a36424f4319bb9afa8a51af0103a1ea16 (patch)
tree429d5e14de121f9d89a8193bc6d0b3dfc85e8526 /src/dwb.c
parentf8d42f34d2c146fa14780af3302ad8e70787b941 (diff)
downloaddwb-887b7b3a36424f4319bb9afa8a51af0103a1ea16.zip
Implementing all gui.* widgets
Diffstat (limited to 'src/dwb.c')
-rw-r--r--src/dwb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dwb.c b/src/dwb.c
index bfbeaed7..522a44ff 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -3758,16 +3758,16 @@ dwb_init_gui() {
#else
dwb.gui.status_hbox = gtk_hbox_new(false, 2);
#endif
- GtkWidget *alignment = gtk_alignment_new(0.5, 0.5, 1, 1);
+ dwb.gui.alignment = gtk_alignment_new(0.5, 0.5, 1, 1);
int padding = GET_INT("bars-padding");
- gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), padding, padding, padding, padding);
- gtk_container_add(GTK_CONTAINER(alignment), dwb.gui.status_hbox);
+ gtk_alignment_set_padding(GTK_ALIGNMENT(dwb.gui.alignment), padding, padding, padding, padding);
+ gtk_container_add(GTK_CONTAINER(dwb.gui.alignment), dwb.gui.status_hbox);
gtk_box_pack_start(GTK_BOX(dwb.gui.status_hbox), dwb.gui.lstatus, false, false, 0);
gtk_box_pack_start(GTK_BOX(dwb.gui.status_hbox), dwb.gui.entry, true, true, 0);
gtk_box_pack_start(GTK_BOX(dwb.gui.status_hbox), dwb.gui.urilabel, true, true, 0);
gtk_box_pack_start(GTK_BOX(dwb.gui.status_hbox), dwb.gui.rstatus, false, false, 0);
- gtk_container_add(GTK_CONTAINER(dwb.gui.statusbox), alignment);
+ gtk_container_add(GTK_CONTAINER(dwb.gui.statusbox), dwb.gui.alignment);
gtk_box_pack_end(GTK_BOX(dwb.gui.vbox), scratchpad_get(), false, false, 0);
gtk_container_add(GTK_CONTAINER(dwb.gui.window), dwb.gui.vbox);