Mercurial > pidgin.yaz
comparison finch/gntplugin.c @ 20713:8ed95ae6441b
Translate plugin information, and top-align them.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 29 Sep 2007 07:40:14 +0000 |
parents | 6bf32c9e15a7 |
children | 227e397d8e80 |
comparison
equal
deleted
inserted
replaced
20712:f62eb68c9dda | 20713:8ed95ae6441b |
---|---|
125 } | 125 } |
126 | 126 |
127 /* XXX: Use formatting and stuff */ | 127 /* XXX: Use formatting and stuff */ |
128 gnt_text_view_clear(GNT_TEXT_VIEW(plugins.aboot)); | 128 gnt_text_view_clear(GNT_TEXT_VIEW(plugins.aboot)); |
129 text = g_strdup_printf(_("Name: %s\nVersion: %s\nDescription: %s\nAuthor: %s\nWebsite: %s\nFilename: %s\n"), | 129 text = g_strdup_printf(_("Name: %s\nVersion: %s\nDescription: %s\nAuthor: %s\nWebsite: %s\nFilename: %s\n"), |
130 SAFE(plugin->info->name), SAFE(plugin->info->version), SAFE(plugin->info->description), | 130 SAFE(_(plugin->info->name)), SAFE(_(plugin->info->version)), SAFE(_(plugin->info->description)), |
131 SAFE(plugin->info->author), SAFE(plugin->info->homepage), SAFE(plugin->path)); | 131 SAFE(_(plugin->info->author)), SAFE(_(plugin->info->homepage)), SAFE(plugin->path)); |
132 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(plugins.aboot), | 132 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(plugins.aboot), |
133 text, GNT_TEXT_FLAG_NORMAL); | 133 text, GNT_TEXT_FLAG_NORMAL); |
134 gnt_text_view_scroll(GNT_TEXT_VIEW(plugins.aboot), 0); | 134 gnt_text_view_scroll(GNT_TEXT_VIEW(plugins.aboot), 0); |
135 g_free(text); | 135 g_free(text); |
136 decide_conf_button(plugin); | 136 decide_conf_button(plugin); |
270 GNT_WIDGET_SET_FLAGS(tree, GNT_WIDGET_NO_BORDER); | 270 GNT_WIDGET_SET_FLAGS(tree, GNT_WIDGET_NO_BORDER); |
271 gnt_box_add_widget(GNT_BOX(box), tree); | 271 gnt_box_add_widget(GNT_BOX(box), tree); |
272 gnt_box_add_widget(GNT_BOX(box), gnt_vline_new()); | 272 gnt_box_add_widget(GNT_BOX(box), gnt_vline_new()); |
273 | 273 |
274 plugins.aboot = aboot = gnt_text_view_new(); | 274 plugins.aboot = aboot = gnt_text_view_new(); |
275 gnt_text_view_set_flag(GNT_TEXT_VIEW(aboot), GNT_TEXT_VIEW_TOP_ALIGN); | |
275 gnt_widget_set_size(aboot, 40, 20); | 276 gnt_widget_set_size(aboot, 40, 20); |
276 gnt_box_add_widget(GNT_BOX(box), aboot); | 277 gnt_box_add_widget(GNT_BOX(box), aboot); |
277 | 278 |
278 seen = purple_prefs_get_path_list("/finch/plugins/seen"); | 279 seen = purple_prefs_get_path_list("/finch/plugins/seen"); |
279 for (iter = purple_plugins_get_all(); iter; iter = iter->next) | 280 for (iter = purple_plugins_get_all(); iter; iter = iter->next) |