[Aptitude-devel] [PATCH 1 of 5] * src/gtk/gui.cc (gui::init_style): added, parse an RC style for tab close buttons

Luca Bruno lethalman88 at gmail.com
Wed Dec 24 14:40:45 UTC 2008


# HG changeset patch
# User Luca Bruno <lethalman88 at gmail.com>
# Date 1230120372 -3600
# Node ID 78c720cb59968afcf70c83e47780b75e217f07db
# Parent  7abbb14da12fef00b616ef651d084fe1434e4674
	* src/gtk/gui.cc (gui::init_style): added, parse an RC style for tab close buttons
	(gui::main): call init_style()

diff --git a/src/gtk/gui.cc b/src/gtk/gui.cc
--- a/src/gtk/gui.cc
+++ b/src/gtk/gui.cc
@@ -1386,6 +1386,19 @@
       }
   }
 
+  void init_style(void)
+  {
+    Gtk::RC::parse_string (
+"style \"tiny-button-style\""
+"{"
+"  GtkWidget::focus-padding = 0"
+"  xthickness = 0"
+"  ythickness = 0"
+"}"
+"widget \"*.main_notebook_packages_close\" style \"tiny-button-style\""
+"widget \"*.main_notebook_download_close\" style \"tiny-button-style\"");
+  }
+
   namespace
   {
     void do_apt_init()
@@ -1428,6 +1441,9 @@
 	return false;
       }
 
+    // Set up the style for GTK+ widgets.
+    init_style();
+
     // Set up the resolver-triggering signals.
     init_resolver();
 



More information about the Aptitude-devel mailing list