gtk-demo: Rename to org.gtk.Demo4

This commit is contained in:
Matthias Clasen 2019-04-01 18:49:09 -04:00
parent e2fcca4e60
commit 365400c13e
14 changed files with 24 additions and 24 deletions

View File

@ -55,7 +55,7 @@ msys2-mingw32:
flatpak:demo: flatpak:demo:
variables: variables:
APPID: org.gtk.Demo APPID: org.gtk.Demo4
<<: *flatpak-defaults <<: *flatpak-defaults
flatpak:widget-factory: flatpak:widget-factory:

View File

@ -1,5 +1,5 @@
{ {
"app-id": "org.gtk.Demo", "app-id": "org.gtk.Demo4",
"runtime": "org.gnome.Platform", "runtime": "org.gnome.Platform",
"runtime-version": "master", "runtime-version": "master",
"sdk": "org.gnome.Sdk", "sdk": "org.gnome.Sdk",

View File

@ -212,7 +212,7 @@ activate_about (GSimpleAction *action,
"comments", "Program to demonstrate GTK functions.", "comments", "Program to demonstrate GTK functions.",
"authors", authors, "authors", authors,
"documenters", documentors, "documenters", documentors,
"logo-icon-name", "org.gtk.Demo", "logo-icon-name", "org.gtk.Demo4",
"title", "About GTK Code Demos", "title", "About GTK Code Demos",
NULL); NULL);
} }
@ -370,7 +370,7 @@ demo_application_init (DemoApplication *app)
GSettings *settings; GSettings *settings;
GAction *action; GAction *action;
settings = g_settings_new ("org.gtk.Demo"); settings = g_settings_new ("org.gtk.Demo4");
g_action_map_add_action_entries (G_ACTION_MAP (app), g_action_map_add_action_entries (G_ACTION_MAP (app),
app_entries, G_N_ELEMENTS (app_entries), app_entries, G_N_ELEMENTS (app_entries),
@ -397,7 +397,7 @@ demo_application_window_store_state (DemoApplicationWindow *win)
{ {
GSettings *settings; GSettings *settings;
settings = g_settings_new ("org.gtk.Demo"); settings = g_settings_new ("org.gtk.Demo4");
g_settings_set (settings, "window-size", "(ii)", win->width, win->height); g_settings_set (settings, "window-size", "(ii)", win->width, win->height);
g_settings_set_boolean (settings, "maximized", win->maximized); g_settings_set_boolean (settings, "maximized", win->maximized);
g_settings_set_boolean (settings, "fullscreen", win->fullscreen); g_settings_set_boolean (settings, "fullscreen", win->fullscreen);
@ -409,7 +409,7 @@ demo_application_window_load_state (DemoApplicationWindow *win)
{ {
GSettings *settings; GSettings *settings;
settings = g_settings_new ("org.gtk.Demo"); settings = g_settings_new ("org.gtk.Demo4");
g_settings_get (settings, "window-size", "(ii)", &win->width, &win->height); g_settings_get (settings, "window-size", "(ii)", &win->width, &win->height);
win->maximized = g_settings_get_boolean (settings, "maximized"); win->maximized = g_settings_get_boolean (settings, "maximized");
win->fullscreen = g_settings_get_boolean (settings, "fullscreen"); win->fullscreen = g_settings_get_boolean (settings, "fullscreen");
@ -541,7 +541,7 @@ main (int argc, char *argv[])
GtkApplication *app; GtkApplication *app;
app = GTK_APPLICATION (g_object_new (demo_application_get_type (), app = GTK_APPLICATION (g_object_new (demo_application_get_type (),
"application-id", "org.gtk.Demo2", "application-id", "org.gtk.Demo4.App",
"flags", G_APPLICATION_HANDLES_OPEN, "flags", G_APPLICATION_HANDLES_OPEN,
NULL)); NULL));

View File

@ -52,7 +52,7 @@ do_application_demo (GtkWidget *toplevel)
if (watch == 0) if (watch == 0)
watch = g_bus_watch_name (G_BUS_TYPE_SESSION, watch = g_bus_watch_name (G_BUS_TYPE_SESSION,
"org.gtk.Demo2", "org.gtk.Demo4.App",
0, 0,
on_name_appeared, on_name_appeared,
on_name_vanished, on_name_vanished,
@ -80,8 +80,8 @@ do_application_demo (GtkWidget *toplevel)
else else
{ {
g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL), g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL),
"org.gtk.Demo2", "org.gtk.Demo4.App",
"/org/gtk/Demo2", "/org/gtk/Demo4/App",
"org.gtk.Actions", "org.gtk.Actions",
"Activate", "Activate",
g_variant_new ("(sava{sv})", "quit", NULL, NULL), g_variant_new ("(sava{sv})", "quit", NULL, NULL),

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -10,7 +10,7 @@
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
sodipodi:docname="org.gtk.Demo-symbolic.svg" sodipodi:docname="org.gtk.Demo4-symbolic.svg"
height="16.03125" height="16.03125"
id="svg7384" id="svg7384"
inkscape:version="0.92.4 5da689c313, 2019-01-14" inkscape:version="0.92.4 5da689c313, 2019-01-14"

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -270,7 +270,7 @@
<file>demotaggedentry.c</file> <file>demotaggedentry.c</file>
<file>demotaggedentry.h</file> <file>demotaggedentry.h</file>
</gresource> </gresource>
<gresource prefix="/org/gtk/Demo"> <gresource prefix="/org/gtk/Demo4">
<file>icons/16x16/actions/application-exit.png</file> <file>icons/16x16/actions/application-exit.png</file>
<file>icons/16x16/actions/document-new.png</file> <file>icons/16x16/actions/document-new.png</file>
<file>icons/16x16/actions/document-open.png</file> <file>icons/16x16/actions/document-open.png</file>

View File

@ -58,7 +58,7 @@ activate_about (GSimpleAction *action,
"website", "http://www.gtk.org", "website", "http://www.gtk.org",
"comments", "Program to demonstrate GTK widgets", "comments", "Program to demonstrate GTK widgets",
"authors", authors, "authors", authors,
"logo-icon-name", "org.gtk.Demo", "logo-icon-name", "org.gtk.Demo4",
"title", "About GTK Demo", "title", "About GTK Demo",
NULL); NULL);
} }
@ -1212,7 +1212,7 @@ main (int argc, char **argv)
} }
/* -- End of hack -- */ /* -- End of hack -- */
app = gtk_application_new ("org.gtk.Demo", G_APPLICATION_NON_UNIQUE|G_APPLICATION_HANDLES_COMMAND_LINE); app = gtk_application_new ("org.gtk.Demo4", G_APPLICATION_NON_UNIQUE|G_APPLICATION_HANDLES_COMMAND_LINE);
g_action_map_add_action_entries (G_ACTION_MAP (app), g_action_map_add_action_entries (G_ACTION_MAP (app),
app_entries, G_N_ELEMENTS (app_entries), app_entries, G_N_ELEMENTS (app_entries),

View File

@ -134,11 +134,11 @@ foreach size: ['scalable', 'symbolic']
endforeach endforeach
# desktop file # desktop file
install_data('org.gtk.Demo.desktop', install_dir: gtk_applicationsdir) install_data('org.gtk.Demo4.desktop', install_dir: gtk_applicationsdir)
# GSettings # GSettings
install_data('org.gtk.Demo.gschema.xml', install_dir: gtk_schemasdir) install_data('org.gtk.Demo4.gschema.xml', install_dir: gtk_schemasdir)
gnome.compile_schemas() gnome.compile_schemas()
# appdata # appdata
install_data('org.gtk.Demo.appdata.xml', install_dir: gtk_appdatadir) install_data('org.gtk.Demo4.appdata.xml', install_dir: gtk_appdatadir)

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<component type="desktop"> <component type="desktop">
<id>org.gtk.Demo.desktop</id> <id>org.gtk.Demo4.desktop</id>
<metadata_license>CC0-1.0</metadata_license> <metadata_license>CC0-1.0</metadata_license>
<project_license>LGPL-2.0+</project_license> <project_license>LGPL-2.0+</project_license>
<name>GTK Demo</name> <name>GTK Demo</name>

View File

@ -2,7 +2,7 @@
Name=GTK Demo Name=GTK Demo
Comment=GTK code examples and demonstrations Comment=GTK code examples and demonstrations
Exec=gtk4-demo Exec=gtk4-demo
Icon=org.gtk.Demo Icon=org.gtk.Demo4
Terminal=false Terminal=false
Type=Application Type=Application
StartupNotify=true StartupNotify=true

View File

@ -2,14 +2,14 @@
<schemalist> <schemalist>
<enum id='org.gtk.Demo.Color'> <enum id='org.gtk.Demo4.Color'>
<value nick='red' value='0'/> <value nick='red' value='0'/>
<value nick='green' value='1'/> <value nick='green' value='1'/>
<value nick='blue' value='2'/> <value nick='blue' value='2'/>
</enum> </enum>
<schema id='org.gtk.Demo' path='/org/gtk/Demo/'> <schema id='org.gtk.Demo4' path='/org/gtk/Demo4/'>
<key name='color' enum='org.gtk.Demo.Color'> <key name='color' enum='org.gtk.Demo4.Color'>
<default>'red'</default> <default>'red'</default>
</key> </key>
<key name='window-size' type='(ii)'> <key name='window-size' type='(ii)'>

View File

@ -65,7 +65,7 @@ do_sidebar (GtkWidget *do_widget)
{ {
if (i == 0) if (i == 0)
{ {
widget = gtk_image_new_from_icon_name ("org.gtk.Demo"); widget = gtk_image_new_from_icon_name ("org.gtk.Demo4");
gtk_image_set_pixel_size (GTK_IMAGE (widget), 256); gtk_image_set_pixel_size (GTK_IMAGE (widget), 256);
} }
else else

View File

@ -25,7 +25,7 @@
<object class="GtkImage"> <object class="GtkImage">
<property name="margin-top">20</property> <property name="margin-top">20</property>
<property name="margin-bottom">20</property> <property name="margin-bottom">20</property>
<property name="icon-name">org.gtk.Demo</property> <property name="icon-name">org.gtk.Demo4</property>
</object> </object>
</property> </property>
</object> </object>