~jgonzalezdr/cairo-dock-plug-ins/suspend-workaround-applet_3.3

« back to all changes in this revision

Viewing changes to GMenu/src/applet-init.c

  • Committer: Fabrice Rey
  • Date: 2013-05-19 17:26:37 UTC
  • Revision ID: fabounet03@gmail.com-20130519172637-cc4oyb5q3z0jd139
Here is quite a huge commit; it's "just" to update to the new core API

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        CD_APPLET_UNREGISTER_FOR_BUILD_MENU_EVENT;
78
78
 
79
79
        // keyboard events
80
 
        cd_keybinder_unbind (myData.cKeyBinding);
81
 
        cd_keybinder_unbind (myData.cKeyBindingQuickLaunch);
 
80
        gldi_object_unref (GLDI_OBJECT(myData.cKeyBinding));
 
81
        gldi_object_unref (GLDI_OBJECT(myData.cKeyBindingQuickLaunch));
82
82
        
83
83
CD_APPLET_STOP_END
84
84
 
94
94
 
95
95
                CD_APPLET_SET_DEFAULT_IMAGE_ON_MY_ICON_IF_NONE;  // set the default icon if none is specified in conf.
96
96
                
97
 
                cd_keybinder_rebind (myData.cKeyBinding, myConfig.cMenuShortkey, NULL);
98
 
                cd_keybinder_rebind (myData.cKeyBindingQuickLaunch, myConfig.cQuickLaunchShortkey, NULL);
 
97
                gldi_shortkey_rebind (myData.cKeyBinding, myConfig.cMenuShortkey, NULL);
 
98
                gldi_shortkey_rebind (myData.cKeyBindingQuickLaunch, myConfig.cQuickLaunchShortkey, NULL);
99
99
                
100
100
                // on reset ce qu'il faut.
101
101
                if (myData.pMenu != NULL &&