comparison pidgin/gtkutils.h @ 15439:a415922e2882

merge of '8f5c72b9dbcf628f35e4674469f97b34f9c6fa2c' and 'e082ba7b9cfaf0fef0531d0fe9b54af7831f75df'
author Ethan Blanton <elb@pidgin.im>
date Sun, 28 Jan 2007 01:24:15 +0000
parents 29e443e0613f
children d75099d2567e
comparison
equal deleted inserted replaced
15426:c9497aad9fc4 15439:a415922e2882
43 GAIM_BUTTON_TEXT, 43 GAIM_BUTTON_TEXT,
44 GAIM_BUTTON_IMAGE, 44 GAIM_BUTTON_IMAGE,
45 GAIM_BUTTON_TEXT_IMAGE 45 GAIM_BUTTON_TEXT_IMAGE
46 46
47 } GaimButtonStyle; 47 } GaimButtonStyle;
48
49 typedef enum
50 {
51 PIDGIN_PRPL_ICON_SMALL,
52 PIDGIN_PRPL_ICON_MEDIUM,
53 PIDGIN_PRPL_ICON_LARGE
54 } PidginPrplIconSize;
48 55
49 #ifndef _WIN32 56 #ifndef _WIN32
50 typedef enum 57 typedef enum
51 { 58 {
52 GAIM_BROWSER_DEFAULT = 0, 59 GAIM_BROWSER_DEFAULT = 0,
367 /** 374 /**
368 * Returns the base image to represent the account, based on 375 * Returns the base image to represent the account, based on
369 * the currently selected theme. 376 * the currently selected theme.
370 * 377 *
371 * @param account The account. 378 * @param account The account.
372 * @param scale_factor The amount to scale to the original image. 379 * @param size The size of the icon to return.
373 * The default size is 32x32 pixels. A scale
374 * factor of 1 means no scaling will be done.
375 * A scale factor of 0.5 means the length
376 * and width will be 16 pixels each.
377 * 380 *
378 * @return A newly-created pixbuf with a reference count of 1, 381 * @return A newly-created pixbuf with a reference count of 1,
379 * or NULL if any of several error conditions occurred: 382 * or NULL if any of several error conditions occurred:
380 * the file could not be opened, there was no loader 383 * the file could not be opened, there was no loader
381 * for the file's format, there was not enough memory 384 * for the file's format, there was not enough memory
382 * to allocate the image buffer, or the image file 385 * to allocate the image buffer, or the image file
383 * contained invalid data. 386 * contained invalid data.
384 */ 387 */
385 GdkPixbuf *gaim_gtk_create_prpl_icon(GaimAccount *account, double scale_factor); 388 GdkPixbuf *gaim_gtk_create_prpl_icon(GaimAccount *account, PidginPrplIconSize size);
386 389
387 /** 390 /**
388 * Create a protocol icon with the status emblem overlayed in 391 * Create a protocol icon with the status emblem overlayed in
389 * the lower right corner. 392 * the lower right corner.
390 * 393 *