[gnome-control-center] cc-editable-entry: don't use deprecated xalign on GtkButton
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] cc-editable-entry: don't use deprecated xalign on GtkButton
- Date: Thu, 20 Nov 2014 10:41:58 +0000 (UTC)
commit bd5ac1078d8f3f29d9f740aa00f55df1cd6d4e2f
Author: Ondrej Holy <oholy redhat com>
Date: Thu Nov 6 19:25:59 2014 +0100
cc-editable-entry: don't use deprecated xalign on GtkButton
shell/cc-editable-entry.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/cc-editable-entry.c b/shell/cc-editable-entry.c
index 554947c..f77dda7 100644
--- a/shell/cc-editable-entry.c
+++ b/shell/cc-editable-entry.c
@@ -612,7 +612,7 @@ cc_editable_entry_init (CcEditableEntry *e)
priv->button = (GtkButton*)gtk_button_new_with_label (EMPTY_TEXT);
gtk_widget_set_receives_default ((GtkWidget*)priv->button, TRUE);
gtk_button_set_relief (priv->button, GTK_RELIEF_NONE);
- g_object_set (G_OBJECT (priv->button), "xalign", 0, NULL);
+ g_object_set (G_OBJECT (gtk_bin_get_child (GTK_BIN (priv->button))), "xalign", 0, NULL);
gtk_stack_add_named (priv->stack, GTK_WIDGET (priv->button), PAGE_BUTTON);
g_signal_connect (priv->button, "clicked", G_CALLBACK (button_clicked), e);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]