Mercurial > pidgin
comparison console/gntnotify.c @ 13971:df8183b7fa2c
[gaim-migrate @ 16529]
Make multi-column trees look nice.
Show the list of users in a chat-room after you join.
Add some commands (eg. /me, /help etc., all Xeroxed from gtkconv.c)
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 20 Jul 2006 17:38:09 +0000 |
parents | 0a0d2a1fd2bc |
children | a71678d2da16 |
comparison
equal
deleted
inserted
replaced
13970:4a2e9c494bed | 13971:df8183b7fa2c |
---|---|
102 | 102 |
103 gnt_box_add_widget(GNT_BOX(box), | 103 gnt_box_add_widget(GNT_BOX(box), |
104 gnt_label_new_with_format(_("You have mail!"), GNT_TEXT_FLAG_BOLD)); | 104 gnt_label_new_with_format(_("You have mail!"), GNT_TEXT_FLAG_BOLD)); |
105 | 105 |
106 emaildialog.tree = tree = gnt_tree_new_with_columns(3); | 106 emaildialog.tree = tree = gnt_tree_new_with_columns(3); |
107 gnt_tree_set_column_titles(GNT_TREE(tree), _("Account"), _("From"), _("Subject")); | |
108 gnt_tree_set_show_title(GNT_TREE(tree), TRUE); | |
107 gnt_tree_set_col_width(GNT_TREE(tree), 0, 15); | 109 gnt_tree_set_col_width(GNT_TREE(tree), 0, 15); |
108 gnt_tree_set_col_width(GNT_TREE(tree), 1, 25); | 110 gnt_tree_set_col_width(GNT_TREE(tree), 1, 25); |
109 gnt_tree_set_col_width(GNT_TREE(tree), 2, 25); | 111 gnt_tree_set_col_width(GNT_TREE(tree), 2, 25); |
110 | 112 |
111 gnt_box_add_widget(GNT_BOX(box), tree); | 113 gnt_box_add_widget(GNT_BOX(box), tree); |
139 { | 141 { |
140 setup_email_dialog(); | 142 setup_email_dialog(); |
141 | 143 |
142 gnt_tree_add_row_after(GNT_TREE(emaildialog.tree), GINT_TO_POINTER(time(NULL)), | 144 gnt_tree_add_row_after(GNT_TREE(emaildialog.tree), GINT_TO_POINTER(time(NULL)), |
143 gnt_tree_create_row(GNT_TREE(emaildialog.tree), | 145 gnt_tree_create_row(GNT_TREE(emaildialog.tree), |
144 tos ? *tos : gaim_account_get_username(account), | 146 tos ? *tos : gaim_account_get_username(account), /* XXX: Perhaps add the prpl-name */ |
145 froms ? *froms : "[Unknown sender]", | 147 froms ? *froms : "[Unknown sender]", |
146 *subjects), | 148 *subjects), |
147 NULL, NULL); | 149 NULL, NULL); |
148 gnt_widget_show(emaildialog.window); | 150 gnt_widget_show(emaildialog.window); |
149 return NULL; | 151 return NULL; |