Add previously removed tab close icon sizing code for non-Windows systems.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3272 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-11-23 16:07:17 +00:00
parent cb2a89ddd3
commit 6f64f53eeb
2 changed files with 8 additions and 0 deletions

View File

@ -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>

View File

@ -462,6 +462,7 @@ gint notebook_new_tab(GeanyDocument *this)
{
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 @@ gint notebook_new_tab(GeanyDocument *this)
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);