[gnome-terminal/wip/rishi/command-notify: 1/4] tab-label: Rely on new GTK+ API to center the label
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/wip/rishi/command-notify: 1/4] tab-label: Rely on new GTK+ API to center the label
- Date: Thu, 29 Jan 2015 12:13:46 +0000 (UTC)
commit 6851990c361c378df98377bec9068db3f15d08f1
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jan 28 13:37:12 2015 +0100
tab-label: Rely on new GTK+ API to center the label
Bump GTK+ dependency to 3.12.0.
https://bugzilla.gnome.org/show_bug.cgi?id=743663
configure.ac | 2 +-
src/terminal-tab-label.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d002d1e..b58d791 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,7 @@ AC_MSG_RESULT([$with_gtk])
case "$with_gtk" in
3.0) GTK_API_VERSION=3.0
- GTK_REQUIRED=3.10.0
+ GTK_REQUIRED=3.12.0
VTE_API_VERSION=2.91
VTE_REQUIRED=0.39.2
;;
diff --git a/src/terminal-tab-label.c b/src/terminal-tab-label.c
index 6e99da9..e213a84 100644
--- a/src/terminal-tab-label.c
+++ b/src/terminal-tab-label.c
@@ -190,13 +190,12 @@ terminal_tab_label_constructed (GObject *object)
gtk_box_set_spacing (GTK_BOX (hbox), SPACING);
priv->label = label = gtk_label_new (NULL);
- gtk_widget_set_halign (label, GTK_ALIGN_CENTER);
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
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);
+ gtk_box_set_center_widget (GTK_BOX (hbox), label);
priv->close_button = close_button = terminal_close_button_new ();
gtk_widget_set_tooltip_text (close_button, _("Close tab"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]