[Xfce4-commits] [apps/xfce4-notifyd] 01/01: Don't bind the notification preview to the config dialog

noreply at xfce.org noreply at xfce.org
Sun Sep 17 22:17:55 CEST 2017


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-notifyd.

commit 886a22bdbd2b3b55b4fafa408587e1ece04b5816
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sun Sep 17 22:13:12 2017 +0200

    Don't bind the notification preview to the config dialog
---
 xfce4-notifyd-config/main.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/xfce4-notifyd-config/main.c b/xfce4-notifyd-config/main.c
index 2e783b5..485655e 100644
--- a/xfce4-notifyd-config/main.c
+++ b/xfce4-notifyd-config/main.c
@@ -256,10 +256,11 @@ xfce_notifyd_config_dialog_response(GtkWidget *dialog, gint response, gpointer u
 }
 
 static void
-xfce_notifyd_config_preview_clicked(GtkButton *button,
-                                    GtkWidget *dialog)
+xfce_notifyd_config_preview_clicked(GtkButton *button)
 {
-    xfce_notifyd_config_show_notification_preview(GTK_WINDOW(dialog));
+  GtkWidget *window = gtk_widget_get_toplevel (GTK_WIDGET (button));
+
+  xfce_notifyd_config_show_notification_preview (GTK_WINDOW (window));
 }
 
 /* Shows a separator before each row. */
@@ -846,7 +847,7 @@ xfce4_notifyd_config_setup_dialog(GtkBuilder *builder)
 
     btn = GTK_WIDGET(gtk_builder_get_object(builder, "preview_button"));
     g_signal_connect(G_OBJECT(btn), "clicked",
-                     G_CALLBACK(xfce_notifyd_config_preview_clicked), dlg);
+                     G_CALLBACK(xfce_notifyd_config_preview_clicked), NULL);
 
     /*******************
         APPLICATIONS   *

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list