Mercurial > pidgin
diff plugins/spellchk.c @ 3565:154c4a9d9b6d
[gaim-migrate @ 3660]
Now you can configure your plugins.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Sat, 28 Sep 2002 21:39:45 +0000 |
| parents | cd938f18f3f8 |
| children | 9682c0e022c6 |
line wrap: on
line diff
--- a/plugins/spellchk.c Sat Sep 28 17:46:10 2002 +0000 +++ b/plugins/spellchk.c Sat Sep 28 21:39:45 2002 +0000 @@ -358,22 +358,18 @@ } } -void gaim_plugin_config() { - GtkWidget *win; - GtkWidget *vbox; +GtkWidget *gaim_plugin_config_gtk() { + GtkWidget *ret, *vbox, *win; GtkWidget *hbox; GtkWidget *button; GList *w = words; struct replace_words *r; char *pair[2] = {"Replace", "With"}; + + ret = gtk_vbox_new(FALSE, 18); + gtk_container_set_border_width (GTK_CONTAINER (ret), 12); - if (configwin) return; - GAIM_DIALOG(configwin); - gtk_widget_set_usize(configwin, 450, 250); - gtk_window_set_title(GTK_WINDOW(configwin), "Spell Check Config"); - gtk_signal_connect(GTK_OBJECT(configwin), "destroy", GTK_SIGNAL_FUNC(close_config), NULL); - - vbox = gtk_vbox_new(0, 2); + vbox = make_frame(ret, _("Text Replacements")); gtk_container_set_border_width(GTK_CONTAINER(vbox), 4); gtk_container_add(GTK_CONTAINER(configwin), vbox); gtk_widget_show (vbox); @@ -452,5 +448,6 @@ w = w->next; } - gtk_widget_show(configwin); + gtk_widget_show_all(ret); + return ret; }
