Sisyphus repository
Last update: 2 december 2020 | SRPMs: 17751 | Visits: 19736900
en ru br
ALT Linux repos
S:5.20.2-alt1

Group :: Graphical desktop/KDE
RPM: plasma5-kde-gtk-config

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt-defaults.patch
Download


--- a/src/appearancegtk2.cpp
+++ b/src/appearancegtk2.cpp
@@ -52,6 +52,8 @@ bool AppearanceGTK2::loadSettingsPrivate
             m_settings["font"] = *it;
         else if (it.key() == "gtk-toolbar-style")
             m_settings["toolbar_style"] = *it;
+        else if(it.key() == "gtk-alternative-button-order")
+            m_settings["alternative_button_order"] = *it;
         else if (it.key() == "gtk-button-images")
             m_settings["show_icons_buttons"] = *it;
         else if(it.key() == "gtk-menu-images")
@@ -124,6 +126,7 @@ bool AppearanceGTK2::saveSettingsPrivate
     flow << "gtk-toolbar-style=" << m_settings["toolbar_style"] << "\n";
     flow << "gtk-menu-images=" << m_settings["show_icons_menus"] << "\n";
     flow << "gtk-button-images=" << m_settings["show_icons_buttons"] << "\n";
+    flow << "gtk-alternative-button-order=" << m_settings["alternative_button_order"] << "\n";
     flow << "gtk-primary-button-warps-slider=" << m_settings["primary_button_warps_slider"] << "\n";
     
     //we're done with the  ~/.gtk-2.0 file
@@ -148,8 +151,9 @@ void AppearanceGTK2::reset()
 {
     m_settings = QMap<QString, QString> {
         {"toolbar_style", "GTK_TOOLBAR_ICONS"},
-        {"show_icons_buttons", "0"},
-        {"show_icons_menus", "0"},
+        {"show_icons_buttons", "1"},
+        {"show_icons_menus", "1"},
+        {"alternative_button_order", "1"},
         {"primary_button_warps_slider", "false"}
     };
 }
--- a/src/appearancegtk3.cpp
+++ b/src/appearancegtk3.cpp
@@ -63,6 +63,7 @@ bool AppearanceGTK3::saveSettings(const
     group.writeEntry("gtk-fallback-icon-theme", m_settings["icon_fallback"]);
     group.writeEntry("gtk-cursor-theme-name", m_settings["cursor"]);
     group.writeEntry("gtk-toolbar-style", m_settings["toolbar_style"]);
+    group.writeEntry("gtk-alternative-button-order", m_settings["alternative_button_order"]);
     group.writeEntry("gtk-menu-images", m_settings["show_icons_menus"]);
     group.writeEntry("gtk-button-images", m_settings["show_icons_buttons"]);
     group.writeEntry("gtk-primary-button-warps-slider", m_settings["primary_button_warps_slider"]);
@@ -84,8 +85,9 @@ bool AppearanceGTK3::loadSettings(const
 
     m_settings = QMap<QString, QString> {
         {"toolbar_style", "GTK_TOOLBAR_ICONS"},
-        {"show_icons_buttons", "0"},
-        {"show_icons_menus", "0"},
+        {"show_icons_buttons", "1"},
+        {"show_icons_menus", "1"},
+        {"alternative_button_order", "1"},
         {"primary_button_warps_slider", "false"},
         {"application_prefer_dark_theme", "false"}
     };
@@ -96,6 +98,7 @@ bool AppearanceGTK3::loadSettings(const
     m_settings["cursor"] = group.readEntry("gtk-cursor-theme-name");
     m_settings["font"] = group.readEntry("gtk-font-name");
     m_settings["toolbar_style"] = group.readEntry("gtk-toolbar-style");
+    m_settings["alternative_button_order"] = group.readEntry("gtk-alternative-button-order");
     m_settings["show_icons_buttons"] = group.readEntry("gtk-button-images");
     m_settings["show_icons_menus"] = group.readEntry("gtk-menu-images");
     m_settings["primary_button_warps_slider"] = group.readEntry("gtk-primary-button-warps-slider");
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin