comparison console/libgnt/test/tv.c @ 14397:70f52ff1caec

[gaim-migrate @ 17105] fix the bug in textview committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 01 Sep 2006 02:44:46 +0000
parents eaf7f35635bc
children 8a0cfee11af8
comparison
equal deleted inserted replaced
14396:9e9699792bb9 14397:70f52ff1caec
81 gnt_widget_show(hbox); 81 gnt_widget_show(hbox);
82 82
83 gnt_entry_set_history_length(GNT_ENTRY(entry), -1); 83 gnt_entry_set_history_length(GNT_ENTRY(entry), -1);
84 g_signal_connect_after(G_OBJECT(entry), "key_pressed", G_CALLBACK(key_pressed), view); 84 g_signal_connect_after(G_OBJECT(entry), "key_pressed", G_CALLBACK(key_pressed), view);
85 85
86 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view), "plugins: ", GNT_TEXT_FLAG_BOLD);
87 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view), "this is the 1st line\n", GNT_TEXT_FLAG_NORMAL);
88
89 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view), "plugins: ", GNT_TEXT_FLAG_BOLD);
90 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view), "this is the 2nd line\n", GNT_TEXT_FLAG_NORMAL);
91
92 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view), "plugins: ", GNT_TEXT_FLAG_BOLD);
93 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view), "this is the 3rd line\n", GNT_TEXT_FLAG_NORMAL);
94
95 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view), "plugins: ", GNT_TEXT_FLAG_BOLD);
96 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(view), "this is the 4th line\n", GNT_TEXT_FLAG_NORMAL);
97
86 #ifdef STANDALONE 98 #ifdef STANDALONE
87 gnt_main(); 99 gnt_main();
88 100
89 gnt_quit(); 101 gnt_quit();
90 #endif 102 #endif