Re: Patch GtkSelection 2.16



On Sat, Jan 17, 2009 at 8:38 PM, muppet <scott asofyet org> wrote:

For extra points, you could golf the code a little bit with these
definitions up before the first MODULE:

   #if ! GTK_CHECK_VERSION (2, 15, 0) /* FIXME 2.16 */
   # define gtk_selection_data_get_selection (d)  ((d)->selection)
   #endif
   #if ! GTK_CHECK_VERSION (2, 14, 0)
   # define gtk_selection_data_get_target (d)  ((d)->target)
   # define gtk_selection_data_get_data_type (d)  ((d)->data_type)
   # define gtk_selection_data_get_format (d)  ((d)->format)
   ...
   #endif

and unconditionally use the accessors in the switch.


This patch goes for the extra points.

-- 
Emmanuel Rodriguez

Attachment: GtkSelection.patch
Description: Text Data



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