[gimp] plug-ins: remove more useless logic from nova
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: remove more useless logic from nova
- Date: Thu, 9 Sep 2010 00:08:20 +0000 (UTC)
commit fe536cf845497510f62ab9c9957c3ca4a05d3a55
Author: Michael Natterer <mitch gimp org>
Date: Thu Sep 9 02:07:58 2010 +0200
plug-ins: remove more useless logic from nova
plug-ins/common/nova.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/plug-ins/common/nova.c b/plug-ins/common/nova.c
index ddfe025..33d6f7e 100644
--- a/plug-ins/common/nova.c
+++ b/plug-ins/common/nova.c
@@ -570,7 +570,7 @@ nova_center_preview_expose (GtkWidget *widget,
* Handle other events on the preview
*/
-static gboolean
+static void
nova_center_update (GtkWidget *widget,
NovaCenter *center,
gint x,
@@ -594,8 +594,6 @@ nova_center_update (GtkWidget *widget,
nova_center_coords_update (GIMP_SIZE_ENTRY (center->coords), center);
gtk_widget_queue_draw (center->preview->area);
-
- return TRUE;
}
static gboolean
@@ -611,12 +609,10 @@ nova_center_preview_events (GtkWidget *widget,
if (mevent->state & GDK_BUTTON1_MASK)
{
- gboolean retval = nova_center_update (widget, center,
- mevent->x, mevent->y);
-
+ nova_center_update (widget, center, mevent->x, mevent->y);
gdk_event_request_motions (mevent);
- return retval;
+ return TRUE;
}
}
break;
@@ -626,7 +622,11 @@ nova_center_preview_events (GtkWidget *widget,
GdkEventButton *bevent = (GdkEventButton *) event;
if (bevent->button == 1)
- return nova_center_update (widget, center, bevent->x, bevent->y);
+ {
+ nova_center_update (widget, center, bevent->x, bevent->y);
+
+ return TRUE;
+ }
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]