~cairo-dock-team/cairo-dock-plug-ins/plug-ins

« back to all changes in this revision

Viewing changes to dnd2share/src/applet-notifications.c

  • Committer: Matthieu Baerts
  • Date: 2013-12-27 09:52:53 UTC
  • Revision ID: matttbe@gmail.com-20131227095253-xoajdjy4d0j2l7lv
DnD2Share: history menu was empty

The new menu entries were added to the menu item instead of the submenu

Show diffs side-by-side

added added

removed removed

Lines of Context:
411
411
//\___________ Define here the entries you want to add to the menu when the user right-clicks on your icon or on its subdock or your desklet. The icon and the container that were clicked are available through the macros CD_APPLET_CLICKED_ICON and CD_APPLET_CLICKED_CONTAINER. CD_APPLET_CLICKED_ICON may be NULL if the user clicked in the container but out of icons. The menu where you can add your entries is available throught the macro CD_APPLET_MY_MENU; you can add sub-menu to it if you want.
412
412
CD_APPLET_ON_BUILD_MENU_BEGIN
413
413
        CD_APPLET_ADD_IN_MENU_WITH_STOCK (D_("Send the clipboard's content"), GTK_STOCK_PASTE, _send_clipboard, CD_APPLET_MY_MENU);
414
 
        
415
 
        GtkWidget *pHistoryMenu;
416
 
        GtkWidget *mi = gldi_menu_add_sub_menu_full (CD_APPLET_MY_MENU, D_("History"), GTK_STOCK_INDEX, &pHistoryMenu);
 
414
 
 
415
        GtkWidget *pHistoryMenu = CD_APPLET_ADD_SUB_MENU_WITH_IMAGE (D_("History"),
 
416
                CD_APPLET_MY_MENU, GTK_STOCK_INDEX);
417
417
        
418
418
        if (myData.pUpoadedItems != NULL)
419
419
        {
486
486
                CD_APPLET_ADD_IN_MENU_WITH_STOCK (D_("Clear History"), GTK_STOCK_CLEAR, _clear_history, pHistoryMenu);
487
487
        }
488
488
        else
489
 
                gtk_widget_set_sensitive (GTK_WIDGET (mi), FALSE);
 
489
                gtk_widget_set_sensitive (GTK_WIDGET (pHistoryMenu), FALSE);
490
490
 
491
491
        pMenuItem = gtk_check_menu_item_new_with_label (D_("Use only a files hosting site"));
492
492
        gtk_menu_shell_append (GTK_MENU_SHELL (CD_APPLET_MY_MENU), pMenuItem);