gnome-terminal r2447 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r2447 - trunk/src
- Date: Wed, 19 Mar 2008 15:19:42 +0000 (GMT)
Author: chpe
Date: Wed Mar 19 15:19:42 2008
New Revision: 2447
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2447&view=rev
Log:
Remove deprecated gtktooltips usage.
Modified:
trunk/src/terminal-window.c
Modified: trunk/src/terminal-window.c
==============================================================================
--- trunk/src/terminal-window.c (original)
+++ trunk/src/terminal-window.c Wed Mar 19 15:19:42 2008
@@ -1389,6 +1389,7 @@
hbox = gtk_widget_get_parent (label);
gtk_label_set_text (GTK_LABEL (label), title);
+
gtk_widget_set_tooltip_text (hbox, title);
}
@@ -1397,11 +1398,11 @@
GtkStyle *previous_style,
GtkWidget *button)
{
- int h, w;
+ int h, w;
- gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (button),
- GTK_ICON_SIZE_MENU, &w, &h);
- gtk_widget_set_size_request (button, w + 2, h + 2);
+ gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (button),
+ GTK_ICON_SIZE_MENU, &w, &h);
+ gtk_widget_set_size_request (button, w + 2, h + 2);
}
static GtkWidget *
@@ -1412,8 +1413,11 @@
hbox = gtk_hbox_new (FALSE, 4);
label = gtk_label_new (NULL);
- gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_misc_set_padding (GTK_MISC (label), 0, 0);
+ gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
+ gtk_label_set_single_line_mode (GTK_LABEL (label), TRUE);
+
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
close_button = gtk_button_new ();
@@ -1425,7 +1429,7 @@
image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (close_button), image);
- gtk_box_pack_start (GTK_BOX (hbox), close_button, FALSE, FALSE, 0);
+ gtk_box_pack_end (GTK_BOX (hbox), close_button, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (close_button), "clicked",
G_CALLBACK (close_button_clicked_cb),
@@ -1436,8 +1440,7 @@
"title-changed",
G_CALLBACK (sync_tab_label),
label);
-
- g_signal_connect (G_OBJECT (hbox), "style-set",
+ g_signal_connect (hbox, "style-set",
G_CALLBACK (tab_label_style_set_cb), close_button);
gtk_widget_show_all (hbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]