comparison src/plugins.c @ 3466:7a3f16a375a5

[gaim-migrate @ 3516] some patches from some people. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 29 Aug 2002 01:47:15 +0000
parents 3cd2fbddf95a
children d33ec392a5e1
comparison
equal deleted inserted replaced
3465:ec437d73b2ee 3466:7a3f16a375a5
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')