~attente/gnome-control-center/keyboard-layout-panel

« back to all changes in this revision

Viewing changes to debian/patches/input-sources-text-entry.patch

  • Committer: William Hua
  • Date: 2013-09-30 21:00:02 UTC
  • Revision ID: william.hua@canonical.com-20130930210002-u3ilhzagjpk9d96w
Don't reference widget which may not exist.

Show diffs side-by-side

added added

removed removed

Lines of Context:
387
387
     }
388
388
   maybe_start_ibus ();
389
389
 }
 
390
@@ -909,7 +1223,7 @@
 
391
 
 
392
   g_debug ("add an input source");
 
393
 
 
394
-  toplevel = gtk_widget_get_toplevel (WID ("region_notebook"));
 
395
+  toplevel = gtk_widget_get_toplevel (WID ("active_input_sources"));
 
396
   treeview = WID ("active_input_sources");
 
397
   active_sources = GTK_LIST_STORE (tree_view_get_actual_model (GTK_TREE_VIEW (treeview)));
 
398
 
390
399
@@ -1150,6 +1464,8 @@
391
400
   const gchar *argv[] = { "shortcuts", "Typing", NULL };
392
401
   GError *error = NULL;
451
460
+                                            *key,
452
461
+                                            *code,
453
462
+                                            *mask,
454
 
+                                            gtk_widget_get_toplevel (WID ("region_notebook")));
 
463
+                                            gtk_widget_get_toplevel (GTK_WIDGET (entry)));
455
464
+
456
465
+  return edited ? GTK_ENTRY_ACCEL_UPDATE : GTK_ENTRY_ACCEL_IGNORE;
457
466
+}