comparison gtk/gtkutils.h @ 15115:6cb9996fcc97

[gaim-migrate @ 17901] Rename gtkblist.c:_search_func to gtkutils.c:gaim_gtk_tree_view_search_equal_func. Use this in the buddylist, the statusbox dropdown and in the plugins dialog. This can also be used in the smiley-theme-list. Process Escape and Return key-presses in the statusbox dropdown. seanegan: I hope I didn't step on your toes O:-) committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 06 Dec 2006 07:24:41 +0000
parents ca46f41aa433
children 30932055bb7c
comparison
equal deleted inserted replaced
15114:c18c02aeb366 15115:6cb9996fcc97
488 GdkPixbuf *gdk_pixbuf_new_from_file_at_scale(const char *filename, int width, int height, 488 GdkPixbuf *gdk_pixbuf_new_from_file_at_scale(const char *filename, int width, int height,
489 gboolean preserve_aspect_ratio, 489 gboolean preserve_aspect_ratio,
490 GError **error); 490 GError **error);
491 #endif 491 #endif
492 492
493 #endif /* _GAIM_GTKUTILS_H_ */
494
495 /** 493 /**
496 * Set or unset a custom buddyicon for a user. 494 * Set or unset a custom buddyicon for a user.
497 * 495 *
498 * @param account The account the user belongs to. 496 * @param account The account the user belongs to.
499 * @param who The name of the user. 497 * @param who The name of the user.
521 * @param ... a NULL-terminated list of button labels and callbacks 519 * @param ... a NULL-terminated list of button labels and callbacks
522 */ 520 */
523 void *gaim_gtk_make_mini_dialog(GaimConnection *handle, const char* stock_id, 521 void *gaim_gtk_make_mini_dialog(GaimConnection *handle, const char* stock_id,
524 const char *primary, const char *secondary, 522 const char *primary, const char *secondary,
525 void *user_data, ...); 523 void *user_data, ...);
524
525 /**
526 * This is a callback function to be used for Ctrl+F searching in treeviews.
527 * Sample Use:
528 * gtk_tree_view_set_search_equal_func(treeview,
529 * gaim_gtk_tree_view_search_equal_func,
530 * search_data, search_data_destroy_cb);
531 *
532 */
533 gboolean gaim_gtk_tree_view_search_equal_func(GtkTreeModel *model, gint column,
534 const gchar *key, GtkTreeIter *iter, gpointer data);
535
536 #endif /* _GAIM_GTKUTILS_H_ */
537