[Xfce4-commits] <xfce4-notifyd:master> Fixup type setting.

Nick Schermer noreply at xfce.org
Fri Aug 26 12:30:01 CEST 2011


Updating branch refs/heads/master
         to 836e6ce0673a71345c581170412f14a68f6163f7 (commit)
       from 7fd1766939688a040779924e79155b35f1206123 (commit)

commit 836e6ce0673a71345c581170412f14a68f6163f7
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Aug 26 12:27:48 2011 +0200

    Fixup type setting.

 xfce4-notifyd/xfce-notify-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xfce4-notifyd/xfce-notify-window.c b/xfce4-notifyd/xfce-notify-window.c
index 891f5a5..41316b8 100644
--- a/xfce4-notifyd/xfce-notify-window.c
+++ b/xfce4-notifyd/xfce-notify-window.c
@@ -196,7 +196,6 @@ xfce_notify_window_init(XfceNotifyWindow *window)
     GtkWidget *tophbox, *align, *vbox;
     gdouble border_radius = DEFAULT_RADIUS;
 
-    GTK_WINDOW(window)->type = GTK_WINDOW_TOPLEVEL;
     window->expire_timeout = DEFAULT_EXPIRE_TIMEOUT;
     window->normal_opacity = DEFAULT_NORMAL_OPACITY;
     /* The summary widget needs to be initialized before style_set is called. gtk_widget_ensure_style calls style_set */
@@ -935,7 +934,8 @@ xfce_notify_window_new_with_actions(const gchar *summary,
 {
     XfceNotifyWindow *window;
 
-    window = g_object_new(XFCE_TYPE_NOTIFY_WINDOW, NULL);
+    window = g_object_new(XFCE_TYPE_NOTIFY_WINDOW,
+                          "type", GTK_WINDOW_TOPLEVEL, NULL);
 
     xfce_notify_window_set_summary(window, summary);
     xfce_notify_window_set_body(window, body);


More information about the Xfce4-commits mailing list