From ef3fbab8bced82b3f0e91f3d5587cb4fb2a90517 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Mon, 26 Jan 2009 20:23:01 +0000 Subject: [PATCH] chain up if a parent impl exists to be safe against future gtk versions 2009-01-26 Michael Natterer * libgimpwidgets/gimpbutton.c (gimp_button_clicked): chain up if a parent impl exists to be safe against future gtk versions doing something in GtkButton::clicked() (as happened in GTK+ trunk). svn path=/trunk/; revision=27958 --- ChangeLog | 6 ++++++ libgimpwidgets/gimpbutton.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index ab45613e69..592d5214e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-26 Michael Natterer + + * libgimpwidgets/gimpbutton.c (gimp_button_clicked): chain up if a + parent impl exists to be safe against future gtk versions doing + something in GtkButton::clicked() (as happened in GTK+ trunk). + 2009-01-26 Sven Neumann * plug-ins/common/curve-bend.c (p_load_pointfile): check the diff --git a/libgimpwidgets/gimpbutton.c b/libgimpwidgets/gimpbutton.c index 3e5492925e..7062e0e294 100644 --- a/libgimpwidgets/gimpbutton.c +++ b/libgimpwidgets/gimpbutton.c @@ -132,4 +132,8 @@ gimp_button_clicked (GtkButton *button) gimp_button_extended_clicked (GIMP_BUTTON (button), GIMP_BUTTON (button)->press_state); } + else if (GTK_BUTTON_CLASS (parent_class)->clicked) + { + GTK_BUTTON_CLASS (parent_class)->clicked (button); + } }