[Xfce4-commits] <xfce4-panel:nick/gtk3> tasklist: fixed previous commit to compile with gtk3

Andrzej noreply at xfce.org
Tue May 7 23:32:01 CEST 2013


Updating branch refs/heads/nick/gtk3
         to df724b19e6799f8b688a690b88255cb5a9c4a1ee (commit)
       from 67c15b10d70d3af2dee96f9fe304a60c51764d84 (commit)

commit df724b19e6799f8b688a690b88255cb5a9c4a1ee
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Tue May 7 22:30:59 2013 +0100

    tasklist: fixed previous commit to compile with gtk3

 plugins/tasklist/tasklist-widget.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index ddba5bc..dfdc69a 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -489,7 +489,7 @@ xfce_tasklist_class_init (XfceTasklistClass *klass)
                                    g_param_spec_boolean ("middle-button-close",
                                                          NULL, NULL,
                                                          FALSE,
-                                                         EXO_PARAM_READWRITE));
+                                                         G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   gtk_widget_class_install_style_property (gtkwidget_class,
                                            g_param_spec_int ("max-button-length",
@@ -2792,8 +2792,8 @@ xfce_tasklist_button_button_release_event (GtkWidget         *button,
       && event->button == 2
       && child->tasklist->middle_button_close
       && !(event->x == 0 && event->y == 0) /* 0,0 = outside the widget in Gtk */
-      && event->x >= 0 && event->x < button->allocation.width
-      && event->y >= 0 && event->y < button->allocation.height)
+      && event->x >= 0 && event->x < allocation.width
+      && event->y >= 0 && event->y < allocation.height)
     {
       wnck_window_close (child->window, event->time);
       return TRUE;


More information about the Xfce4-commits mailing list