diff options
author | Alexander Schwinn <alexxcons@xfce.org> | 2020-12-02 14:24:34 +0100 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2020-12-02 14:26:03 +0100 |
commit | 96e9cfe1d011053c6a34daf23e03359e1644c64a (patch) | |
tree | 687328a8428ac533b57745552c1dabf057183c82 | |
parent | d6d88b24a2c70674a1ca611dc74b74eb67ad7a37 (diff) | |
download | thunar-96e9cfe1d011053c6a34daf23e03359e1644c64a.tar.gz |
Revert of b12247c2 and proper fix for Issue #423
With the previous fix, mount and unmount were visible at the same time
for USB devices.
Fixes #437
-rw-r--r-- | thunar/thunar-shortcuts-view.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/thunar/thunar-shortcuts-view.c b/thunar/thunar-shortcuts-view.c index 391e2af4..428c75e2 100644 --- a/thunar/thunar-shortcuts-view.c +++ b/thunar/thunar-shortcuts-view.c @@ -1263,7 +1263,10 @@ G_GNUC_END_IGNORE_DEPRECATIONS /* add the menu items to the menu */ for (lp = items; lp != NULL; lp = lp->next) - thunar_gtk_menu_thunarx_menu_item_new (lp->data, GTK_MENU_SHELL (menu)); + { + item = thunar_gtk_menu_thunarx_menu_item_new (lp->data, GTK_MENU_SHELL (menu)); + gtk_widget_show (item); + } /* cleanup */ g_list_free (items); @@ -1313,8 +1316,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS g_object_unref (G_OBJECT (device)); gtk_tree_path_free (path); - gtk_widget_show_all (GTK_WIDGET (menu)); - /* run the menu (taking over the floating reference on menu) */ thunar_gtk_menu_run (GTK_MENU (menu)); } |