Mercurial > pidgin-twitter
changeset 147:3abee459c81c
removed old prefs stuff.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 24 Jul 2008 06:40:41 +0900 |
parents | 62b90f3b0b8a |
children | 4e9d0fd93fb6 |
files | pidgin-twitter.c |
diffstat | 1 files changed, 1 insertions(+), 197 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin-twitter.c Thu Jul 24 06:29:56 2008 +0900 +++ b/pidgin-twitter.c Thu Jul 24 06:40:41 2008 +0900 @@ -2702,195 +2702,6 @@ return notebook; } -#if 0 -static PurplePluginPrefFrame * -get_plugin_pref_frame(PurplePlugin *plugin) -{ - /* create gtk elements for the plugin preferences */ - PurplePluginPref *pref; - PurplePluginPrefFrame *frame = purple_plugin_pref_frame_new(); - - /************************/ - /* screen name heading */ - /************************/ - pref = purple_plugin_pref_new_with_label("Screen Name"); - purple_plugin_pref_frame_add(frame, pref); - - /* twitter */ - pref = - purple_plugin_pref_new_with_name_and_label(OPT_SCREEN_NAME_TWITTER, - "twitter"); - purple_plugin_pref_frame_add(frame, pref); - - /* wassr */ - pref = - purple_plugin_pref_new_with_name_and_label(OPT_SCREEN_NAME_WASSR, - "wassr"); - purple_plugin_pref_frame_add(frame, pref); - - /* identica */ - pref = - purple_plugin_pref_new_with_name_and_label(OPT_SCREEN_NAME_IDENTICA, - "identi.ca"); - purple_plugin_pref_frame_add(frame, pref); - - - /************************/ - /* translation heading */ - /************************/ - pref = purple_plugin_pref_new_with_label("Translation"); - purple_plugin_pref_frame_add(frame, pref); - - /* translation settings */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_TRANSLATE_RECIPIENT, - "Translate @username to link"); - purple_plugin_pref_frame_add(frame, pref); - - pref = purple_plugin_pref_new_with_name_and_label(OPT_TRANSLATE_SENDER, - "Translate sender name to link"); - purple_plugin_pref_frame_add(frame, pref); - - pref = purple_plugin_pref_new_with_name_and_label(OPT_TRANSLATE_CHANNEL, - "Translate channel name to link (wassr only)"); - purple_plugin_pref_frame_add(frame, pref); - - - /*******************/ - /* Utility heading */ - /*******************/ - pref = purple_plugin_pref_new_with_label("Utility"); - purple_plugin_pref_frame_add(frame, pref); - - /* show icon */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_SHOW_ICON, - "Show icons in conversation"); - purple_plugin_pref_frame_add(frame, pref); - - /* icon size */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_ICON_SIZE, - "Icon size in pixel"); - purple_plugin_pref_set_bounds(pref, 16, 128); - purple_plugin_pref_frame_add(frame, pref); - purple_prefs_connect_callback(plugin, OPT_ICON_SIZE, - icon_size_prefs_cb, NULL); - - /* show text counter */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_COUNTER, - "Show text counter widget"); - purple_plugin_pref_frame_add(frame, pref); - purple_prefs_connect_callback(plugin, OPT_COUNTER, - counter_prefs_cb, NULL); - - /* escape pseudo command setting */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_ESCAPE_PSEUDO, - "Escape pseudo command string"); - purple_plugin_pref_frame_add(frame, pref); - - /* suppress oops message */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_SUPPRESS_OOPS, - "Suppress oops message"); - purple_plugin_pref_frame_add(frame, pref); - - - /* notification setting */ - pref = - purple_plugin_pref_new_with_name_and_label(OPT_PREVENT_NOTIFICATION, - "Do not notify incoming message"); - purple_plugin_pref_frame_add(frame, pref); - - /******************/ - /* sound heading */ - /******************/ - pref = purple_plugin_pref_new_with_label("Sound"); - purple_plugin_pref_frame_add(frame, pref); - - /* sound settings for recipient */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_PLAYSOUND_RECIPIENT, - "Play sound on a reply to the user in the recipient list"); - purple_plugin_pref_frame_add(frame, pref); - - /* recipient list */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_USERLIST_RECIPIENT, - "Recipient List"); - purple_plugin_pref_frame_add(frame, pref); - - /* sound id selector */ - pref = - purple_plugin_pref_new_with_name_and_label(OPT_SOUNDID_RECIPIENT, - "Recipient Sound"); - - purple_plugin_pref_set_type(pref, PURPLE_PLUGIN_PREF_CHOICE); - purple_plugin_pref_add_choice(pref, "Arrive", GINT_TO_POINTER(0)); - purple_plugin_pref_add_choice(pref, "Leave", GINT_TO_POINTER(1)); - purple_plugin_pref_add_choice(pref, "Receive", GINT_TO_POINTER(2)); - purple_plugin_pref_add_choice(pref, "First Receive", GINT_TO_POINTER(3)); - purple_plugin_pref_add_choice(pref, "Send", GINT_TO_POINTER(4)); - purple_plugin_pref_add_choice(pref, "Chat Join", GINT_TO_POINTER(5)); - purple_plugin_pref_add_choice(pref, "Chat Leave", GINT_TO_POINTER(6)); - purple_plugin_pref_add_choice(pref, "Chat You Say", GINT_TO_POINTER(7)); - purple_plugin_pref_add_choice(pref, "Chat Someone Say", GINT_TO_POINTER(8)); - purple_plugin_pref_add_choice(pref, "Pounce Default", GINT_TO_POINTER(9)); - purple_plugin_pref_add_choice(pref, "Chat Nick Said", GINT_TO_POINTER(10)); - - purple_plugin_pref_frame_add(frame, pref); - - /* sound setting for sender */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_PLAYSOUND_SENDER, - "Play sound if sender of a message is in the sender list"); - purple_plugin_pref_frame_add(frame, pref); - - /* sender list */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_USERLIST_SENDER, - "Sender List"); - purple_plugin_pref_frame_add(frame, pref); - - /* sound id selector */ - pref = - purple_plugin_pref_new_with_name_and_label(OPT_SOUNDID_SENDER, - "Sender Sound"); - - purple_plugin_pref_set_type(pref, PURPLE_PLUGIN_PREF_CHOICE); - purple_plugin_pref_add_choice(pref, "Arrive", GINT_TO_POINTER(0)); - purple_plugin_pref_add_choice(pref, "Leave", GINT_TO_POINTER(1)); - purple_plugin_pref_add_choice(pref, "Receive", GINT_TO_POINTER(2)); - purple_plugin_pref_add_choice(pref, "First Receive", GINT_TO_POINTER(3)); - purple_plugin_pref_add_choice(pref, "Send", GINT_TO_POINTER(4)); - purple_plugin_pref_add_choice(pref, "Chat Join", GINT_TO_POINTER(5)); - purple_plugin_pref_add_choice(pref, "Chat Leave", GINT_TO_POINTER(6)); - purple_plugin_pref_add_choice(pref, "Chat You Say", GINT_TO_POINTER(7)); - purple_plugin_pref_add_choice(pref, "Chat Someone Say", GINT_TO_POINTER(8)); - purple_plugin_pref_add_choice(pref, "Pounce Default", GINT_TO_POINTER(9)); - purple_plugin_pref_add_choice(pref, "Chat Nick Said", GINT_TO_POINTER(10)); - purple_plugin_pref_frame_add(frame, pref); - - /****************/ - /* API heading */ - /****************/ - pref = purple_plugin_pref_new_with_label("API Based Twitter Access"); - purple_plugin_pref_frame_add(frame, pref); - - /* post configuration */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_API_BASE_POST, - "Post/get statuses via API"); - purple_plugin_pref_frame_add(frame, pref); - - purple_prefs_connect_callback(plugin, OPT_API_BASE_POST, - api_base_post_cb, NULL); - - /* password */ - pref = purple_plugin_pref_new_with_name_and_label(OPT_PASSWORD_TWITTER, - "Password"); - purple_plugin_pref_set_masked(pref, TRUE); - purple_plugin_pref_frame_add(frame, pref); - - return frame; -} - -static PurplePluginUiInfo pref_info = { - get_plugin_pref_frame -}; -#endif - static PidginPluginUiInfo ui_info = { prefs_get_frame, 0, /* page number - reserved */ @@ -2905,8 +2716,7 @@ PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, PURPLE_PLUGIN_STANDARD, /**< type */ -// NULL, /**< ui_req */ - PIDGIN_PLUGIN_TYPE, /**< ui_req */ + PIDGIN_PLUGIN_TYPE, /**< ui_req */ 0, /**< flags */ NULL, /**< deps */ PURPLE_PRIORITY_DEFAULT, /**< priority */ @@ -2920,15 +2730,9 @@ load_plugin, /**< load */ unload_plugin, /**< unload */ NULL, /**< destroy */ -#if 0 - NULL, /**< ui_info */ - NULL, /**< extra_info */ - &pref_info, /**< pref info */ -#else &ui_info, /**< ui_info */ NULL, /**< extra_info */ NULL, /**< pref info */ -#endif NULL };