[gnome-commander/gcmd-1-12] Updating the style when switching tabs, adding some comments, fixing #55



commit 065fc451f5dab0bfcc77142c4fd06dae0370379a
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Mon Apr 12 21:25:05 2021 +0200

    Updating the style when switching tabs, adding some comments, fixing #55

 NEWS                           | 1 +
 doc/C/releases.xml             | 3 +++
 src/gnome-cmd-file-selector.cc | 5 +++++
 3 files changed, 9 insertions(+)
---
diff --git a/NEWS b/NEWS
index 886771e3..60eddd60 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ Bug fixes:
  * Fixed issue #12 (Ask for the second time when trying to delete non-empty directory)
  * Fixed issue #97 ("Execute" not shown in file popup menu for executable files)
  * Fixed issue #98 ("Execute" doesn't work on files with space in filename)
+ * Fixed issue #55 (Theme does not change in all tabs when applied)
 
 New or updated translations:
  * ...
diff --git a/doc/C/releases.xml b/doc/C/releases.xml
index 73defa46..b3004b36 100644
--- a/doc/C/releases.xml
+++ b/doc/C/releases.xml
@@ -38,6 +38,9 @@
                         <listitem>
                             <para>Fixed issue #98 ("Execute" doesn't work on files with space in 
filename)</para>
                         </listitem>
+                        <listitem>
+                            <para>Fixed issue #55 (Theme does not change in all tabs when applied)</para>
+                        </listitem>
                     </itemizedlist>
                 </para>
                 <para>New features:</para>
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 2ac6ff15..11e0b84f 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -438,6 +438,7 @@ static void on_notebook_switch_page (GtkNotebook *notebook, GtkNotebookPage *pag
     fs->update_direntry();
     fs->update_selected_files_label();
     fs->update_vol_label();
+    fs->update_style();
 
     if (prev_dir!=fs->get_directory())
         g_signal_emit (fs, signals[DIR_CHANGED], 0, fs->get_directory());
@@ -623,6 +624,7 @@ static gboolean on_notebook_button_pressed (GtkWidget *widget, GdkEventButton *e
         case GDK_BUTTON_PRESS:
             switch (event->button)
             {
+                // mid-click
                 case 2:
                     tab_clicked = notebook->find_tab_num_at_pos(event->x_root, event->y_root);
 
@@ -636,6 +638,7 @@ static gboolean on_notebook_button_pressed (GtkWidget *widget, GdkEventButton *e
 
                     return tab_clicked>=0;
 
+                // right-click
                 case 3:
                     tab_clicked = notebook->find_tab_num_at_pos(event->x_root, event->y_root);
 
@@ -707,6 +710,8 @@ static gboolean on_notebook_button_pressed (GtkWidget *widget, GdkEventButton *e
 
                 if (!fl->locked || gnome_cmd_prompt_message (*main_win, GTK_MESSAGE_QUESTION, 
GTK_BUTTONS_OK_CANCEL, _("The tab is locked, close anyway?"))==GTK_RESPONSE_OK)
                     fs->close_tab(tab_clicked);
+
+
             }
             else
                 fs->new_tab(fs->get_directory());


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