anjuta r3515 - in trunk: . plugins/document-manager plugins/message-view
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3515 - in trunk: . plugins/document-manager plugins/message-view
- Date: Thu, 24 Jan 2008 11:29:26 +0000 (GMT)
Author: jhs
Date: Thu Jan 24 11:29:25 2008
New Revision: 3515
URL: http://svn.gnome.org/viewvc/anjuta?rev=3515&view=rev
Log:
2008-01-24 Johannes Schmid <jhs gnome org>
Patch from: Luca Ferretti <ella uca libero it>:
* plugins/document-manager/anjuta-docman.c:
(anjuta_docman_page_init), (anjuta_docman_class_init):
* plugins/message-view/anjuta-msgman.c: (anjuta_msgman_page_new):
Fix #511757 â Close icon in tabs cut off (Patch was only for
document-manager, also adapted it for message-manager)
Modified:
trunk/ChangeLog
trunk/plugins/document-manager/anjuta-docman.c
trunk/plugins/message-view/anjuta-msgman.c
Modified: trunk/plugins/document-manager/anjuta-docman.c
==============================================================================
--- trunk/plugins/document-manager/anjuta-docman.c (original)
+++ trunk/plugins/document-manager/anjuta-docman.c Thu Jan 24 11:29:25 2008
@@ -218,7 +218,6 @@
{
GtkWidget *close_button;
GtkWidget *close_pixmap;
- GtkRcStyle *rcstyle;
GtkWidget *label, *menu_label;
GtkWidget *box;
GtkWidget *event_hbox;
@@ -243,10 +242,8 @@
gtk_button_set_focus_on_click (GTK_BUTTON (close_button), FALSE);
gtk_container_add(GTK_CONTAINER(close_button), close_pixmap);
gtk_button_set_relief(GTK_BUTTON(close_button), GTK_RELIEF_NONE);
- rcstyle = gtk_rc_style_new ();
- rcstyle->xthickness = rcstyle->ythickness = 0;
- gtk_widget_modify_style (close_button, rcstyle);
- g_object_unref (G_OBJECT (rcstyle));
+
+ gtk_widget_set_name (close_button, "anjuta-tab-close-button");
gtk_widget_set_size_request (close_button, w, h);
#if GTK_CHECK_VERSION (2,12,0)
@@ -693,6 +690,15 @@
G_TYPE_OBJECT);
}
+
+ gtk_rc_parse_string ("style \"anjuta-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 \"*.anjuta-tab-close-button\" style \"anjuta-tab-close-button-style\"");
}
GtkWidget*
Modified: trunk/plugins/message-view/anjuta-msgman.c
==============================================================================
--- trunk/plugins/message-view/anjuta-msgman.c (original)
+++ trunk/plugins/message-view/anjuta-msgman.c Thu Jan 24 11:29:25 2008
@@ -107,7 +107,6 @@
{
AnjutaMsgmanPage *page;
int h, w;
- GtkRcStyle *rcstyle;
g_return_val_if_fail (view != NULL, NULL);
@@ -142,10 +141,10 @@
gtk_widget_set_size_request (page->button, w, h);
gtk_button_set_focus_on_click (GTK_BUTTON (page->button), FALSE);
gtk_button_set_relief(GTK_BUTTON(page->button), GTK_RELIEF_NONE);
- rcstyle = gtk_rc_style_new ();
- rcstyle->xthickness = rcstyle->ythickness = 0;
- gtk_widget_modify_style (page->button, rcstyle);
- gtk_rc_style_unref (rcstyle);
+ /* This style is created int the document-manager which we simply
+ * assume is loaded before this plugin
+ */
+ gtk_widget_set_name (page->button, "anjuta-tab-close-button");
gtk_box_pack_start (GTK_BOX (page->box), page->button, FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]