Mercurial > pidgin-twitter
comparison pidgin-twitter.c @ 101:ceabb8099bf3
merged
author | mikanbako <maoutwo@gmail.com> |
---|---|
date | Fri, 11 Jul 2008 19:25:55 +0900 |
parents | 86772af940ce f207cc8da6cd |
children | 55c466028d48 |
comparison
equal
deleted
inserted
replaced
100:86772af940ce | 101:ceabb8099bf3 |
---|---|
1230 if(!icon_id) { | 1230 if(!icon_id) { |
1231 return; | 1231 return; |
1232 } | 1232 } |
1233 | 1233 |
1234 /* insert icon actually */ | 1234 /* insert icon actually */ |
1235 gtk_imhtml_insert_image_at_iter(target_imhtml, icon_id, &insertion_point); | 1235 if(purple_prefs_get_bool(OPT_SHOW_ICON)) |
1236 gtk_imhtml_insert_image_at_iter(target_imhtml, | |
1237 icon_id, &insertion_point); | |
1236 gtk_text_buffer_delete_mark(target_buffer, requested_mark); | 1238 gtk_text_buffer_delete_mark(target_buffer, requested_mark); |
1237 requested_mark = NULL; | 1239 requested_mark = NULL; |
1238 } | 1240 } |
1239 | 1241 |
1240 static void | 1242 static void |
1659 g_free(user_name); user_name = NULL; | 1661 g_free(user_name); user_name = NULL; |
1660 return; | 1662 return; |
1661 } | 1663 } |
1662 | 1664 |
1663 /* if we have icon for this user, insert icon immediately */ | 1665 /* if we have icon for this user, insert icon immediately */ |
1664 gtk_imhtml_insert_image_at_iter(imhtml, icon_id, &insertion_point); | 1666 if(purple_prefs_get_bool(OPT_SHOW_ICON)) |
1667 gtk_imhtml_insert_image_at_iter(imhtml, icon_id, &insertion_point); | |
1665 g_free(user_name); user_name = NULL; | 1668 g_free(user_name); user_name = NULL; |
1666 | 1669 |
1667 twitter_debug("reach end of function\n"); | 1670 twitter_debug("reach end of function\n"); |
1668 } | 1671 } |
1669 | 1672 |
1861 purple_prefs_connect_callback(plugin, OPT_COUNTER, counter_prefs_cb, NULL); | 1864 purple_prefs_connect_callback(plugin, OPT_COUNTER, counter_prefs_cb, NULL); |
1862 | 1865 |
1863 /* suppress oops message */ | 1866 /* suppress oops message */ |
1864 pref = purple_plugin_pref_new_with_name_and_label(OPT_SUPPRESS_OOPS, | 1867 pref = purple_plugin_pref_new_with_name_and_label(OPT_SUPPRESS_OOPS, |
1865 "Suppress oops message"); | 1868 "Suppress oops message"); |
1869 purple_plugin_pref_frame_add(frame, pref); | |
1870 | |
1871 /* show icon */ | |
1872 pref = purple_plugin_pref_new_with_name_and_label(OPT_SHOW_ICON, | |
1873 "Show icon"); | |
1866 purple_plugin_pref_frame_add(frame, pref); | 1874 purple_plugin_pref_frame_add(frame, pref); |
1867 | 1875 |
1868 | 1876 |
1869 /*****************/ | 1877 /*****************/ |
1870 /* sound heading */ | 1878 /* sound heading */ |
2020 purple_prefs_add_int(OPT_SOUNDID_SENDER, PURPLE_SOUND_POUNCE_DEFAULT); | 2028 purple_prefs_add_int(OPT_SOUNDID_SENDER, PURPLE_SOUND_POUNCE_DEFAULT); |
2021 purple_prefs_add_string(OPT_USERLIST_SENDER, DEFAULT_LIST); | 2029 purple_prefs_add_string(OPT_USERLIST_SENDER, DEFAULT_LIST); |
2022 | 2030 |
2023 purple_prefs_add_bool(OPT_COUNTER, TRUE); | 2031 purple_prefs_add_bool(OPT_COUNTER, TRUE); |
2024 purple_prefs_add_bool(OPT_SUPPRESS_OOPS, TRUE); | 2032 purple_prefs_add_bool(OPT_SUPPRESS_OOPS, TRUE); |
2025 | |
2026 purple_prefs_add_bool(OPT_PREVENT_NOTIFICATION, FALSE); | 2033 purple_prefs_add_bool(OPT_PREVENT_NOTIFICATION, FALSE); |
2034 purple_prefs_add_bool(OPT_SHOW_ICON, TRUE); | |
2035 | |
2036 | |
2027 | 2037 |
2028 purple_prefs_add_bool(OPT_API_BASE_POST, FALSE); | 2038 purple_prefs_add_bool(OPT_API_BASE_POST, FALSE); |
2029 purple_prefs_add_string(OPT_SCREEN_NAME, EMPTY); | 2039 purple_prefs_add_string(OPT_SCREEN_NAME, EMPTY); |
2030 purple_prefs_add_string(OPT_PASSWORD, EMPTY); | 2040 purple_prefs_add_string(OPT_PASSWORD, EMPTY); |
2031 } | 2041 } |