summaryrefslogtreecommitdiff
path: root/panels
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2011-08-22 14:22:37 +0200
committerGiovanni Campagna <gcampagna@src.gnome.org>2011-09-05 18:07:52 +0200
commit1f9ae38c2f558ae160e859754b9d44e3f76fc47b (patch)
tree6c2701ce6c01d6a1226a622c6288d5db6622761f /panels
parent67a28bb6297daf91f7e5e5dc3c015664399a66ec (diff)
downloadgnome-control-center-1f9ae38c2f558ae160e859754b9d44e3f76fc47b.tar.gz
Add a way for panels to receive additional arguments.
This patch introduces the "argv" property to CcPanel. Panels that wish to handle extra arguments shall override it and act appropriately in the constructor. https://bugzilla.gnome.org/show_bug.cgi?id=657093
Diffstat (limited to 'panels')
-rw-r--r--panels/keyboard/keyboard-general.c2
-rw-r--r--panels/universal-access/cc-ua-panel.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/panels/keyboard/keyboard-general.c b/panels/keyboard/keyboard-general.c
index 7f1a00e2e..26c1db0d2 100644
--- a/panels/keyboard/keyboard-general.c
+++ b/panels/keyboard/keyboard-general.c
@@ -63,7 +63,7 @@ layout_link_clicked (GtkLinkButton *button,
GError *error = NULL;
shell = cc_panel_get_shell (panel);
- if (cc_shell_set_active_panel_from_id (shell, "region", &error) == FALSE)
+ if (cc_shell_set_active_panel_from_id (shell, "region", NULL, &error) == FALSE)
{
g_warning ("Failed to activate Region panel: %s", error->message);
g_error_free (error);
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c
index c125ba4a1..16e8eedf7 100644
--- a/panels/universal-access/cc-ua-panel.c
+++ b/panels/universal-access/cc-ua-panel.c
@@ -587,7 +587,7 @@ hearing_sound_preferences_clicked (GtkButton *button,
CcShell *shell;
shell = cc_panel_get_shell (CC_PANEL (panel));
- cc_shell_set_active_panel_from_id (shell, "sound", NULL);
+ cc_shell_set_active_panel_from_id (shell, "sound", NULL, NULL);
}
static void
@@ -639,7 +639,7 @@ typing_keyboard_preferences_clicked (GtkButton *button,
CcShell *shell;
shell = cc_panel_get_shell (CC_PANEL (panel));
- cc_shell_set_active_panel_from_id (shell, "keyboard", NULL);
+ cc_shell_set_active_panel_from_id (shell, "keyboard", NULL, NULL);
}
static void
@@ -709,7 +709,7 @@ pointing_mouse_preferences_clicked_cb (GtkButton *button,
CcShell *shell;
shell = cc_panel_get_shell (CC_PANEL (panel));
- cc_shell_set_active_panel_from_id (shell, "mouse", NULL);
+ cc_shell_set_active_panel_from_id (shell, "mouse", NULL, NULL);
}
static void