diff options
author | ZenWalker <[email protected]> | 2016-11-29 23:22:17 +0100 |
---|---|---|
committer | monsta <[email protected]> | 2017-01-27 14:33:48 +0300 |
commit | 72f7f71dfcb084b4825cf18d63558058584dc949 (patch) | |
tree | 8f2cdac2d2ffa0444a40aa3ffdf031ed72fae1f6 | |
parent | bf573b447308e30193c333e71dee20f8d3134418 (diff) | |
download | mate-panel-72f7f71dfcb084b4825cf18d63558058584dc949.tar.bz2 mate-panel-72f7f71dfcb084b4825cf18d63558058584dc949.tar.xz |
[GTK+3] fix showing icon at mouse cursor on launcher d-n-d
Fixes #457
-rw-r--r-- | mate-panel/applet.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mate-panel/applet.c b/mate-panel/applet.c index c8b1c95b..96779810 100644 --- a/mate-panel/applet.c +++ b/mate-panel/applet.c @@ -760,6 +760,17 @@ applet_button_press (GtkWidget *widget, GdkEventButton *event, AppletInfo *info) { +#if GTK_CHECK_VERSION (3, 0, 0) + gboolean applet_locked; + PanelWidget *panel_widget; + + panel_widget = mate_panel_applet_get_panel_widget (info); + applet_locked = panel_widget_get_applet_locked (panel_widget, + info->widget); + + if (!applet_locked) mate_panel_applet_set_dnd_enabled (info, TRUE); +#endif + if (event->button == 3) return applet_do_popup_menu (widget, event, info); |