Mercurial > pidgin-twitter
comparison pidgin-twitter.c @ 58:31374ae054b0
branch merge
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Sat, 17 May 2008 21:05:12 +0900 |
parents | 34a9fb4b4701 |
children | 3f9148c1dc60 |
comparison
equal
deleted
inserted
replaced
57:8e1c8afac4dd | 58:31374ae054b0 |
---|---|
65 #define P_COMMAND "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+)(?:\\s*\\Z)" | 65 #define P_COMMAND "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+)(?:\\s*\\Z)" |
66 #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)" | 66 #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)" |
67 | 67 |
68 /* debug macros */ | 68 /* debug macros */ |
69 #define twitter_debug(fmt, ...) purple_debug(PURPLE_DEBUG_INFO, PLUGIN_NAME, "%s():%4d: " fmt, __FUNCTION__, (int)__LINE__, ## __VA_ARGS__); | 69 #define twitter_debug(fmt, ...) purple_debug(PURPLE_DEBUG_INFO, PLUGIN_NAME, "%s():%4d: " fmt, __FUNCTION__, (int)__LINE__, ## __VA_ARGS__); |
70 #define twitter_error(fmt, ...) purple_debug(PURPLE_DEBUG_ERROR, PLUGIN_NAME, "%s():%4d: " fmt, __FUCTION__, (int)__LINE__, ## __VA_ARGS__); | 70 #define twitter_error(fmt, ...) purple_debug(PURPLE_DEBUG_ERROR, PLUGIN_NAME, "%s():%4d: " fmt, __FUNCTION__, (int)__LINE__, ## __VA_ARGS__); |
71 | 71 |
72 | 72 |
73 /* globals */ | 73 /* globals */ |
74 static GRegex *regp[4]; | 74 static GRegex *regp[4]; |
75 static gboolean suppress_oops = FALSE; | 75 static gboolean suppress_oops = FALSE; |
589 GtkWidget *box, *sep, *counter, *menus; | 589 GtkWidget *box, *sep, *counter, *menus; |
590 | 590 |
591 box = gtkconv->toolbar; | 591 box = gtkconv->toolbar; |
592 | 592 |
593 /* Disable widgets that decorate or add link to composing text | 593 /* Disable widgets that decorate or add link to composing text |
594 * because Twitter can't receive markuped strings. For lean-view | 594 * because Twitter cannot receive marked up string. For lean-view |
595 * and wide-view, see pidgin/gtkimhtmltoolbar.c. | 595 * and wide-view, see pidgin/gtkimhtmltoolbar.c. |
596 */ | 596 */ |
597 menus = g_object_get_data(G_OBJECT(box), "lean-view"); | 597 menus = g_object_get_data(G_OBJECT(box), "lean-view"); |
598 if(menus) { | 598 if(menus) { |
599 gtk_widget_set_sensitive(GTK_WIDGET(menus), FALSE); | 599 gtk_widget_set_sensitive(GTK_WIDGET(menus), FALSE); |
898 NULL, /**< deps */ | 898 NULL, /**< deps */ |
899 PURPLE_PRIORITY_DEFAULT, /**< priority */ | 899 PURPLE_PRIORITY_DEFAULT, /**< priority */ |
900 PLUGIN_ID, /**< id */ | 900 PLUGIN_ID, /**< id */ |
901 "Pidgin-Twitter", /**< name */ | 901 "Pidgin-Twitter", /**< name */ |
902 "0.6.0", /**< version */ | 902 "0.6.0", /**< version */ |
903 "replaces usernames with links and play sounds", /** summary */ | 903 "replaces usernames with links and plays sounds", /** summary */ |
904 "replaces usernames with links and play sounds", /** desc */ | 904 "replaces usernames with links and plays sounds", /** desc */ |
905 "Yoshiki Yazawa (yaz@honeyplanet.jp)", /**< author */ | 905 "Yoshiki Yazawa and the pidging-twitter team", /**< author */ |
906 "http://www.honeyplanet.jp/", /**< homepage */ | 906 "http://www.honeyplanet.jp/", /**< homepage */ |
907 load_plugin, /**< load */ | 907 load_plugin, /**< load */ |
908 unload_plugin, /**< unload */ | 908 unload_plugin, /**< unload */ |
909 NULL, /**< destroy */ | 909 NULL, /**< destroy */ |
910 NULL, /**< ui_info */ | 910 NULL, /**< ui_info */ |