pidgin/gtkblist.c

changeset 22104
56970903b8e9
parent 22087
ce5388a6bf3a
child 22108
cb9819851163
equal deleted inserted replaced
22103:f11f1570cd4d 22104:56970903b8e9
175 PidginBlistNodeFlags flags; 175 PidginBlistNodeFlags flags;
176 } conv; 176 } conv;
177 } PidginBlistNode; 177 } PidginBlistNode;
178 178
179 static char dim_grey_string[8] = ""; 179 static char dim_grey_string[8] = "";
180 static char *dim_grey() 180 static char *dim_grey(void)
181 { 181 {
182 if (!gtkblist) 182 if (!gtkblist)
183 return "dim grey"; 183 return "dim grey";
184 if (!dim_grey_string[0]) { 184 if (!dim_grey_string[0]) {
185 snprintf(dim_grey_string, sizeof(dim_grey_string), "%s", pidgin_get_dim_grey_string(gtkblist->treeview)); 185 snprintf(dim_grey_string, sizeof(dim_grey_string), "%s", pidgin_get_dim_grey_string(gtkblist->treeview));
706 } 706 }
707 } 707 }
708 pidgin_blist_update(purple_get_blist(), node); 708 pidgin_blist_update(purple_get_blist(), node);
709 } 709 }
710 710
711 static void gtk_blist_show_systemlog_cb() 711 static void gtk_blist_show_systemlog_cb(void)
712 { 712 {
713 pidgin_syslog_show(); 713 pidgin_syslog_show();
714 } 714 }
715 715
716 static void gtk_blist_show_onlinehelp_cb() 716 static void gtk_blist_show_onlinehelp_cb(void)
717 { 717 {
718 purple_notify_uri(NULL, PURPLE_WEBSITE "documentation"); 718 purple_notify_uri(NULL, PURPLE_WEBSITE "documentation");
719 } 719 }
720 720
721 static void 721 static void
1115 else 1115 else
1116 gtk_tree_view_expand_row(tv,path,FALSE);*/ 1116 gtk_tree_view_expand_row(tv,path,FALSE);*/
1117 } 1117 }
1118 } 1118 }
1119 1119
1120 static void pidgin_blist_add_chat_cb() 1120 static void pidgin_blist_add_chat_cb(void)
1121 { 1121 {
1122 GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(gtkblist->treeview)); 1122 GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(gtkblist->treeview));
1123 GtkTreeIter iter; 1123 GtkTreeIter iter;
1124 PurpleBlistNode *node; 1124 PurpleBlistNode *node;
1125 1125
1135 else { 1135 else {
1136 purple_blist_request_add_chat(NULL, NULL, NULL, NULL); 1136 purple_blist_request_add_chat(NULL, NULL, NULL, NULL);
1137 } 1137 }
1138 } 1138 }
1139 1139
1140 static void pidgin_blist_add_buddy_cb() 1140 static void pidgin_blist_add_buddy_cb(void)
1141 { 1141 {
1142 GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(gtkblist->treeview)); 1142 GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(gtkblist->treeview));
1143 GtkTreeIter iter; 1143 GtkTreeIter iter;
1144 PurpleBlistNode *node; 1144 PurpleBlistNode *node;
1145 1145
2759 } 2759 }
2760 return FALSE; 2760 return FALSE;
2761 } 2761 }
2762 2762
2763 static void 2763 static void
2764 pidgin_blist_destroy_tooltip_data() 2764 pidgin_blist_destroy_tooltip_data(void)
2765 { 2765 {
2766 while(gtkblist->tooltipdata) { 2766 while(gtkblist->tooltipdata) {
2767 struct tooltip_data *td = gtkblist->tooltipdata->data; 2767 struct tooltip_data *td = gtkblist->tooltipdata->data;
2768 2768
2769 if(td->avatar) 2769 if(td->avatar)
3748 } 3748 }
3749 3749
3750 return text; 3750 return text;
3751 } 3751 }
3752 3752
3753 static void pidgin_blist_restore_position() 3753 static void pidgin_blist_restore_position(void)
3754 { 3754 {
3755 int blist_x, blist_y, blist_width, blist_height; 3755 int blist_x, blist_y, blist_width, blist_height;
3756 3756
3757 blist_width = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/blist/width"); 3757 blist_width = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/blist/width");
3758 3758
3895 { 3895 {
3896 pidgin_blist_update_plugin_actions(); 3896 pidgin_blist_update_plugin_actions();
3897 } 3897 }
3898 3898
3899 static void 3899 static void
3900 unseen_conv_menu() 3900 unseen_conv_menu(void)
3901 { 3901 {
3902 static GtkWidget *menu = NULL; 3902 static GtkWidget *menu = NULL;
3903 GList *convs = NULL; 3903 GList *convs = NULL;
3904 GList *chats, *ims; 3904 GList *chats, *ims;
3905 3905
4181 pidgin_blist_sort_method_reg("log_size", _("By log size"), sort_method_log); 4181 pidgin_blist_sort_method_reg("log_size", _("By log size"), sort_method_log);
4182 #endif 4182 #endif
4183 pidgin_blist_sort_method_set(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/blist/sort_type")); 4183 pidgin_blist_sort_method_set(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/blist/sort_type"));
4184 } 4184 }
4185 4185
4186 static void _prefs_change_redo_list() 4186 static void _prefs_change_redo_list(void)
4187 { 4187 {
4188 GtkTreeSelection *sel; 4188 GtkTreeSelection *sel;
4189 GtkTreeIter iter; 4189 GtkTreeIter iter;
4190 PurpleBlistNode *node = NULL; 4190 PurpleBlistNode *node = NULL;
4191 4191

mercurial