Mercurial > pidgin
diff gtk/gtkutils.c @ 15258:cfdd47296dbc
[gaim-migrate @ 18048]
Fixes for compiling and running with Gtk 2.0 !
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Fri, 22 Dec 2006 19:15:38 +0000 |
parents | 7ce73985115a |
children | ca7cc867fa58 |
line wrap: on
line diff
--- a/gtk/gtkutils.c Fri Dec 22 08:41:29 2006 +0000 +++ b/gtk/gtkutils.c Fri Dec 22 19:15:38 2006 +0000 @@ -2466,6 +2466,7 @@ char **prpl_formats; int width, height; char **pixbuf_formats = NULL; + struct stat st; GdkPixbufFormat *format; GdkPixbuf *pixbuf; #if !GTK_CHECK_VERSION(2,4,0) @@ -2477,7 +2478,6 @@ const char *dirname; char *random; char *filename; - struct stat st; prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(plugin); @@ -2815,7 +2815,7 @@ return pixbuf; } -#endif +#endif /* ! Gtk 2.6.0 */ void gaim_gtk_set_custom_buddy_icon(GaimAccount *account, const char *who, const char *filename) { @@ -3092,3 +3092,28 @@ return result; } + +#if !GTK_CHECK_VERSION(2,2,0) +GtkTreePath * +gtk_tree_path_new_from_indices (gint first_index, ...) +{ + int arg; + va_list args; + GtkTreePath *path; + + path = gtk_tree_path_new (); + + va_start (args, first_index); + arg = first_index; + + while (arg != -1) + { + gtk_tree_path_append_index (path, arg); + arg = va_arg (args, gint); + } + + va_end (args); + + return path; +} +#endif