summaryrefslogtreecommitdiff
path: root/panels/universal-access
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-11-09 14:30:39 +0100
committerBastien Nocera <hadess@hadess.net>2012-11-09 15:58:51 +0100
commitc384570bace7055e5fb6b7e9208086e749fd325d (patch)
treeb6198982193bdf161cafdeb746dc0c9a42636cf8 /panels/universal-access
parent8a2d00f4369bf812f6e69b1272e1644e2a8ad716 (diff)
downloadgnome-control-center-c384570bace7055e5fb6b7e9208086e749fd325d.tar.gz
universal-access: Always show the zoom options
Now that the fallback mode is gone. #fallback https://bugzilla.gnome.org/show_bug.cgi?id=682862
Diffstat (limited to 'panels/universal-access')
-rw-r--r--panels/universal-access/cc-ua-panel.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c
index 8bee6b1db..183b58e0b 100644
--- a/panels/universal-access/cc-ua-panel.c
+++ b/panels/universal-access/cc-ua-panel.c
@@ -58,7 +58,6 @@ struct _CcUaPanelPrivate
GSettings *mediakeys_settings;
ZoomOptions *zoom_options;
- guint shell_watch_id;
};
@@ -93,12 +92,6 @@ cc_ua_panel_dispose (GObject *object)
{
CcUaPanelPrivate *priv = CC_UA_PANEL (object)->priv;
- if (priv->shell_watch_id)
- {
- g_bus_unwatch_name (priv->shell_watch_id);
- priv->shell_watch_id = 0;
- }
-
if (priv->builder)
{
g_object_unref (priv->builder);
@@ -302,29 +295,6 @@ cc_ua_panel_set_shortcut_label (CcUaPanel *self,
g_free (text);
}
-static void
-shell_vanished_cb (GDBusConnection *connection,
- const gchar *name,
- CcUaPanel *self)
-{
- CcUaPanelPrivate *priv = self->priv;
-
- gtk_widget_hide (WID (priv->builder, "zoom_label_box"));
- gtk_widget_hide (WID (priv->builder, "zoom_value_box"));
-}
-
-static void
-shell_appeared_cb (GDBusConnection *connection,
- const gchar *name,
- const gchar *name_owner,
- CcUaPanel *self)
-{
- CcUaPanelPrivate *priv = self->priv;
-
- gtk_widget_show (WID (priv->builder, "zoom_label_box"));
- gtk_widget_show (WID (priv->builder, "zoom_value_box"));
-}
-
static gboolean
get_large_text_mapping (GValue *value,
GVariant *variant,
@@ -421,13 +391,6 @@ cc_ua_panel_init_seeing (CcUaPanel *self)
WID (priv->builder, "seeing_toggle_keys_switch"), "active",
G_SETTINGS_BIND_DEFAULT);
- priv->shell_watch_id = g_bus_watch_name (G_BUS_TYPE_SESSION,
- "org.gnome.Shell",
- G_BUS_NAME_WATCHER_FLAGS_NONE,
- (GBusNameAppearedCallback) shell_appeared_cb,
- (GBusNameVanishedCallback) shell_vanished_cb,
- self,
- NULL);
g_signal_connect (WID (priv->builder, "seeing_zoom_preferences_button"),
"clicked",
G_CALLBACK (zoom_options_launch_cb), self);