[gnome-commander/gcmd-1-10] noop: some cleanup



commit 513ba6d23aca39ebb0c14ed5c4581c9d6670becb
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Fri May 1 19:54:17 2020 +0200

    noop: some cleanup

 src/gnome-cmd-main-win.cc | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index 692603eb..546b13db 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -291,20 +291,21 @@ static void create_toolbar (GnomeCmdMainWin *mw)
 
     mw->priv->toolbar = gtk_ui_manager_get_widget (ui_manager, "/Toolbar");
     mw->priv->tb_first_btn = gtk_ui_manager_get_widget (ui_manager, "/Toolbar/First");
-    gtk_widget_set_can_focus(mw->priv->tb_first_btn, FALSE);
     mw->priv->tb_back_btn = gtk_ui_manager_get_widget (ui_manager, "/Toolbar/Back");
-    gtk_widget_set_can_focus(mw->priv->tb_back_btn, FALSE);
     mw->priv->tb_fwd_btn = gtk_ui_manager_get_widget (ui_manager, "/Toolbar/Forward");
-    gtk_widget_set_can_focus(mw->priv->tb_fwd_btn, FALSE);
     mw->priv->tb_last_btn = gtk_ui_manager_get_widget (ui_manager, "/Toolbar/Latest");
-    gtk_widget_set_can_focus(mw->priv->tb_last_btn, FALSE);
     mw->priv->tb_cap_cut_btn = gtk_ui_manager_get_widget (ui_manager, "/Toolbar/Cut");
-    gtk_widget_set_can_focus(mw->priv->tb_cap_cut_btn, FALSE);
     mw->priv->tb_cap_copy_btn = gtk_ui_manager_get_widget (ui_manager, "/Toolbar/Copy");
-    gtk_widget_set_can_focus(mw->priv->tb_cap_copy_btn, FALSE);
     mw->priv->tb_cap_paste_btn = gtk_ui_manager_get_widget (ui_manager, "/Toolbar/Paste");
-    gtk_widget_set_can_focus(mw->priv->tb_cap_paste_btn, FALSE);
     mw->priv->tb_con_drop_btn = gtk_ui_manager_get_widget (ui_manager, "/Toolbar/Drop");
+
+    gtk_widget_set_can_focus(mw->priv->tb_first_btn, FALSE);
+    gtk_widget_set_can_focus(mw->priv->tb_back_btn, FALSE);
+    gtk_widget_set_can_focus(mw->priv->tb_fwd_btn, FALSE);
+    gtk_widget_set_can_focus(mw->priv->tb_last_btn, FALSE);
+    gtk_widget_set_can_focus(mw->priv->tb_cap_cut_btn, FALSE);
+    gtk_widget_set_can_focus(mw->priv->tb_cap_copy_btn, FALSE);
+    gtk_widget_set_can_focus(mw->priv->tb_cap_paste_btn, FALSE);
     gtk_widget_set_can_focus(mw->priv->tb_con_drop_btn, FALSE);
 
     g_object_ref (mw->priv->toolbar);


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