comparison console/gntblist.c @ 13869:5642f4658b59

[gaim-migrate @ 16335] A bunch of stuff that doesn't really do much. I am trying to get the "expose" thingy going where a widget will redraw some of its parts when some other widget covering it is destroyed. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 25 Jun 2006 03:15:41 +0000
parents d78ab363e02d
children 765bbdf29d04
comparison
equal deleted inserted replaced
13868:b355f7ed1814 13869:5642f4658b59
220 widget = ggblist->tree; 220 widget = ggblist->tree;
221 tree = GNT_TREE(widget); 221 tree = GNT_TREE(widget);
222 222
223 if (ggblist->tooltip) 223 if (ggblist->tooltip)
224 { 224 {
225 /* XXX: Once we can properly redraw on expose events, this can be removed at the end
226 * to avoid the blinking*/
225 remove_tooltip(ggblist); 227 remove_tooltip(ggblist);
226 } 228 }
227 229
228 node = gnt_tree_get_selection_data(tree); 230 node = gnt_tree_get_selection_data(tree);
229 if (!node) 231 if (!node)
291 293
292 g_free(title); 294 g_free(title);
293 g_string_free(str, TRUE); 295 g_string_free(str, TRUE);
294 ggblist->tooltip = box; 296 ggblist->tooltip = box;
295 ggblist->tnode = node; 297 ggblist->tnode = node;
298
299 gnt_widget_set_name(ggblist->tooltip, "tooltip");
296 } 300 }
297 301
298 static void 302 static void
299 selection_changed(GntWidget *widget, gpointer old, gpointer current, GGBlist *ggblist) 303 selection_changed(GntWidget *widget, gpointer old, gpointer current, GGBlist *ggblist)
300 { 304 {
331 ggblist = g_new0(GGBlist, 1); 335 ggblist = g_new0(GGBlist, 1);
332 336
333 gaim_get_blist()->ui_data = ggblist; 337 gaim_get_blist()->ui_data = ggblist;
334 338
335 ggblist->window = gnt_box_new(FALSE, FALSE); 339 ggblist->window = gnt_box_new(FALSE, FALSE);
340 gnt_widget_set_name(ggblist->window, "buddylist");
336 gnt_box_set_toplevel(GNT_BOX(ggblist->window), TRUE); 341 gnt_box_set_toplevel(GNT_BOX(ggblist->window), TRUE);
337 gnt_box_set_title(GNT_BOX(ggblist->window), _("Buddy List")); 342 gnt_box_set_title(GNT_BOX(ggblist->window), _("Buddy List"));
338 gnt_box_set_pad(GNT_BOX(ggblist->window), 0); 343 gnt_box_set_pad(GNT_BOX(ggblist->window), 0);
339 344
340 ggblist->tree = gnt_tree_new(); 345 ggblist->tree = gnt_tree_new();