[Xfce4-commits] [xfce/xfce4-panel] 41/73: Directory menu - selected directory not saved, bug #10331

noreply at xfce.org noreply at xfce.org
Sun Feb 26 16:34:22 CET 2017


This is an automated email from the git hooks/post-receive script.

andrzejr pushed a commit to branch master
in repository xfce/xfce4-panel.

commit 4068b7248087b27b8589a639e84cb8fda56cbe7a
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Thu May 14 23:17:13 2015 +0100

    Directory menu - selected directory not saved, bug #10331
    
    Author: Filipp Andjelo <filipp.andjelo at gmail.com>
    
    Directory Menu's setting panel does not save/show the selected directory and the browsing always starts from the user's home.
    Changing directory name in ..../xfconf/xfce-perchannel-xml/xfce4-panel.xml does nothing with this issue (it's overwritten with the user's home path).
    The only solution (I found) is to change the value in "xfce settings editor".
---
 plugins/directorymenu/directorymenu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/directorymenu/directorymenu.c b/plugins/directorymenu/directorymenu.c
index f02d700..efb39bd 100644
--- a/plugins/directorymenu/directorymenu.c
+++ b/plugins/directorymenu/directorymenu.c
@@ -367,7 +367,7 @@ directory_menu_plugin_configure_plugin_file_set (GtkFileChooserButton *button,
   panel_return_if_fail (GTK_IS_FILE_CHOOSER_BUTTON (button));
   panel_return_if_fail (XFCE_IS_DIRECTORY_MENU_PLUGIN (plugin));
 
-  uri = gtk_file_chooser_get_current_folder_uri (GTK_FILE_CHOOSER (button));
+  uri = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (button));
   g_object_set (G_OBJECT (plugin), "base-directory", uri, NULL);
   g_free (uri);
 }
@@ -435,7 +435,7 @@ directory_menu_plugin_configure_plugin (XfcePanelPlugin *panel_plugin)
   if (!gtk_file_chooser_set_current_folder_file (GTK_FILE_CHOOSER (object),
                                                  plugin->base_directory, NULL))
     gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (object), g_get_home_dir ());
-  g_signal_connect (G_OBJECT (object), "current-folder-changed",
+  g_signal_connect (G_OBJECT (object), "selection-changed",
      G_CALLBACK (directory_menu_plugin_configure_plugin_file_set), plugin);
 
   object = gtk_builder_get_object (builder, "icon-button");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list