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

« back to all changes in this revision

Viewing changes to stack/src/applet-notifications.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:
44
44
CD_APPLET_ON_CLICK_BEGIN
45
45
        if (CD_APPLET_CLICKED_ICON == myIcon)
46
46
        {
47
 
                if (CD_APPLET_MY_ICONS_LIST == NULL)
 
47
                if (CD_APPLET_MY_ICONS_LIST == NULL)  // empty sub-dock or desklet.
48
48
                {
49
49
                        cairo_dock_remove_dialog_if_any (myIcon);
50
50
                        cairo_dock_show_temporary_dialog_with_icon (D_("No items in the stack.\nYou can add files, URL, and even a piece of text by dragging them onto the icon."), myIcon, myContainer, 8000., "same icon");
51
51
                }
52
 
                CD_APPLET_LEAVE (CAIRO_DOCK_LET_PASS_NOTIFICATION);  // on laisse passer la notification (pour ouvrir le sous-dock au clic).
 
52
                else
 
53
                {
 
54
                        CD_APPLET_LEAVE (CAIRO_DOCK_LET_PASS_NOTIFICATION);  // on laisse passer la notification (pour ouvrir le sous-dock au clic).
 
55
                }
53
56
        }
54
57
        else if (CD_APPLET_CLICKED_ICON != NULL)
55
58
        {
215
218
        //g_print ("Stack received '%s'\n", cReceivedData);
216
219
        
217
220
        // if we dropped on an icon, let pass the notif to it.
218
 
        if (fOrder == CAIRO_DOCK_LAST_ORDER)  // drop on an icon.
 
221
        if (icon != NULL || fOrder == CAIRO_DOCK_LAST_ORDER)  // drop on an icon or outside of icons.
219
222
                return CAIRO_DOCK_LET_PASS_NOTIFICATION;
220
223
        
221
224
        // if it's a .desktop, let pass to the core (it will create the associated launcher).