2
committer: Matthieu Baerts <matttbe@gmail.com>
3
branch nick: cairo-dock-plug-ins
4
timestamp: Fri 2013-12-27 10:52:53 +0100
5
message: DnD2Share: history menu was empty
6
The new menu entries were added to the menu item instead of the submenu
8
=== modified file 'dnd2share/src/applet-notifications.c'
9
Index: cairo-dock-plug-ins/dnd2share/src/applet-notifications.c
10
===================================================================
11
--- cairo-dock-plug-ins.orig/dnd2share/src/applet-notifications.c 2014-04-06 22:33:12.239528420 +0200
12
+++ cairo-dock-plug-ins/dnd2share/src/applet-notifications.c 2014-04-06 22:33:12.235528421 +0200
14
//\___________ 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.
15
CD_APPLET_ON_BUILD_MENU_BEGIN
16
CD_APPLET_ADD_IN_MENU_WITH_STOCK (D_("Send the clipboard's content"), GTK_STOCK_PASTE, _send_clipboard, CD_APPLET_MY_MENU);
18
- GtkWidget *pHistoryMenu;
19
- GtkWidget *mi = gldi_menu_add_sub_menu_full (CD_APPLET_MY_MENU, D_("History"), GTK_STOCK_INDEX, &pHistoryMenu);
22
+ GtkWidget *pHistoryMenu = gldi_menu_add_sub_menu_full (CD_APPLET_MY_MENU, D_("History"), GTK_STOCK_INDEX, &mi);
24
if (myData.pUpoadedItems != NULL)