comparison console/libgnt/gntmain.c @ 14139:44ec6c7cbc76

[gaim-migrate @ 16781] Allow setting the preferences for gnt-plugins. Add a guifications-like plugin for gntgaim. You can set its preferences. The preferences for core plugins are still not accessible. The makefile-foo will require changes once the split is complete. I am now just committing whatever works for me. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 16 Aug 2006 05:12:48 +0000
parents db2311999862
children c3f5ac1f57a9
comparison
equal deleted inserted replaced
14138:7f276f375789 14139:44ec6c7cbc76
584 gnt_widget_draw(widget); 584 gnt_widget_draw(widget);
585 } 585 }
586 586
587 if (changed) 587 if (changed)
588 { 588 {
589 GntNode *node = g_hash_table_lookup(nodes, widget); 589 gnt_screen_move_widget(widget, x, y);
590 gnt_widget_set_position(widget, x, y);
591 move_panel(node->panel, y, x);
592 update_screen(NULL);
593 } 590 }
594 } 591 }
595 else if (*buffer == '\r') 592 else if (*buffer == '\r')
596 { 593 {
597 mode = GNT_KP_MODE_NORMAL; 594 mode = GNT_KP_MODE_NORMAL;
877 show_panel(node->panel); 874 show_panel(node->panel);
878 update_screen(NULL); 875 update_screen(NULL);
879 } 876 }
880 } 877 }
881 878
879 void gnt_screen_move_widget(GntWidget *widget, int x, int y)
880 {
881 GntNode *node = g_hash_table_lookup(nodes, widget);
882 gnt_widget_set_position(widget, x, y);
883 move_panel(node->panel, y, x);
884 update_screen(NULL);
885 }
886