Re: [evolution-patches] (Gal) Fix to handle double click on attachment bar



Whats with all the g_object_set_data stuff?  That's pretty messy, when
all you need is a pointer.

ON the object.

Thats the whole point of having the object there, not merely as a shitty
associative array.


On Wed, 2005-08-17 at 20:03 +0530, Srinivasa Ragavan wrote:
> +                               if (!uri) {
> +                                       path = temp_save_part
> (attachment->body);
> +                                       url =
> g_strdup_printf("file://%s", path);
> +                                       g_object_set_data_full
> ((GObject *) attachment, "e-open-url", url, g_free);
> +                                       uri =
> g_strdup_printf("file://%s\r\n", path);
> +                                       g_object_set_data_full
> ((GObject *) attachment, "e-drag-uri", uri, g_free);
> +                               } else { 
-- 
adfa(evolution-2.4:20087): gtkhtml-WARNING **: cannot find icon:
'stock_insert-url' in gnome 




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