Clean up Tomboy's code
[tilda-gobject.git] / tomboykeybinder.c
index b29e2a1..cea1725 100644 (file)
@@ -94,10 +94,16 @@ do_grab_key (Binding *binding)
        if (keymap == NULL || rootwin == NULL)
                return FALSE;
 
+       gtk_accelerator_parse (binding->keystring, &keysym, &virtual_mods);
+
+       if (keysym == 0 && virtual_mods == 0)
+               return FALSE;
+#if 0
        if (!egg_accelerator_parse_virtual (binding->keystring, 
                                            &keysym, 
                                            &virtual_mods))
                return FALSE;
+#endif
 
        TRACE (g_print ("Got accel %d, %d\n", keysym, virtual_mods));
 
@@ -283,6 +289,7 @@ tomboy_keybinder_unbind (const char           *keystring,
        }
 }
 
+#if 0
 /* 
  * From eggcellrenderkeys.c.
  */
@@ -311,6 +318,7 @@ tomboy_keybinder_is_modifier (guint keycode)
 
        return retval;
 }
+#endif
 
 guint32
 tomboy_keybinder_get_current_event_time (void)