Mercurial > pidgin.yaz
comparison console/gntblist.c @ 13916:fdf2dbed6faa
[gaim-migrate @ 16418]
Make the conversation windows bigger ... which is better *wink*.
Use Panel library to manage the windows.
Add a window-list that you can use to quickly switch to a window
(press Alt+w to bring it up).
Get rid of some unused codes.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 04 Jul 2006 01:32:39 +0000 |
parents | cc60d0861337 |
children | 9309d27d780c |
comparison
equal
deleted
inserted
replaced
13915:e78d113f82db | 13916:fdf2dbed6faa |
---|---|
353 gnt_box_set_title(GNT_BOX(box), title); | 353 gnt_box_set_title(GNT_BOX(box), title); |
354 | 354 |
355 gnt_box_add_widget(GNT_BOX(box), gnt_label_new(str->str)); | 355 gnt_box_add_widget(GNT_BOX(box), gnt_label_new(str->str)); |
356 | 356 |
357 gnt_widget_set_position(box, x, y); | 357 gnt_widget_set_position(box, x, y); |
358 GNT_WIDGET_UNSET_FLAGS(box, GNT_WIDGET_CAN_TAKE_FOCUS); | |
358 gnt_widget_draw(box); | 359 gnt_widget_draw(box); |
359 | 360 |
360 g_free(title); | 361 g_free(title); |
361 g_string_free(str, TRUE); | 362 g_string_free(str, TRUE); |
362 ggblist->tooltip = box; | 363 ggblist->tooltip = box; |
436 #endif | 437 #endif |
437 | 438 |
438 g_signal_connect(G_OBJECT(ggblist->tree), "selection_changed", G_CALLBACK(selection_changed), ggblist); | 439 g_signal_connect(G_OBJECT(ggblist->tree), "selection_changed", G_CALLBACK(selection_changed), ggblist); |
439 g_signal_connect(G_OBJECT(ggblist->tree), "key_pressed", G_CALLBACK(key_pressed), ggblist); | 440 g_signal_connect(G_OBJECT(ggblist->tree), "key_pressed", G_CALLBACK(key_pressed), ggblist); |
440 g_signal_connect(G_OBJECT(ggblist->tree), "activate", G_CALLBACK(selection_activate), ggblist); | 441 g_signal_connect(G_OBJECT(ggblist->tree), "activate", G_CALLBACK(selection_activate), ggblist); |
442 g_signal_connect_data(G_OBJECT(ggblist->tree), "gained-focus", G_CALLBACK(draw_tooltip), | |
443 ggblist, 0, G_CONNECT_AFTER | G_CONNECT_SWAPPED); | |
444 g_signal_connect_data(G_OBJECT(ggblist->tree), "lost-focus", G_CALLBACK(remove_tooltip), | |
445 ggblist, 0, G_CONNECT_AFTER | G_CONNECT_SWAPPED); | |
441 } | 446 } |
442 | 447 |
443 void gg_blist_uninit() | 448 void gg_blist_uninit() |
444 { | 449 { |
445 gnt_widget_destroy(ggblist->window); | 450 gnt_widget_destroy(ggblist->window); |
446 g_free(ggblist); | 451 g_free(ggblist); |
447 ggblist = NULL; | 452 ggblist = NULL; |
448 } | 453 } |
449 | 454 |
450 | 455 void gg_blist_get_position(int *x, int *y) |
456 { | |
457 gnt_widget_get_position(ggblist->window, x, y); | |
458 } | |
459 | |
460 void gg_blist_set_position(int x, int y) | |
461 { | |
462 gnt_widget_set_position(ggblist->window, x, y); | |
463 } | |
464 | |
465 void gg_blist_get_size(int *width, int *height) | |
466 { | |
467 gnt_widget_get_size(ggblist->window, width, height); | |
468 } | |
469 | |
470 void gg_blist_set_size(int width, int height) | |
471 { | |
472 gnt_widget_set_size(ggblist->window, width, height); | |
473 } | |
474 |