Rename app from example to ssdd
This commit is contained in:
parent
86c43720cb
commit
ef25b54a22
22
resources.c
22
resources.c
@ -6,19 +6,19 @@
|
|||||||
# define SECTION
|
# define SECTION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const SECTION union { const guint8 data[58573]; const double alignment; void * const ptr;} resources_resource_data = {
|
static const SECTION union { const guint8 data[58569]; const double alignment; void * const ptr;} resources_resource_data = {
|
||||||
"\107\126\141\162\151\141\156\164\000\000\000\000\000\000\000\000"
|
"\107\126\141\162\151\141\156\164\000\000\000\000\000\000\000\000"
|
||||||
"\030\000\000\000\254\000\000\000\000\000\000\050\005\000\000\000"
|
"\030\000\000\000\254\000\000\000\000\000\000\050\005\000\000\000"
|
||||||
"\000\000\000\000\002\000\000\000\002\000\000\000\003\000\000\000"
|
"\000\000\000\000\003\000\000\000\003\000\000\000\004\000\000\000"
|
||||||
"\003\000\000\000\113\120\220\013\001\000\000\000\254\000\000\000"
|
"\004\000\000\000\113\120\220\013\001\000\000\000\254\000\000\000"
|
||||||
"\004\000\114\000\260\000\000\000\264\000\000\000\324\265\002\000"
|
"\004\000\114\000\260\000\000\000\264\000\000\000\324\265\002\000"
|
||||||
"\377\377\377\377\264\000\000\000\001\000\114\000\270\000\000\000"
|
"\377\377\377\377\264\000\000\000\001\000\114\000\270\000\000\000"
|
||||||
"\274\000\000\000\362\135\204\322\004\000\000\000\274\000\000\000"
|
"\274\000\000\000\364\112\244\205\003\000\000\000\274\000\000\000"
|
||||||
"\015\000\166\000\320\000\000\000\267\344\000\000\100\364\277\000"
|
"\015\000\166\000\320\000\000\000\267\344\000\000\075\144\204\030"
|
||||||
"\000\000\000\000\267\344\000\000\004\000\114\000\274\344\000\000"
|
"\004\000\000\000\267\344\000\000\005\000\114\000\274\344\000\000"
|
||||||
"\300\344\000\000\173\302\015\100\003\000\000\000\300\344\000\000"
|
"\300\344\000\000\100\364\277\000\000\000\000\000\300\344\000\000"
|
||||||
"\010\000\114\000\310\344\000\000\314\344\000\000\157\162\147\057"
|
"\004\000\114\000\304\344\000\000\310\344\000\000\157\162\147\057"
|
||||||
"\003\000\000\000\057\000\000\000\000\000\000\000\163\163\144\144"
|
"\004\000\000\000\057\000\000\000\000\000\000\000\163\163\144\144"
|
||||||
"\055\151\143\157\156\056\160\156\147\000\000\000\000\000\000\000"
|
"\055\151\143\157\156\056\160\156\147\000\000\000\000\000\000\000"
|
||||||
"\327\343\000\000\000\000\000\000\211\120\116\107\015\012\032\012"
|
"\327\343\000\000\000\000\000\000\211\120\116\107\015\012\032\012"
|
||||||
"\000\000\000\015\111\110\104\122\000\000\000\372\000\000\000\372"
|
"\000\000\000\015\111\110\104\122\000\000\000\372\000\000\000\372"
|
||||||
@ -3666,8 +3666,8 @@ static const SECTION union { const guint8 data[58573]; const double alignment; v
|
|||||||
"\273\144\076\362\376\126\231\001\270\342\117\017\175\141\061\234"
|
"\273\144\076\362\376\126\231\001\270\342\117\017\175\141\061\234"
|
||||||
"\267\313\363\367\144\034\053\076\061\374\001\062\350\033\102\345"
|
"\267\313\363\367\144\034\053\076\061\374\001\062\350\033\102\345"
|
||||||
"\316\060\115\000\000\000\000\111\105\116\104\256\102\140\202\000"
|
"\316\060\115\000\000\000\000\111\105\116\104\256\102\140\202\000"
|
||||||
"\000\050\165\165\141\171\051\147\164\153\057\000\004\000\000\000"
|
"\000\050\165\165\141\171\051\163\163\144\144\057\002\000\000\000"
|
||||||
"\145\170\141\155\160\154\145\057\002\000\000\000" };
|
"\147\164\153\057\003\000\000\000" };
|
||||||
|
|
||||||
static GStaticResource static_resource = { resources_resource_data.data, sizeof (resources_resource_data.data) - 1 /* nul terminator */, NULL, NULL, NULL };
|
static GStaticResource static_resource = { resources_resource_data.data, sizeof (resources_resource_data.data) - 1 /* nul terminator */, NULL, NULL, NULL };
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<gresources>
|
<gresources>
|
||||||
<gresource prefix="/org/gtk/example">
|
<gresource prefix="/org/gtk/ssdd">
|
||||||
<file>ssdd-icon.png</file>
|
<file>ssdd-icon.png</file>
|
||||||
</gresource>
|
</gresource>
|
||||||
</gresources>
|
</gresources>
|
||||||
|
6
ssdd.c
6
ssdd.c
@ -64,7 +64,7 @@ static void show_about_dialog(GtkWidget *widget) {
|
|||||||
box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5);
|
box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5);
|
||||||
gtk_container_add(GTK_CONTAINER(content_area), box);
|
gtk_container_add(GTK_CONTAINER(content_area), box);
|
||||||
|
|
||||||
image = gtk_image_new_from_resource("/org/gtk/example/ssdd-icon.png");
|
image = gtk_image_new_from_resource("/org/gtk/ssdd/ssdd-icon.png");
|
||||||
gtk_image_set_pixel_size(GTK_IMAGE(image), 250); // Assuming original size is 500x500
|
gtk_image_set_pixel_size(GTK_IMAGE(image), 250); // Assuming original size is 500x500
|
||||||
gtk_box_pack_start(GTK_BOX(box), image, FALSE, FALSE, 0);
|
gtk_box_pack_start(GTK_BOX(box), image, FALSE, FALSE, 0);
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ static void activate(GtkApplication *app, gpointer user_data) {
|
|||||||
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
|
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
|
||||||
|
|
||||||
// Load the icon from the resource and set it as the window icon
|
// Load the icon from the resource and set it as the window icon
|
||||||
GdkPixbuf *icon_pixbuf = gdk_pixbuf_new_from_resource("/org/gtk/example/ssdd-icon.png", NULL);
|
GdkPixbuf *icon_pixbuf = gdk_pixbuf_new_from_resource("/org/gtk/ssdd/ssdd-icon.png", NULL);
|
||||||
gtk_window_set_icon(GTK_WINDOW(window), icon_pixbuf);
|
gtk_window_set_icon(GTK_WINDOW(window), icon_pixbuf);
|
||||||
g_object_unref(icon_pixbuf); // Free the icon pixbuf after setting it
|
g_object_unref(icon_pixbuf); // Free the icon pixbuf after setting it
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ int main(int argc, char **argv) {
|
|||||||
// Register the resource
|
// Register the resource
|
||||||
g_resources_register(resources_get_resource());
|
g_resources_register(resources_get_resource());
|
||||||
|
|
||||||
app = gtk_application_new("org.gtk.example", G_APPLICATION_DEFAULT_FLAGS);
|
app = gtk_application_new("org.gtk.ssdd", G_APPLICATION_DEFAULT_FLAGS);
|
||||||
g_signal_connect(app, "activate", G_CALLBACK(activate), NULL);
|
g_signal_connect(app, "activate", G_CALLBACK(activate), NULL);
|
||||||
status = g_application_run(G_APPLICATION(app), argc, argv);
|
status = g_application_run(G_APPLICATION(app), argc, argv);
|
||||||
g_object_unref(app);
|
g_object_unref(app);
|
||||||
|
Loading…
Reference in New Issue
Block a user