[Xfce4-commits] [panel-plugins/xfce4-smartbookmark-plugin] 03/11: Don't access window member directly, use gtk_widget_get_window() instead

noreply at xfce.org noreply at xfce.org
Thu Apr 28 11:51:01 CEST 2016


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

landry pushed a commit to branch master
in repository panel-plugins/xfce4-smartbookmark-plugin.

commit 411669f522812d2614adc843b872aa6d76f4080b
Author: Landry Breuil <landry at xfce.org>
Date:   Thu Apr 28 11:39:33 2016 +0200

    Don't access window member directly, use gtk_widget_get_window() instead
---
 src/smartbookmark.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/smartbookmark.c b/src/smartbookmark.c
index a74d21c..21226a7 100644
--- a/src/smartbookmark.c
+++ b/src/smartbookmark.c
@@ -140,7 +140,7 @@ static gboolean entry_buttonpress_cb(GtkWidget *entry, GdkEventButton *event, Xf
 {
     GtkWidget *toplevel = gtk_widget_get_toplevel (entry);
 
-    if (event->button != 3 && toplevel && toplevel->window) {
+    if (event->button != 3 && toplevel && gtk_widget_get_window(toplevel)) {
         xfce_panel_plugin_focus_widget (plugin, entry);
     }
 

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


More information about the Xfce4-commits mailing list