[gnome-commander/GSettings] Gives focus to file lists after changing layout, fixes bgo#767158



commit da575f9211d443dc781ce55bccad8cff3b26bcc0
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sat Jun 4 13:50:56 2016 +0200

    Gives focus to file lists after changing layout, fixes bgo#767158

 NEWS                          |    1 +
 doc/C/releases.xml            |    3 +++
 src/gnome-cmd-data.cc         |    1 +
 src/gnome-cmd-user-actions.cc |    1 +
 4 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 89d78dc..cacafdd 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ gnome-commander 1.6.0
 Bug fixes:
  * Fixed problem bgo#742752 (Made options dialog resizable and added scrollbars)
  * Preserve focused file after renamed with AdvRenDialog (Thanks to Martin Mocko)
+ * Fixed problem bgo#767158 (Shortcuts stop working after changing layout)
 New features:
  * Always reopen the tab which was previously closed in the options dialog
  * Samba support is now optionally available via configure option
diff --git a/doc/C/releases.xml b/doc/C/releases.xml
index 82ea2f8..7ab7d91 100644
--- a/doc/C/releases.xml
+++ b/doc/C/releases.xml
@@ -35,6 +35,9 @@
                         <listitem>
                            <para>Preserve focused file after renamed with AdvRenDialog (Thanks to Martin 
Mocko)</para>
                        </listitem>
+                        <listitem>
+                           <para>Fixed problem bgo#767158 (Shortcuts stop working after changing 
layout)</para>
+                       </listitem>
                     </itemizedlist>
                 </para>
                 <para>New features:</para>
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index eb64b44..d769ca4 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -203,6 +203,7 @@ void on_horizontal_orientation_changed ()
     gnome_cmd_data.horizontal_orientation = horizontal_orientation;
 
     main_win->update_horizontal_orientation();
+    main_win->focus_file_lists();
 }
 
 static void gcmd_settings_class_init (GcmdSettingsClass *klass)
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 1785a59..20aeb5b 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -1616,6 +1616,7 @@ void view_horizontal_orientation (GtkMenuItem *menuitem, gpointer not_used)
     gnome_cmd_data.horizontal_orientation = checkitem->active;
     g_settings_set_boolean (gcmd_user_actions.settings->general, GCMD_SETTINGS_HORIZONTAL_ORIENTATION, 
gnome_cmd_data.horizontal_orientation);
     main_win->update_horizontal_orientation();
+    main_win->focus_file_lists();
 }
 
 void view_up (GtkMenuItem *menuitem, gpointer not_used)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]