From 1f9ae38c2f558ae160e859754b9d44e3f76fc47b Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 22 Aug 2011 14:22:37 +0200 Subject: 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 --- panels/keyboard/keyboard-general.c | 2 +- panels/universal-access/cc-ua-panel.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'panels') 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 -- cgit v1.2.1