Mercurial > pidgin-twitter
changeset 164:5043d4d9766d
clean up.
author | Yoshiki Yazawa <yaz@honeyplnaet.jp> |
---|---|
date | Sat, 26 Jul 2008 23:27:10 +0900 |
parents | 84cb6e8ad755 |
children | ade632c88e33 |
files | pidgin-twitter.c pidgin-twitter.h |
diffstat | 2 files changed, 19 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin-twitter.c Sat Jul 26 22:51:49 2008 +0900 +++ b/pidgin-twitter.c Sat Jul 26 23:27:10 2008 +0900 @@ -20,6 +20,7 @@ #include "pidgin-twitter.h" + /***********/ /* globals */ /***********/ @@ -28,10 +29,8 @@ static gboolean suppress_oops = FALSE; static GHashTable *icon_hash[3]; /* twitter, wassr, identica. */ static GHashTable *conv_hash = NULL; - static GList *statuseslist = NULL; static GList *postedlist = NULL; - static gchar *wassr_post = NULL; static gchar *identica_post = NULL; @@ -40,6 +39,7 @@ PurpleConversation *conv; } source; + /*************/ /* functions */ /*************/ @@ -297,7 +297,7 @@ } } -static char *day_of_week_name[] = { +static gchar *day_of_week_name[] = { "Sun", "Mon", "Tue", @@ -305,11 +305,10 @@ "Thu", "Fri", "Sat", - "Sun", NULL }; -static char *month_name[] = { +static gchar *month_name[] = { "Jan", "Feb", "Mar", @@ -2327,8 +2326,6 @@ } } - - static void api_base_post_cb(const char *name, PurplePrefType type, gconstpointer value, gpointer data) @@ -2337,8 +2334,6 @@ get_status_with_api((gpointer)(source.conv)); } - - static gboolean load_plugin(PurplePlugin *plugin) { @@ -2572,8 +2567,7 @@ twitter_debug("called\n"); - purple_prefs_set_int( - pref, + purple_prefs_set_int(pref, gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(data))); } @@ -2634,13 +2628,13 @@ G_CALLBACK(disconnect_prefs_cb), plugin); - /***********************/ + /**********************/ /* connect to signals */ - /***********************/ - - /*****************/ + /**********************/ + + /****************/ /* account page */ - /*****************/ + /****************/ e = GTK_WIDGET(gtk_builder_get_object (builder, "account_twitter")); g_object_set_data(G_OBJECT(e), "pref", OPT_SCREEN_NAME_TWITTER); text = purple_prefs_get_string(OPT_SCREEN_NAME_TWITTER); @@ -2710,9 +2704,9 @@ - /*********************/ + /********************/ /* translation page */ - /*********************/ + /********************/ e = GTK_WIDGET(gtk_builder_get_object (builder, "translation_recipient")); g_object_set_data(G_OBJECT(e), "pref", OPT_TRANSLATE_RECIPIENT); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(e), @@ -2736,9 +2730,9 @@ - /**************/ + /*************/ /* icon page */ - /**************/ + /*************/ e = GTK_WIDGET(gtk_builder_get_object (builder, "icon_show_icon")); g_object_set_data(G_OBJECT(e), "pref", OPT_SHOW_ICON); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(e), @@ -2822,9 +2816,9 @@ - /***************/ + /**************/ /* sound page */ - /***************/ + /**************/ e = GTK_WIDGET(gtk_builder_get_object (builder, "sound_recip_check")); g_object_set_data(G_OBJECT(e), "pref", OPT_PLAYSOUND_RECIPIENT); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(e), @@ -2933,11 +2927,11 @@ PURPLE_PRIORITY_DEFAULT, /**< priority */ PLUGIN_ID, /**< id */ "Pidgin-Twitter", /**< name */ - "0.7.0", /**< version */ + "0.7.0b1", /**< version */ "provides useful features for twitter", /** summary */ "provides useful features for twitter", /** desc */ "Yoshiki Yazawa, mikanbako, \nKonosuke Watanabe, IWATA Ray, mojin, \nthe pidging-twitter team", /**< author */ - "http://www.honeyplanet.jp/", /**< homepage */ + "http://www.honeyplanet.jp/pidgin-twitter/", /**< homepage */ load_plugin, /**< load */ unload_plugin, /**< unload */ NULL, /**< destroy */ @@ -2988,8 +2982,6 @@ purple_prefs_add_bool(OPT_UPDATE_ICON, TRUE); purple_prefs_add_int(OPT_ICON_MAX_COUNT, DEFAULT_ICON_MAX_COUNT); purple_prefs_add_int(OPT_ICON_MAX_DAYS, DEFAULT_ICON_MAX_DAYS); - - purple_prefs_add_bool(OPT_BROKEN_FIREWALL, FALSE); } PURPLE_INIT_PLUGIN(pidgin_twitter, init_plugin, info)
--- a/pidgin-twitter.h Sat Jul 26 22:51:49 2008 +0900 +++ b/pidgin-twitter.h Sat Jul 26 23:27:10 2008 +0900 @@ -86,7 +86,6 @@ time_t time; } twitter_message_t; - #define PLUGIN_ID "gtk-honeyplanet-pidgin_twitter" #define PLUGIN_NAME "pidgin-twitter" @@ -117,7 +116,6 @@ #define OPT_ICON_MAX_COUNT OPT_PIDGINTWITTER "/icon_max_count" #define OPT_ICON_MAX_DAYS OPT_PIDGINTWITTER "/icon_max_days" #define OPT_API_BASE_GET_INTERVAL OPT_PIDGINTWITTER "/api_base_get_interval" -#define OPT_BROKEN_FIREWALL OPT_PIDGINTWITTER "/broken_firewall" /* formats and templates */ #define RECIPIENT_FORMAT_TWITTER "@<a href='http://twitter.com/%s'>%s</a>" @@ -222,5 +220,6 @@ static gchar *strip_html_markup(const gchar *src); static GtkWidget *prefs_get_frame(PurplePlugin *plugin); +/* more prototypes */ #endif