diff options
author | Andrzej <ndrwrdck@gmail.com> | 2013-05-07 22:30:59 +0100 |
---|---|---|
committer | Andrzej <ndrwrdck@gmail.com> | 2013-05-07 22:30:59 +0100 |
commit | df724b19e6799f8b688a690b88255cb5a9c4a1ee (patch) | |
tree | 8eb276a33822b4694c745a1828926abec6f1a102 | |
parent | 67c15b10d70d3af2dee96f9fe304a60c51764d84 (diff) | |
download | xfce4-panel-df724b19e6799f8b688a690b88255cb5a9c4a1ee.tar.gz |
tasklist: fixed previous commit to compile with gtk3
-rw-r--r-- | 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 ddba5bc5..dfdc69ac 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; |