devhelp r930 - in trunk: . src
- From: lferrett svn gnome org
- To: svn-commits-list gnome org
- Subject: devhelp r930 - in trunk: . src
- Date: Thu, 24 Jan 2008 10:34:53 +0000 (GMT)
Author: lferrett
Date: Thu Jan 24 10:34:53 2008
New Revision: 930
URL: http://svn.gnome.org/viewvc/devhelp?rev=930&view=rev
Log:
2008-01-24 Luca Ferretti <elle uca libero it>
reviewed by: Richard Hult
* src/dh-window.c: (window_class_init), (window_new_tab_label):
Use proper size icon for close buttons in tabs. Fixes bug #510984.
Modified:
trunk/ChangeLog
trunk/src/dh-window.c
Modified: trunk/src/dh-window.c
==============================================================================
--- trunk/src/dh-window.c (original)
+++ trunk/src/dh-window.c Thu Jan 24 10:34:53 2008
@@ -278,6 +278,15 @@
object_class = G_OBJECT_CLASS (klass);
object_class->finalize = window_finalize;
+
+ gtk_rc_parse_string ("style \"devhelp-tab-close-button-style\"\n"
+ "{\n"
+ "GtkWidget::focus-padding = 0\n"
+ "GtkWidget::focus-line-width = 0\n"
+ "xthickness = 0\n"
+ "ythickness = 0\n"
+ "}\n"
+ "widget \"*.devhelp-tab-close-button\" style \"devhelp-tab-close-button-style\"");
}
static void
@@ -1256,7 +1265,6 @@
window_new_tab_label (DhWindow *window, const gchar *str)
{
GtkWidget *hbox, *label, *close_button, *image;
- GtkRcStyle *rcstyle;
hbox = gtk_hbox_new (FALSE, 4);
@@ -1272,9 +1280,7 @@
GTK_RELIEF_NONE);
gtk_button_set_focus_on_click (GTK_BUTTON (close_button), FALSE);
- rcstyle = gtk_widget_get_modifier_style (close_button);
- rcstyle->xthickness = rcstyle->ythickness = 0;
- gtk_widget_modify_style (close_button, rcstyle);
+ gtk_widget_set_name (close_button, "devhelp-tab-close-button");
image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
/*gtk_widget_set_tooltip_text (close_button, _("Close tab"));*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]