~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.3.0-2.1

« back to all changes in this revision

Viewing changes to Scooby-Do/src/applet-init.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe), Matthieu Baerts (matttbe), Didier Roche
  • Date: 2010-09-18 14:20:27 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100918142027-b0zsay70mqxv63l0
Tags: 2.2.0~2-0ubuntu1
[ Matthieu Baerts (matttbe) ]
* New Upstream Version (LP: #638529)
* Fixed a few bugs on LP:
 - Fixed a crash in rainbow view when the cone is completely opened
 - Fixed a crash in rainbow view if the subdock is empty
 - Installed in lib directory by default even in 64bits arch
 - Status-Notifier: fixed few bugs
 - Clock applet:
   - Notify of missed tasks (moved some functions to a new file)
   - Fixed a little memory leak
 - Removed some 'g_print' (LP: #500677: xsession-errors log)
* Updated translations
* debian/control
 - Updated the version of cairo-dock-dev and cairo-dock-core

[ Didier Roche ]
* debian/control: depends on latest libindicator-dev (LP: #637692)

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
CD_APPLET_DEFINE_BEGIN ("Scooby-Do",
37
37
        2, 1, 4,
38
38
        CAIRO_DOCK_CATEGORY_APPLET_SYSTEM,
39
 
        N_("This plug-in allows you to make different actions directly from the keyboard.\n"
40
 
        "It has 2 modes, each one being triggered by a keyboard shortcut:\n\n"
41
 
        "- the finder mode (default shortcut : CTRL + Enter) :\n"
42
 
        "    It lets you find and launch applications, files, recent files, firefox bookmarks, commands, and even calculations.\n"
43
 
        "    Type what you want to search, the results will be displayed in real time.\n"
44
 
        "    The first results of each category are displayed in the main listing.\n"
45
 
        "    Use the up/down arrows to navigate inside the list,\n"
46
 
        "    and use the left/right arrows to enter into a category, or to display more actions (when a little arrow is drawn next to text).\n"
47
 
        "    Once inside a category, you can filter the results by typing some letters.\n"
48
 
        "    Press Enter to validate, maintain SHIFT or ALT to keep the list of results opened.\n\n"
49
 
        "- the navigation mode (default shortcut : CTRL + F9) :\n"
50
 
        "    use the arrows to navigate into the docks and sub-docks,\n"
51
 
        "    or type the name of a launcher and press Tab to automatically jump to the next suitable launcher\n"
52
 
        "    press Enter to click on the icon, Shift+Enter for Shift+click, Alt+Enter for middle click, and Ctrl+Enter for left click\n"
 
39
        ("This plug-in allows you to make different actions directly from the keyboard.\n"
 
40
        "It is triggered by a keyboard shortcut (by default: CTRL + Enter):\n"
 
41
        "It lets you find and launch applications, files, recent files, firefox bookmarks, commands, and even calculations.\n"
 
42
        "Type what you want to search, the results will be displayed in real time.\n"
 
43
        "The first results of each category are displayed in the main listing.\n"
 
44
        "Use the up/down arrows to navigate inside the list,\n"
 
45
        " and use the left/right arrows to enter into a category, or to display more actions (when a little arrow is drawn next to text).\n"
 
46
        "Once inside a category, you can filter the results by typing some letters.\n"
 
47
        "Press Enter to validate, maintain SHIFT or ALT to keep the list of results opened.\n"
53
48
        "Escape or the same shortkey will cancel."),
54
49
        "Fabounet (Fabrice Rey)")
 
50
        CD_APPLET_DEFINE_COMMON_APPLET_INTERFACE
55
51
        CD_APPLET_SET_CONTAINER_TYPE (CAIRO_DOCK_MODULE_IS_PLUGIN);
56
52
CD_APPLET_DEFINE_END
57
53
 
70
66
CD_APPLET_INIT_BEGIN
71
67
        cairo_dock_register_notification (CAIRO_DOCK_KEY_PRESSED, (CairoDockNotificationFunc) cd_do_key_pressed, CAIRO_DOCK_RUN_AFTER, NULL);
72
68
        
73
 
        cd_keybinder_bind (myConfig.cShortkeyNav, (CDBindkeyHandler) cd_do_on_shortkey_nav, myApplet);
74
69
        cd_keybinder_bind (myConfig.cShortkeySearch, (CDBindkeyHandler) cd_do_on_shortkey_search, myApplet);
75
70
        
76
71
        _register_backends ();
97
92
                cd_do_destroy_listing (myData.pListing);
98
93
                myData.pListing = NULL;
99
94
                
100
 
                cd_keybinder_bind (myConfig.cShortkeyNav, (CDBindkeyHandler) cd_do_on_shortkey_nav, myApplet);  // shortkey were unbinded during reset_config.
101
95
                cd_keybinder_bind (myConfig.cShortkeySearch, (CDBindkeyHandler) cd_do_on_shortkey_search, myApplet);  // shortkey were unbinded during reset_config.
102
96
                
103
97
                if (myData.sCurrentText != NULL)  // peu probable.