[PATCH 01/10] Add a couple more deprecation warning ignores

David Shea dshea at redhat.com
Mon Jun 30 19:41:07 UTC 2014


Missed these two in the last batch
---
 widgets/src/HubWindow.c       | 2 ++
 widgets/src/LayoutIndicator.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/widgets/src/HubWindow.c b/widgets/src/HubWindow.c
index b7a0ed6..d1b4e56 100644
--- a/widgets/src/HubWindow.c
+++ b/widgets/src/HubWindow.c
@@ -210,8 +210,10 @@ static void anaconda_hub_window_init(AnacondaHubWindow *win) {
     gtk_box_pack_start(GTK_BOX(action_area), win->priv->scrolled_window, TRUE, TRUE, 0);
 
     /* The hub has different alignment requirements than a spoke. */
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
     gtk_alignment_set(GTK_ALIGNMENT(anaconda_base_window_get_alignment(ANACONDA_BASE_WINDOW(win))),
                       0.5, 0.0, 0.5, 1.0);
+G_GNUC_END_IGNORE_DEPRECATIONS
 }
 
 /**
diff --git a/widgets/src/LayoutIndicator.c b/widgets/src/LayoutIndicator.c
index 49f584f..cebc21d 100644
--- a/widgets/src/LayoutIndicator.c
+++ b/widgets/src/LayoutIndicator.c
@@ -217,7 +217,9 @@ static void anaconda_layout_indicator_init(AnacondaLayoutIndicator *self) {
     gtk_label_set_max_width_chars(self->priv->layout_label, DEFAULT_LABEL_MAX_CHAR_WIDTH);
     gtk_label_set_width_chars(self->priv->layout_label, DEFAULT_LABEL_MAX_CHAR_WIDTH);
     gtk_label_set_ellipsize(self->priv->layout_label, PANGO_ELLIPSIZE_END);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
     gtk_misc_set_alignment(GTK_MISC(self->priv->layout_label), 0.0, 0.5);
+G_GNUC_END_IGNORE_DEPRECATIONS
 
     /* initialize the label with the current layout name */
     anaconda_layout_indicator_refresh_ui_elements(self);
-- 
2.0.0



More information about the anaconda-patches mailing list