]> git.0d.be Git - empathy.git/commitdiff
Add an empty expanded GtkToolItem so the volume button is at the end of the toolbar.
authorGuillaume Desmottes <gdesmott@gnome.org>
Mon, 16 Feb 2009 21:24:54 +0000 (21:24 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 16 Feb 2009 21:24:54 +0000 (21:24 +0000)
From: Guillaume Desmottes <gdesmott@gnome.org>

svn path=/trunk/; revision=2482

src/empathy-call-window.c

index f8c32a9c80ec93c722e351a0fd2932b42a0f7c81..d39a333d897efe6cb3ff96ac4f9286d8ad521632 100644 (file)
@@ -135,6 +135,13 @@ empathy_call_window_setup_toolbar (EmpathyCallWindow *self)
 
   toolbar = glade_xml_get_widget (priv->glade, "toolbar1");
 
+  /* Add an empty expanded GtkToolItem so the volume button is at the end of
+   * the toolbar. */
+  tool_item = gtk_tool_item_new ();
+  gtk_tool_item_set_expand (tool_item, TRUE);
+  gtk_widget_show (GTK_WIDGET (tool_item));
+  gtk_toolbar_insert (GTK_TOOLBAR (toolbar), tool_item, -1);
+
   tool_item = gtk_tool_item_new ();
   volume_button = gtk_volume_button_new ();
   gtk_container_add (GTK_CONTAINER (tool_item), volume_button);