Add types Support for windows

This commit is contained in:
daleclack 2021-06-27 19:05:51 +08:00
parent cde3346f99
commit 30147c534f
3 changed files with 28 additions and 10 deletions

View File

@ -1,4 +1,5 @@
{
"C_Cpp.errorSquiggles": "Disabled",
"cmake.configureOnOpen": false
"cmake.configureOnOpen": false,
"C_Cpp.dimInactiveRegions": false
}

View File

@ -1,6 +1,7 @@
#include "background.h"
#include "winconf.h"
#include "winpe.xpm"
#include "image_types.h"
static void dialog_response(GtkNativeDialog *widget,int response,GtkBuilder *builder){
//Handle file chooser response and set background
@ -23,15 +24,6 @@ static void dialog_response(GtkNativeDialog *widget,int response,GtkBuilder *bui
gtk_native_dialog_destroy(widget);
}
static const char * const supported_globs[]={
"*.jpg",
"*.jpeg",
"*.png",
"*.bmp",
"*.xpm",
NULL
};
void fileopen(GtkWidget *widget,GtkBuilder *builder){
GObject *parent=gtk_builder_get_object(builder,"window");

25
Gtk3/src/image_types.h Normal file
View File

@ -0,0 +1,25 @@
static const char * const supported_globs[]={
"*.bmp",
"*.cod",
"*.gif",
"*.ief",
"*.jpe",
"*.jpeg",
"*.jpg",
"*.jfif",
"*.svg",
"*.tif",
"*.tiff",
"*.ras",
"*.cmx",
"*.ico",
"*.pnm",
"*.pbm",
"*.pgm",
"*.ppm",
"*.rgb",
"*.xbm",
"*.xpm",
"*.xwd",
NULL
};