From dec6923d3d0ae2ce635b6779420c1395c5956010 Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Sat, 8 Jun 2019 14:12:16 -0400 Subject: * Replace GtkMisc properties with GtkLabel xalign, yalign --- src/indicator-notifications.c | 3 ++- src/notification-menuitem.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/indicator-notifications.c b/src/indicator-notifications.c index a7ced67..e1ebccc 100644 --- a/src/indicator-notifications.c +++ b/src/indicator-notifications.c @@ -177,7 +177,8 @@ indicator_notifications_init(IndicatorNotifications *self) /* Create the clear menuitem */ self->priv->clear_item_label = gtk_label_new(NULL); - gtk_misc_set_alignment(GTK_MISC(self->priv->clear_item_label), 0, 0); + gtk_label_set_xalign(GTK_LABEL(self->priv->clear_item_label), 0); + gtk_label_set_yalign(GTK_LABEL(self->priv->clear_item_label), 0); gtk_label_set_use_markup(GTK_LABEL(self->priv->clear_item_label), TRUE); update_clear_item_markup(self); gtk_widget_show(self->priv->clear_item_label); diff --git a/src/notification-menuitem.c b/src/notification-menuitem.c index 840885e..69bb064 100644 --- a/src/notification-menuitem.c +++ b/src/notification-menuitem.c @@ -80,7 +80,8 @@ notification_menuitem_init(NotificationMenuItem *self) self->priv->hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); self->priv->label = gtk_label_new(NULL); - gtk_misc_set_alignment(GTK_MISC(self->priv->label), 0, 0); + gtk_label_set_xalign(GTK_LABEL(self->priv->label), 0); + gtk_label_set_yalign(GTK_LABEL(self->priv->label), 0); gtk_label_set_use_markup(GTK_LABEL(self->priv->label), TRUE); gtk_label_set_line_wrap(GTK_LABEL(self->priv->label), TRUE); gtk_label_set_line_wrap_mode(GTK_LABEL(self->priv->label), PANGO_WRAP_WORD_CHAR); -- cgit v1.2.3