comparison gtk3/dw.c @ 2204:b86ae2abb3b3

GTK: Added GTK2 support for GResource embedded images. Removed the App ID from the resource namespace. I assume the namespace is per process and this should be sufficient, but can revisit adding the application name or application ID to the resource namespace later.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 29 Nov 2020 05:29:11 +0000
parents c677d728e143
children a43a3f80ed32
comparison
equal deleted inserted replaced
2203:12fb7f32f3a9 2204:b86ae2abb3b3
1922 1922
1923 static GdkPixbuf *_dw_pixbuf_from_resource(unsigned int rid) 1923 static GdkPixbuf *_dw_pixbuf_from_resource(unsigned int rid)
1924 { 1924 {
1925 #if GLIB_CHECK_VERSION(2,32,0) 1925 #if GLIB_CHECK_VERSION(2,32,0)
1926 char resource_path[201] = {0}; 1926 char resource_path[201] = {0};
1927 snprintf(resource_path, 200, "/org/dbsoft/dwindows/%s/%u", _dw_app_id, rid); 1927 snprintf(resource_path, 200, "/org/dbsoft/dwindows/%u", rid);
1928 return gdk_pixbuf_new_from_resource(resource_path, NULL); 1928 return gdk_pixbuf_new_from_resource(resource_path, NULL);
1929 #else 1929 #else
1930 return NULL; 1930 return NULL;
1931 #endif 1931 #endif
1932 } 1932 }