[Xfce4-commits] r30190 - terminal/trunk/terminal

Nick Schermer nick at xfce.org
Fri Jul 3 20:57:23 CEST 2009


Author: nick
Date: 2009-07-03 18:57:23 +0000 (Fri, 03 Jul 2009)
New Revision: 30190

Modified:
   terminal/trunk/terminal/terminal-screen.c
Log:
Make the close button look normal again in clearlooks.


Modified: terminal/trunk/terminal/terminal-screen.c
===================================================================
--- terminal/trunk/terminal/terminal-screen.c	2009-07-03 18:42:31 UTC (rev 30189)
+++ terminal/trunk/terminal/terminal-screen.c	2009-07-03 18:57:23 UTC (rev 30190)
@@ -1702,7 +1702,7 @@
 terminal_screen_get_tab_label (TerminalScreen *screen)
 {
   GtkWidget  *hbox;
-  GtkWidget  *button, *image;
+  GtkWidget  *button, *image, *align;
 
   terminal_return_val_if_fail (TERMINAL_IS_SCREEN (screen), NULL);
 
@@ -1715,12 +1715,16 @@
   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);
+  gtk_box_pack_start  (GTK_BOX (hbox), align, FALSE, FALSE, 0);
+  gtk_widget_show (align);
+
   button = gtk_button_new ();
   gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
   gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
   GTK_WIDGET_UNSET_FLAGS (button, GTK_CAN_DEFAULT | GTK_CAN_FOCUS);
   gtk_widget_set_tooltip_text (button, _("Close this tab"));
-  gtk_box_pack_start  (GTK_BOX (hbox), button, FALSE, FALSE, 0);
+  gtk_container_add (GTK_CONTAINER (align), button);
   g_signal_connect_swapped (G_OBJECT (button), "clicked",
                             G_CALLBACK (gtk_widget_destroy), screen);
   exo_binding_new (G_OBJECT (screen->preferences), "misc-tab-close-buttons",




More information about the Xfce4-commits mailing list