[gnome-control-center] keyboard: Link directly to the layouts page



commit 220180752486e4dae68cd897474a6c0b0a4bdd00
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 8 17:23:22 2011 +0100

    keyboard: Link directly to the layouts page
    
    In the region panel, now that it supports switching pages.

 panels/keyboard/keyboard-general.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/keyboard/keyboard-general.c b/panels/keyboard/keyboard-general.c
index 26c1db0..7b4af75 100644
--- a/panels/keyboard/keyboard-general.c
+++ b/panels/keyboard/keyboard-general.c
@@ -61,9 +61,10 @@ layout_link_clicked (GtkLinkButton *button,
 {
   CcShell *shell;
   GError *error = NULL;
+  const char *argv[] = { "layouts", NULL };
 
   shell = cc_panel_get_shell (panel);
-  if (cc_shell_set_active_panel_from_id (shell, "region", NULL, &error) == FALSE)
+  if (cc_shell_set_active_panel_from_id (shell, "region", argv, &error) == FALSE)
     {
       g_warning ("Failed to activate Region panel: %s", error->message);
       g_error_free (error);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]