comparison console/gntblist.c @ 13897:eaaf73de9188

[gaim-migrate @ 16382] I have added a sort of a taskbar, useful in showing the active windows. I have also readjusted the blue color a little bit, since this is the one I am using in a few places right now. And also getting rid of some code-duplication. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 01 Jul 2006 04:24:31 +0000
parents a621329e8c85
children cc60d0861337
comparison
equal deleted inserted replaced
13896:a621329e8c85 13897:eaaf73de9188
217 217
218 node->ui_data = gnt_tree_add_row_after(GNT_TREE(ggblist->tree), buddy, 218 node->ui_data = gnt_tree_add_row_after(GNT_TREE(ggblist->tree), buddy,
219 get_display_name(node), group, NULL); 219 get_display_name(node), group, NULL);
220 } 220 }
221 221
222 #if 0
222 static void 223 static void
223 buddy_signed_on(GaimBuddy *buddy, GGBlist *ggblist) 224 buddy_signed_on(GaimBuddy *buddy, GGBlist *ggblist)
224 { 225 {
225 add_node((GaimBlistNode*)buddy, ggblist); 226 add_node((GaimBlistNode*)buddy, ggblist);
226 } 227 }
228 static void 229 static void
229 buddy_signed_off(GaimBuddy *buddy, GGBlist *ggblist) 230 buddy_signed_off(GaimBuddy *buddy, GGBlist *ggblist)
230 { 231 {
231 node_remove(gaim_get_blist(), (GaimBlistNode*)buddy); 232 node_remove(gaim_get_blist(), (GaimBlistNode*)buddy);
232 } 233 }
234 #endif
233 235
234 GaimBlistUiOps *gg_blist_get_ui_ops() 236 GaimBlistUiOps *gg_blist_get_ui_ops()
235 { 237 {
236 return &blist_ui_ops; 238 return &blist_ui_ops;
237 } 239 }
257 } 259 }
258 260
259 static void 261 static void
260 draw_tooltip(GGBlist *ggblist) 262 draw_tooltip(GGBlist *ggblist)
261 { 263 {
262 return;
263 GaimBlistNode *node; 264 GaimBlistNode *node;
264 int x, y, top, width; 265 int x, y, top, width;
265 GString *str; 266 GString *str;
266 GaimPlugin *prpl; 267 GaimPlugin *prpl;
267 GaimPluginProtocolInfo *prpl_info; 268 GaimPluginProtocolInfo *prpl_info;
408 gnt_box_set_title(GNT_BOX(ggblist->window), _("Buddy List")); 409 gnt_box_set_title(GNT_BOX(ggblist->window), _("Buddy List"));
409 gnt_box_set_pad(GNT_BOX(ggblist->window), 0); 410 gnt_box_set_pad(GNT_BOX(ggblist->window), 0);
410 411
411 ggblist->tree = gnt_tree_new(); 412 ggblist->tree = gnt_tree_new();
412 GNT_WIDGET_SET_FLAGS(ggblist->tree, GNT_WIDGET_NO_BORDER); 413 GNT_WIDGET_SET_FLAGS(ggblist->tree, GNT_WIDGET_NO_BORDER);
413 gnt_widget_set_size(ggblist->tree, 25, getmaxy(stdscr) - 2); 414 gnt_widget_set_size(ggblist->tree, 25, getmaxy(stdscr) - 3);
414 415
415 gnt_box_add_widget(GNT_BOX(ggblist->window), ggblist->tree); 416 gnt_box_add_widget(GNT_BOX(ggblist->window), ggblist->tree);
416 gnt_widget_show(ggblist->window); 417 gnt_widget_show(ggblist->window);
417 418
418 gaim_signal_connect(gaim_blist_get_handle(), "buddy-status-changed", gg_blist_get_handle(), 419 gaim_signal_connect(gaim_blist_get_handle(), "buddy-status-changed", gg_blist_get_handle(),