Re: [Gimp-developer] 1.2 Bug Hunting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sven Neumann wrote:
> 
> Hi,
>
> I'll look into fixing this later or wait for a patch. Please report if
> you find more of these.

Patch attached. If I find any more I'll let you know... I did think that
an integer constant 0 could be used in a pointer context without a cast,
though...

> Salut, Sven

Cheers,
Dave.

PS. I forgot the patch the last time...

-- 
David Neary,               E-Mail dave.neary@xxxxxxxxxx
Palamon Technologies Ltd.  Phone +353-1-634-5059
? GINT_TO_POINTER.patch
Index: app/histogram_tool.c
===================================================================
RCS file: /cvs/gnome/gimp/app/Attic/histogram_tool.c,v
retrieving revision 1.40.2.1
diff -u -r1.40.2.1 histogram_tool.c
--- app/histogram_tool.c	2001/05/06 21:15:05	1.40.2.1
+++ app/histogram_tool.c	2001/06/20 11:05:43
@@ -227,9 +227,15 @@
       /* Channels can only have value histograms; reconfigure channel menu. */
       /* Note: gimp_histogram_get_mean() in gimphistogram.c. garo 5/7/2001  */ 
       histogram_tool_dialog->channel = GIMP_HISTOGRAM_VALUE;
-      gimp_option_menu_set_history (g_list_nth_data (gtk_container_children (GTK_CONTAINER (histogram_tool_dialog->channel_menu)), 1), GIMP_HISTOGRAM_VALUE);
+      gimp_option_menu_set_history (g_list_nth_data 
+				    (gtk_container_children 
+				     (GTK_CONTAINER 
+				      (histogram_tool_dialog->channel_menu)), 
+				     1), 
+				    GINT_TO_POINTER (GIMP_HISTOGRAM_VALUE));
       gtk_widget_hide (histogram_tool_dialog->channel_menu);
-      histogram_tool_gradient_draw (histogram_tool_dialog->gradient, GIMP_HISTOGRAM_VALUE);
+      histogram_tool_gradient_draw (histogram_tool_dialog->gradient, 
+				    GIMP_HISTOGRAM_VALUE);
     }
 
   /* calculate the histogram */

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux