[gimp] libgimpwidgets: don't mix GimpWidgetHelpType and GtkWidgetHelpType
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpwidgets: don't mix GimpWidgetHelpType and GtkWidgetHelpType
- Date: Thu, 17 Mar 2011 13:42:26 +0000 (UTC)
commit b725eaa682f6b5f2c19720e30bf9409751594eb7
Author: Michael Natterer <mitch gimp org>
Date: Thu Mar 17 14:41:34 2011 +0100
libgimpwidgets: don't mix GimpWidgetHelpType and GtkWidgetHelpType
Because latest GCC warns about it.
libgimpwidgets/gimphelpui.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libgimpwidgets/gimphelpui.c b/libgimpwidgets/gimphelpui.c
index ff3fd96..999648f 100644
--- a/libgimpwidgets/gimphelpui.c
+++ b/libgimpwidgets/gimphelpui.c
@@ -43,7 +43,9 @@
typedef enum
{
- GIMP_WIDGET_HELP_TYPE_HELP = 0xff
+ GIMP_WIDGET_HELP_TOOLTIP = GTK_WIDGET_HELP_TOOLTIP,
+ GIMP_WIDGET_HELP_WHATS_THIS = GTK_WIDGET_HELP_WHATS_THIS,
+ GIMP_WIDGET_HELP_TYPE_HELP = 0xff
} GimpWidgetHelpType;
@@ -281,7 +283,7 @@ gimp_context_help (GtkWidget *widget)
{
g_return_if_fail (GTK_IS_WIDGET (widget));
- gimp_help_callback (widget, GTK_WIDGET_HELP_WHATS_THIS, NULL);
+ gimp_help_callback (widget, GIMP_WIDGET_HELP_WHATS_THIS, NULL);
}
/**
@@ -357,7 +359,7 @@ gimp_help_callback (GtkWidget *widget,
}
return TRUE;
- case GTK_WIDGET_HELP_WHATS_THIS:
+ case GIMP_WIDGET_HELP_WHATS_THIS:
g_idle_add (gimp_context_help_idle_start, widget);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]