| 142 gdk_window_raise(plugin_dialog->window); |
142 gdk_window_raise(plugin_dialog->window); |
| 143 } |
143 } |
| 144 |
144 |
| 145 static void load_which_plugin(GtkWidget *w, gpointer data) |
145 static void load_which_plugin(GtkWidget *w, gpointer data) |
| 146 { |
146 { |
| 147 char *file; |
147 const char *file; |
| 148 struct gaim_plugin *p; |
148 struct gaim_plugin *p; |
| 149 |
149 |
| 150 file = (char *)gtk_file_selection_get_filename(GTK_FILE_SELECTION(plugin_dialog)); |
150 file = (char *)gtk_file_selection_get_filename(GTK_FILE_SELECTION(plugin_dialog)); |
| 151 if (file_is_dir(file, plugin_dialog)) { |
151 if (file_is_dir(file, plugin_dialog)) { |
| 152 return; |
152 return; |
| 537 } |
537 } |
| 538 |
538 |
| 539 static const gchar *plugin_makelistname(GModule *module) |
539 static const gchar *plugin_makelistname(GModule *module) |
| 540 { |
540 { |
| 541 static gchar filename[PATHSIZE]; |
541 static gchar filename[PATHSIZE]; |
| 542 gchar *filepath = (char *)g_module_name(module); |
542 const gchar *filepath = (char *)g_module_name(module); |
| 543 char *cp; |
543 const char *cp; |
| 544 |
544 |
| 545 if (filepath == NULL || strlen(filepath) == 0) |
545 if (filepath == NULL || strlen(filepath) == 0) |
| 546 return NULL; |
546 return NULL; |
| 547 |
547 |
| 548 if ((cp = strrchr(filepath, '/')) == NULL || *++cp == '\0') |
548 if ((cp = strrchr(filepath, '/')) == NULL || *++cp == '\0') |