SF.net SVN: geany:[3244] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Tue Nov 18 17:03:15 UTC 2008


Revision: 3244
          http://geany.svn.sourceforge.net/geany/?rev=3244&view=rev
Author:   eht16
Date:     2008-11-18 17:03:15 +0000 (Tue, 18 Nov 2008)

Log Message:
-----------
Remove forced size requests for the tab close icon as it seems not necessary and broke the icon on Windows.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/notebook.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-11-18 13:29:53 UTC (rev 3243)
+++ trunk/ChangeLog	2008-11-18 17:03:15 UTC (rev 3244)
@@ -1,3 +1,10 @@
+2008-11-16  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/notebook.c:
+   Remove forced size requests for the tab close icon as it seems not
+   necessary and broke the icon on Windows.
+
+
 2008-11-18  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
 
  * src/treeviews.c:

Modified: trunk/src/notebook.c
===================================================================
--- trunk/src/notebook.c	2008-11-18 13:29:53 UTC (rev 3243)
+++ trunk/src/notebook.c	2008-11-18 17:03:15 UTC (rev 3244)
@@ -479,9 +479,7 @@
 		gtk_rc_style_unref(rcstyle);
 
 		image = gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
-		gtk_widget_size_request(image, &size);
-		gtk_widget_set_size_request(btn, size.width, size.height);
-		gtk_container_add(GTK_CONTAINER(btn), image);
+		gtk_button_set_image(GTK_BUTTON(btn), image);
 
 		align = gtk_alignment_new(1.0, 0.0, 0.0, 0.0);
 		gtk_container_add(GTK_CONTAINER(align), btn);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list