[Gtk_File_Chooser] [Windows]refuse de s'ouvrir
Bonjour
J'ai un problème lors de l'ouverture d'une fenêtre GtkFileChooserDialog. Voici le message d'erreur que j'ai lors de son ouverture :
Code:
1 2 3 4 5 6 7 8
| fixme:file:GetLongPathNameW UNC pathname L"\\\\?\\C:\\users\\troumad\\Local Settings\\Application Data\\gtk-3.0\\bookmarks"
fixme:file:GetLongPathNameW UNC pathname L"\\\\?\\D:\\Documents\\add\\perso\\trash:"
fixme:file:GetLongPathNameW UNC pathname L"\\\\?\\C:\\users\\troumad\\Local Settings\\Application Data\\gtk-3.0\\servers"
fixme:file:GetLongPathNameW UNC pathname L"\\\\?\\C:\\users\\troumad\\Local Settings\\Application Data\\gtk-3.0\\bookmarks"
GLib-GIO-Message: watch thread: could not watch /org/gtk/settings/file-chooser/: E/S avec chevauchement en cours.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
(perso.exe:8): GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'date-format' |
Le code pour ouvrir les fichiers glade a été pris ici :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| void get_widgets(struct widgets *widgets)
{
widgets->window = GTK_WIDGET(gtk_builder_get_object(widgets->builder,"window"));
}
struct widgets * ouverture_glade_retour(char * _nom, unsigned short connect)
{
GError *error = NULL;
struct widgets * widgets=NULL;
char *chemin, * ici=chemin_exe();
widgets=(struct widgets *)malloc(sizeof(struct widgets));
widgets->builder = gtk_builder_new();
chemin=g_build_path (G_DIR_SEPARATOR_S,ici,"fichiers","glade",_nom,NULL);
if (!gtk_builder_add_from_file(widgets->builder, chemin, &error))
{
g_warning("%s", error->message);
g_error_free(error);
printf("Fichier %s inexistant à l'emplacement %s\n",_nom,chemin);
widgets=NULL;
}
else
{
get_widgets(widgets);
if ((connect&GLADE_CONNECT)!=0)
{
gtk_builder_connect_signals(widgets->builder, widgets);
}
gtk_widget_show(widgets->window);
}
g_free(chemin);
g_free(ici);
return widgets;
} |
Bien sûr sous Linux, je n'ai pas de problème...