]> git.0d.be Git - empathy.git/commitdiff
Don't show empathy-call preferences when not building empathy-call
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Mon, 15 Aug 2011 23:09:13 +0000 (00:09 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Tue, 16 Aug 2011 12:05:00 +0000 (13:05 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=656582

src/empathy-preferences.c
src/empathy-preferences.ui

index 5618caeaf8a72d7e69fb33feeb5843def10535ae..c0fc679cf34496a75a06497a7dcf709d6da6c257 100644 (file)
@@ -1160,6 +1160,8 @@ empathy_preferences_init (EmpathyPreferences *preferences)
        GtkBuilder                *gui;
        gchar                     *filename;
        GtkWidget                 *page;
+       GtkWidget                 *call_volume_scale_box;
+       GtkWidget                 *call_volume_bar_box;
 
        priv = preferences->priv = G_TYPE_INSTANCE_GET_PRIVATE (preferences,
                        EMPATHY_TYPE_PREFERENCES, EmpathyPreferencesPriv);
@@ -1202,6 +1204,8 @@ empathy_preferences_init (EmpathyPreferences *preferences)
                "checkbutton_location_resource_network", &priv->checkbutton_location_resource_network,
                "checkbutton_location_resource_cell", &priv->checkbutton_location_resource_cell,
                "checkbutton_location_resource_gps", &priv->checkbutton_location_resource_gps,
+               "call_volume_scale_box", &call_volume_scale_box,
+               "call_volume_bar_box", &call_volume_bar_box,
                "call_volume_scale", &priv->scale_call_volume,
                "call_volume_adjustment", &priv->adj_call_volume,
                "call_echo_cancellation", &priv->echo_cancellation,
@@ -1233,6 +1237,11 @@ empathy_preferences_init (EmpathyPreferences *preferences)
                          G_CALLBACK (preferences_call_format_volume_cb),
                          preferences);
 
+#ifndef HAVE_CALL
+       gtk_widget_hide (call_volume_scale_box);
+       gtk_widget_hide (call_volume_bar_box);
+#endif
+
        preferences_themes_setup (preferences);
 
        preferences_setup_widgets (preferences);
index ab06b21bf21d7edf96b141f10e41a9842767314b..791f3fbd9052bf7919d82d1b1220bc7b4e162872 100644 (file)
                     <property name="orientation">vertical</property>
                     <property name="spacing">6</property>
                     <child>
-                      <object class="GtkBox" id="box5">
+                      <object class="GtkBox" id="call_volume_scale_box">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="spacing">6</property>
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkBox" id="box6">
+                      <object class="GtkBox" id="call_volume_bar_box">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="spacing">6</property>