Revision: 3272 http://geany.svn.sourceforge.net/geany/?rev=3272&view=rev Author: eht16 Date: 2008-11-23 16:07:17 +0000 (Sun, 23 Nov 2008)
Log Message: ----------- Add previously removed tab close icon sizing code for non-Windows systems.
Modified Paths: -------------- trunk/ChangeLog trunk/src/notebook.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-11-23 15:42:33 UTC (rev 3271) +++ trunk/ChangeLog 2008-11-23 16:07:17 UTC (rev 3272) @@ -2,6 +2,9 @@
* src/symbols.c: Fix wrong menu item labels in the symbol list popup menu. + * src/notebook.c: + Add previously removed tab close icon sizing code for non-Windows + systems.
2008-11-22 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
Modified: trunk/src/notebook.c =================================================================== --- trunk/src/notebook.c 2008-11-23 15:42:33 UTC (rev 3271) +++ trunk/src/notebook.c 2008-11-23 16:07:17 UTC (rev 3272) @@ -462,6 +462,7 @@ { GtkWidget *image, *btn, *align; GtkRcStyle *rcstyle; + GtkRequisition size;
btn = gtk_button_new(); gtk_button_set_relief(GTK_BUTTON(btn), GTK_RELIEF_NONE); @@ -476,6 +477,10 @@ gtk_rc_style_unref(rcstyle);
image = gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU); +#ifndef G_OS_WIN32 + gtk_widget_size_request(image, &size); + gtk_widget_set_size_request(btn, size.width, size.height); +#endif gtk_button_set_image(GTK_BUTTON(btn), image);
align = gtk_alignment_new(1.0, 0.0, 0.0, 0.0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.