[notification-daemon] don't use deprecated gtk_widget_size_request



commit fa9068b1f61f42e7c2488fe5270924237030011e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Nov 29 12:12:01 2014 +0200

    don't use deprecated gtk_widget_size_request

 src/nd-bubble.c           |    2 +-
 src/nd-notification-box.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nd-bubble.c b/src/nd-bubble.c
index 35e4bc0..2373a1d 100644
--- a/src/nd-bubble.c
+++ b/src/nd-bubble.c
@@ -741,7 +741,7 @@ set_notification_text (NdBubble   *bubble,
         }
         update_content_hbox_visibility (bubble);
 
-        gtk_widget_size_request (bubble->priv->close_button, &req);
+        gtk_widget_get_preferred_size (bubble->priv->close_button, NULL, &req);
         /* -1: main_vbox border width
            -10: vbox border width
            -6: spacing for hbox */
diff --git a/src/nd-notification-box.c b/src/nd-notification-box.c
index 5fa387b..48f10a0 100644
--- a/src/nd-notification-box.c
+++ b/src/nd-notification-box.c
@@ -211,7 +211,7 @@ update_notification_box (NdNotificationBox *notification_box)
         gtk_label_set_markup (GTK_LABEL (notification_box->priv->summary_label), str);
         g_free (str);
 
-        gtk_widget_size_request (notification_box->priv->close_button, &req);
+        gtk_widget_get_preferred_size (notification_box->priv->close_button, NULL, &req);
         /* -1: main_vbox border width
            -10: vbox border width
            -6: spacing for hbox */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]