comparison src/plugins.c @ 1035:80a47e3b1bca

[gaim-migrate @ 1045] thanks to bmiller for yet another patch ;) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 31 Oct 2000 07:36:11 +0000
parents 84a5d80e52f1
children daad2440a642
comparison
equal deleted inserted replaced
1034:1d43fda97960 1035:80a47e3b1bca
126 gtk_widget_show(plugin_dialog); 126 gtk_widget_show(plugin_dialog);
127 gdk_window_raise(plugin_dialog->window); 127 gdk_window_raise(plugin_dialog->window);
128 } 128 }
129 129
130 static void load_which_plugin(GtkWidget *w, gpointer data) { 130 static void load_which_plugin(GtkWidget *w, gpointer data) {
131 load_plugin(gtk_file_selection_get_filename( 131 char *file;
132 GTK_FILE_SELECTION(plugin_dialog))); 132
133 file = gtk_file_selection_get_filename(
134 GTK_FILE_SELECTION(plugin_dialog));
135 if (file_is_dir(file, plugin_dialog)) {
136 return;
137 }
138
139 load_plugin(file);
133 140
134 if (plugin_dialog) 141 if (plugin_dialog)
135 gtk_widget_destroy(plugin_dialog); 142 gtk_widget_destroy(plugin_dialog);
136 plugin_dialog = NULL; 143 plugin_dialog = NULL;
137 } 144 }