~ubuntu-branches/ubuntu/quantal/cairo-dock-plug-ins/quantal-201208191523

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2011-04-20 20:46:51 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110420204651-ftnpzesj6uc7qeul
Tags: 2.3.0~1-0ubuntu1
* New Upstream Version (LP: #723995)
* Upstream short ChangeLog (since 2.3.0~0rc1):
 - Updated translations
 - Updated the integration of the new versions of kwin and compiz
    (Switcher, ShowDesktop, etc.)
 - Removed a lot of useless g_print
 - Updated a few plug-ins to fit with the new version of the API (gldit)
 - Fixed a few bugs
 - Updated MeMenu, MessagingMenu and Status-Notifier to works
    with the latest version of dbusmenu, etc.
* Switch to dpkg-source 3.0 (quilt) format
* debian/cairo-dock-plug-ins.install:
 - Added new files (interfaces for python, ruby, vala and mono)
* debian/control:
 - Added new dependences for new applets (sensors and zeitgeist)
    and new interfaces (python, valac, ruby and mono)
 - Updated the version of cairo-dock build-dependences
* debian/rules:
 - Added a new CMake flag to install python interface in debian/tmp
* Updated debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
                CD_APPLET_SET_DEFAULT_IMAGE_ON_MY_ICON_IF_NONE;  // set the default icon if none is specified in conf.
50
50
        
51
51
        //\_______________ On charge les icones dans un sous-dock.
52
 
        myData.pTask = cairo_dock_new_task (0,
53
 
                (CairoDockGetDataAsyncFunc) cd_shortcuts_get_shortcuts_data,
54
 
                (CairoDockUpdateSyncFunc) cd_shortcuts_build_shortcuts_from_data,
55
 
                myApplet);
56
 
        cairo_dock_launch_task (myData.pTask);
 
52
        cd_shortcuts_start (myApplet);
57
53
        
58
 
        cairo_dock_register_notification (CAIRO_DOCK_CLICK_ICON, (CairoDockNotificationFunc) CD_APPLET_ON_CLICK_FUNC, CAIRO_DOCK_RUN_FIRST, myApplet);  // on se met en premier pour pas que le dock essaye de lancer nos icones.
 
54
        cairo_dock_register_notification_on_object (&myContainersMgr,
 
55
                NOTIFICATION_CLICK_ICON,
 
56
                (CairoDockNotificationFunc) CD_APPLET_ON_CLICK_FUNC,
 
57
                CAIRO_DOCK_RUN_FIRST, myApplet);  // on se met en premier pour pas que le dock essaye de lancer nos icones.
59
58
        CD_APPLET_REGISTER_FOR_BUILD_MENU_EVENT;
60
59
        CD_APPLET_REGISTER_FOR_MIDDLE_CLICK_EVENT;
61
60
        CD_APPLET_REGISTER_FOR_DROP_DATA_EVENT;
62
 
        cairo_dock_register_notification (CAIRO_DOCK_STOP_ICON, (CairoDockNotificationFunc) cd_shortcuts_free_data, CAIRO_DOCK_RUN_AFTER, myApplet);
 
61
        cairo_dock_register_notification_on_object (&myIconsMgr,
 
62
                NOTIFICATION_STOP_ICON,
 
63
                (CairoDockNotificationFunc) cd_shortcuts_free_data,
 
64
                CAIRO_DOCK_RUN_AFTER, myApplet);
63
65
CD_APPLET_INIT_END
64
66
 
65
67
 
69
71
        CD_APPLET_UNREGISTER_FOR_BUILD_MENU_EVENT;
70
72
        CD_APPLET_UNREGISTER_FOR_MIDDLE_CLICK_EVENT;
71
73
        CD_APPLET_UNREGISTER_FOR_DROP_DATA_EVENT;
72
 
        cairo_dock_remove_notification_func (CAIRO_DOCK_STOP_ICON, (CairoDockNotificationFunc) cd_shortcuts_free_data, myApplet);
 
74
        cairo_dock_remove_notification_func_on_object (&myIconsMgr,
 
75
                NOTIFICATION_STOP_ICON,
 
76
                (CairoDockNotificationFunc) cd_shortcuts_free_data, myApplet);
73
77
CD_APPLET_STOP_END
74
78
 
75
79
 
83
87
                if (myDock)
84
88
                        CD_APPLET_SET_DEFAULT_IMAGE_ON_MY_ICON_IF_NONE;  // set the default icon if none is specified in conf.
85
89
                
86
 
                myData.pTask = cairo_dock_new_task (0,
87
 
                        (CairoDockGetDataAsyncFunc) cd_shortcuts_get_shortcuts_data,
88
 
                        (CairoDockUpdateSyncFunc) cd_shortcuts_build_shortcuts_from_data,
89
 
                        myApplet);
90
 
                cairo_dock_launch_task (myData.pTask);
 
90
                cd_shortcuts_start (myApplet);
91
91
        }
92
92
CD_APPLET_RELOAD_END
93
93