~ubuntu-branches/ubuntu/oneiric/cairo-dock-plug-ins/oneiric-updates

« back to all changes in this revision

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

  • Committer: Kees Cook
  • Date: 2011-08-11 23:17:39 UTC
  • mfrom: (20.1.1 cairo-dock-plug-ins)
  • Revision ID: kees@outflux.net-20110811231739-cteedan51tmdg77v
Tags: 2.4.0~0beta2-0ubuntu1
releasing version 2.4.0~0beta2-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        cairo_dock_register_notification_on_object (&myContainersMgr,
41
41
                NOTIFICATION_DROP_DATA,
42
42
                (CairoDockNotificationFunc) cd_stack_on_drop_data,
43
 
                CAIRO_DOCK_RUN_FIRST, NULL);
 
43
                CAIRO_DOCK_RUN_FIRST, NULL);  // future instances of the applet will register before this, and therefore handle the drop of files on themselves.
44
44
CD_APPLET_DEFINE_END
45
45
 
46
46
 
61
61
 
62
62
//\___________ Here is where you stop your applet. myConfig and myData are still valid, but will be reseted to 0 at the end of the function. In the end, your applet will go back to its original state, as if it had never been activated.
63
63
CD_APPLET_STOP_BEGIN
64
 
        cairo_dock_remove_notification_func_on_object (&myContainersMgr,
65
 
                NOTIFICATION_CLICK_ICON,
66
 
                (CairoDockNotificationFunc) CD_APPLET_ON_CLICK_FUNC, myApplet);
 
64
        CD_APPLET_UNREGISTER_FOR_CLICK_EVENT;
67
65
        CD_APPLET_UNREGISTER_FOR_BUILD_MENU_EVENT;
68
66
        CD_APPLET_UNREGISTER_FOR_DROP_DATA_EVENT;
69
67
        CD_APPLET_UNREGISTER_FOR_MIDDLE_CLICK_EVENT;