get icon from filename
There are several files to download. And before downloading, I want to show the user what files to be downloaded, with their icons. So I have a filename such as 'hello.mkv' which not exists but to be downloaded. How can I get an icon GdkPixbuf from the filename 'hello.mkv' I tried GIcon *icon=g_file_icon_new (hello.mkv) GtkIconInfo *info=gtk_icon_theme_lookup_by_gicon(...) GdkPixbuf *pixbuf=gtk_icon_info_load_icon(...) but failed with error message 'Error opening file: No such file or directory' Sorry for my English -- - Wiky L ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
.goutputstream-*?
Hello,I'm writing a program, which download file from web and save it. I use GFileOutputStream to save the data. httper-fOutput = g_file_replace(file, NULL, FALSE, G_FILE_CREATE_NONE, NULL, NULL); ... g_output_stream_write(G_OUTPUT_STREAM(httper-fOutput), ptr, len, 0, NULL); And now I find a series of files named .goutputstream-* in the directory. What are they used for? and how to avoid creating them? Sorry for my English ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
How ot remove the minimize and maximize button of GtkWindow
The default GtkWindow has a minimize , a maximize and a close button in the right or left top coner. But I want a window which only has a close button. How can I remove the minimize and maximize button? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Disable GtkEntry Context Menu
hi all, I create a GtkEntry but it has a context menu by default. How can I disable it. in Gtk+-3.6 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list