Re: [patch] gnome-libs pixmap fix?



On 21 May, John Ellis shouted:
->  Toshio writes:
->  >Hi -- While tracing why gnome-objc isn't compiling at the moment,
->  >I found that gnome-libs/libgnomeui/gnome_pixmap.* is declaring but
->  >not defining gnome_pixmap_new_from_rgb_d_at_size.  Here's a patch,
->  >if someone could look it over to do what it's supposed to (It's
->  >monkey-see monkey-do copied from similar gnome_pixmap functions.)
->  >and commit the change (I don't have write access), that would be
->  >wonderful.
->  
->  I posted a similar patch for this earlier, but did not commit because I'm not sure to
->  use char *data or unsigned char *data. The other two declarations for
->  gnome_pixmap_new_from_rgb_d(and _shaped) use an unsigned char *.
->  So the question is to keep it as:
->  
->  GtkWidget *gnome_pixmap_new_from_rgb_d_at_size (char *data, unsigned char *alpha,
->                                                  int rgb_width, int rgb_height,
->                                                  int width, int height);
->  
->  or change the function to:
->  
->  GtkWidget *gnome_pixmap_new_from_rgb_d_at_size (unsigned char *data, unsigned char *alpha,
->                                                  int rgb_width, int rgb_height,
->                                                  int width, int height);
->  
->  I'll do the commit if someone could tell me which way is correct?

unsigned char is correct.


->  --
->  John Ellis <gqview@geocities.com>
->  http://www.geocities.com/SiliconValley/Haven/5235/
->  
->  

-- 
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
raster@rasterman.com       /\___ /\ ___/||\___ ____/|/\___  raster@redhat.com
Carsten Haitzler           | _ //__\\ __||_ __\\ ___|| _ /  Red Hat Advanced
218/21 Conner Drive        || // __ \\_ \ | |   \ _/_|| /   Development Labs
Chapel Hill NC 27514 USA   ||\\\/  \//__/ |_|   /___/||\\   919 547 0012 ext 282
+1 (919) 929 9443, 801 4392   For pure Enlightenmenthttp://www.rasterman.com/ 



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