[Xfce4-commits] r30193 - terminal/trunk/terminal
Nick Schermer
nick at xfce.org
Sat Jul 4 11:10:58 CEST 2009
Author: nick
Date: 2009-07-04 09:10:58 +0000 (Sat, 04 Jul 2009)
New Revision: 30193
Modified:
terminal/trunk/terminal/terminal-screen.c
Log:
Make tab close button a lot smaller.
This way the tab size is more or less the same as firefox,
gnome-terminal, midori and geany. Never heard anyone complain
about those applications...
Modified: terminal/trunk/terminal/terminal-screen.c
===================================================================
--- terminal/trunk/terminal/terminal-screen.c 2009-07-04 09:01:45 UTC (rev 30192)
+++ terminal/trunk/terminal/terminal-screen.c 2009-07-04 09:10:58 UTC (rev 30193)
@@ -1703,6 +1703,7 @@
{
GtkWidget *hbox;
GtkWidget *button, *image, *align;
+ GtkRcStyle *style;
terminal_return_val_if_fail (TERMINAL_IS_SCREEN (screen), NULL);
@@ -1715,7 +1716,7 @@
gtk_box_pack_start (GTK_BOX (hbox), screen->tab_label, TRUE, TRUE, 0);
gtk_widget_show (screen->tab_label);
- align = gtk_alignment_new (0.5f, 0.5f, 0.0f, 0.0f);
+ align = gtk_alignment_new (0.5f, 1.0f, 0.0f, 0.0f);
gtk_box_pack_start (GTK_BOX (hbox), align, FALSE, FALSE, 0);
gtk_widget_show (align);
@@ -1730,6 +1731,12 @@
exo_binding_new (G_OBJECT (screen->preferences), "misc-tab-close-buttons",
G_OBJECT (button), "visible");
+ /* make button a bit smaller */
+ style = gtk_rc_style_new ();
+ style->xthickness = style->ythickness = 0;
+ gtk_widget_modify_style (button, style);
+ g_object_unref (G_OBJECT (style));
+
/* button image */
image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (button), image);
More information about the Xfce4-commits
mailing list