[devhelp/wip/swilmet/maintenance: 8/21] window: don't use gtk_misc_set_alignment() (deprecated)
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/wip/swilmet/maintenance: 8/21] window: don't use gtk_misc_set_alignment() (deprecated)
- Date: Sat, 23 May 2015 18:32:49 +0000 (UTC)
commit 2f893c86332d6fe4aa726385244fc7b848c36d6c
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri May 15 21:28:04 2015 +0200
window: don't use gtk_misc_set_alignment() (deprecated)
0.5 is the default value for yalign. So set only GtkLabel:xalign.
https://bugzilla.gnome.org/show_bug.cgi?id=749452
src/dh-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index c56786b..27633af 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -972,7 +972,7 @@ window_web_view_load_failed_cb (WebKitWebView *web_view,
markup = g_strdup_printf ("<b>%s</b>",
_("Error opening the requested link."));
message_label = gtk_label_new (markup);
- gtk_misc_set_alignment (GTK_MISC (message_label), 0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (message_label), 0.0);
gtk_label_set_use_markup (GTK_LABEL (message_label), TRUE);
content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (info_bar));
children = gtk_container_get_children (GTK_CONTAINER (content_area));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]