[Pidgin] #1332: Convert gtkprefs option menus, as well as protocol and account option menus to combo boxes

Pidgin trac at pidgin.im
Sun May 27 17:44:15 EDT 2007


#1332: Convert gtkprefs option menus, as well as protocol and account option menus
to combo boxes
---------------------------+------------------------------------------------
  Reporter:  nix_nix       |       Owner:       
      Type:  patch         |      Status:  new  
  Priority:  minor         |   Milestone:       
 Component:  pidgin (gtk)  |     Version:  2.0.1
Resolution:                |    Keywords:       
   Pending:  0             |  
---------------------------+------------------------------------------------
Comment (by nix_nix):

 Thing is, plugins shouldn't be using these widgets directly. The gtkprefs
 option menus are governed by

 GtkWidget *pidgin_prefs_dropdown(GtkWidget *page, const gchar *title,
                 PurplePrefType type, const char *key, ...);
 GtkWidget *pidgin_prefs_dropdown_from_list(GtkWidget *page,
                 const gchar * title, PurplePrefType type, const char *key,
                 GList *menuitems);

 and the account and protocol option menus have

 GtkWidget *pidgin_protocol_option_menu_new(const char *id,
                 GCallback cb,
                 gpointer user_data);
 GtkWidget *pidgin_account_option_menu_new(PurpleAccount *default_account,
                 gboolean show_all, GCallback cb,
                 PurpleFilterAccountFunc filter_func, gpointer user_data);
 PurpleAccount *pidgin_account_option_menu_get_selected(GtkWidget
 *optmenu);
 void pidgin_account_option_menu_set_selected(GtkWidget *optmenu,
 PurpleAccount *account);

 so there's no need to know what widgets lie beneath. I wonder if there are
 any plugins that use the widgets themselves, rather than the provided API.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/1332#comment:2>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list