aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <gdesmott@gnome.org>2009-02-17 05:24:50 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-02-17 05:24:50 +0800
commitfd8da2db3d38010d88c43dfb6bfaf7bda25a5c4a (patch)
tree74aedeee1800287679f3c9cb88f4d52225705035 /src/empathy-call-window.c
parent8b42924a86066e2e62a69376aac5dec523145f8a (diff)
downloadgsoc2013-empathy-fd8da2db3d38010d88c43dfb6bfaf7bda25a5c4a.tar
gsoc2013-empathy-fd8da2db3d38010d88c43dfb6bfaf7bda25a5c4a.tar.gz
gsoc2013-empathy-fd8da2db3d38010d88c43dfb6bfaf7bda25a5c4a.tar.bz2
gsoc2013-empathy-fd8da2db3d38010d88c43dfb6bfaf7bda25a5c4a.tar.lz
gsoc2013-empathy-fd8da2db3d38010d88c43dfb6bfaf7bda25a5c4a.tar.xz
gsoc2013-empathy-fd8da2db3d38010d88c43dfb6bfaf7bda25a5c4a.tar.zst
gsoc2013-empathy-fd8da2db3d38010d88c43dfb6bfaf7bda25a5c4a.zip
Manually add the GtkVolumeButton to the toolbar instead of fitting an empty hole defined in Glade
From: Guillaume Desmottes <gdesmott@gnome.org> svn path=/trunk/; revision=2481
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 24d88e646..f8c32a9c8 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -120,9 +120,10 @@ empathy_call_window_setup_toolbar (EmpathyCallWindow *self)
EmpathyCallWindowPriv *priv = GET_PRIV (self);
GtkWidget *hangup;
GtkWidget *mic;
- GtkWidget *volume;
GtkWidget *volume_button;
GtkWidget *camera;
+ GtkWidget *toolbar;
+ GtkToolItem *tool_item;
hangup = glade_xml_get_widget (priv->glade, "hangup");
@@ -132,10 +133,14 @@ empathy_call_window_setup_toolbar (EmpathyCallWindow *self)
mic = glade_xml_get_widget (priv->glade, "microphone");
gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (mic), TRUE);
- volume = glade_xml_get_widget (priv->glade, "volume");
+ toolbar = glade_xml_get_widget (priv->glade, "toolbar1");
+
+ tool_item = gtk_tool_item_new ();
volume_button = gtk_volume_button_new ();
- gtk_container_add (GTK_CONTAINER (volume), volume_button);
+ gtk_container_add (GTK_CONTAINER (tool_item), volume_button);
gtk_scale_button_set_value (GTK_SCALE_BUTTON (volume_button), 0.5);
+ gtk_widget_show_all (GTK_WIDGET (tool_item));
+ gtk_toolbar_insert (GTK_TOOLBAR (toolbar), tool_item, -1);
camera = glade_xml_get_widget (priv->glade, "camera");
gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (camera), FALSE);