widget-factory: Rename to org.gtk.WidgetFactory4

This commit is contained in:
Matthias Clasen 2019-04-01 23:58:30 +00:00
parent 365400c13e
commit 41bb875221
10 changed files with 15 additions and 15 deletions

View File

@ -60,7 +60,7 @@ flatpak:demo:
flatpak:widget-factory: flatpak:widget-factory:
variables: variables:
APPID: org.gtk.WidgetFactory APPID: org.gtk.WidgetFactory4
<<: *flatpak-defaults <<: *flatpak-defaults
pages: pages:

View File

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

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -13,7 +13,7 @@ executable('gtk4-widget-factory',
install: true) install: true)
# desktop file # desktop file
install_data('org.gtk.WidgetFactory.desktop', install_dir: gtk_applicationsdir) install_data('org.gtk.WidgetFactory4.desktop', install_dir: gtk_applicationsdir)
# icons # icons
icontheme_dir = join_paths(gtk_datadir, 'icons/hicolor') icontheme_dir = join_paths(gtk_datadir, 'icons/hicolor')
@ -25,4 +25,4 @@ foreach size: ['scalable', 'symbolic']
endforeach endforeach
# appdata # appdata
install_data('org.gtk.WidgetFactory.appdata.xml', install_dir: gtk_appdatadir) install_data('org.gtk.WidgetFactory4.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.WidgetFactory.desktop</id> <id>org.gtk.WidgetFactory4.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 Widget Factory</name> <name>GTK Widget Factory</name>

View File

@ -2,7 +2,7 @@
Name=Widget Factory Name=Widget Factory
Comment=A showcase for GTK widgets, designed for testing themes. Comment=A showcase for GTK widgets, designed for testing themes.
Exec=gtk4-widget-factory Exec=gtk4-widget-factory
Icon=org.gtk.WidgetFactory Icon=org.gtk.WidgetFactory4
Terminal=false Terminal=false
Type=Application Type=Application
StartupNotify=true StartupNotify=true

View File

@ -232,7 +232,7 @@ activate_about (GSimpleAction *action,
"website", "http://www.gtk.org", "website", "http://www.gtk.org",
"comments", "Program to demonstrate GTK themes and widgets", "comments", "Program to demonstrate GTK themes and widgets",
"authors", authors, "authors", authors,
"logo-icon-name", "org.gtk.WidgetFactory", "logo-icon-name", "org.gtk.WidgetFactory4",
"title", "About GTK Widget Factory", "title", "About GTK Widget Factory",
"system-information", s->str, "system-information", s->str,
NULL); NULL);
@ -1657,13 +1657,13 @@ activate (GApplication *app)
g_type_ensure (my_text_view_get_type ()); g_type_ensure (my_text_view_get_type ());
provider = gtk_css_provider_new (); provider = gtk_css_provider_new ();
gtk_css_provider_load_from_resource (provider, "/org/gtk/WidgetFactory/widget-factory.css"); gtk_css_provider_load_from_resource (provider, "/org/gtk/WidgetFactory4/widget-factory.css");
gtk_style_context_add_provider_for_display (gdk_display_get_default (), gtk_style_context_add_provider_for_display (gdk_display_get_default (),
GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER (provider),
GTK_STYLE_PROVIDER_PRIORITY_USER); GTK_STYLE_PROVIDER_PRIORITY_USER);
g_object_unref (provider); g_object_unref (provider);
builder = gtk_builder_new_from_resource ("/org/gtk/WidgetFactory/widget-factory.ui"); builder = gtk_builder_new_from_resource ("/org/gtk/WidgetFactory4/widget-factory.ui");
gtk_builder_add_callback_symbol (builder, "on_entry_icon_release", (GCallback)on_entry_icon_release); gtk_builder_add_callback_symbol (builder, "on_entry_icon_release", (GCallback)on_entry_icon_release);
gtk_builder_add_callback_symbol (builder, "on_scale_button_value_changed", (GCallback)on_scale_button_value_changed); gtk_builder_add_callback_symbol (builder, "on_scale_button_value_changed", (GCallback)on_scale_button_value_changed);
gtk_builder_add_callback_symbol (builder, "on_scale_button_query_tooltip", (GCallback)on_scale_button_query_tooltip); gtk_builder_add_callback_symbol (builder, "on_scale_button_query_tooltip", (GCallback)on_scale_button_query_tooltip);
@ -1944,7 +1944,7 @@ main (int argc, char *argv[])
}; };
gint status; gint status;
app = gtk_application_new ("org.gtk.WidgetFactory", G_APPLICATION_NON_UNIQUE); app = gtk_application_new ("org.gtk.WidgetFactory4", G_APPLICATION_NON_UNIQUE);
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

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<gresources> <gresources>
<gresource prefix="/org/gtk/WidgetFactory"> <gresource prefix="/org/gtk/WidgetFactory4">
<file preprocess="xml-stripblanks">widget-factory.ui</file> <file preprocess="xml-stripblanks">widget-factory.ui</file>
</gresource> </gresource>
<gresource prefix="/org/gtk/WidgetFactory"> <gresource prefix="/org/gtk/WidgetFactory4">
<file>widget-factory.css</file> <file>widget-factory.css</file>
</gresource> </gresource>
<gresource prefix="/org/gtk/WidgetFactory/gtk"> <gresource prefix="/org/gtk/WidgetFactory4/gtk">
<file preprocess="xml-stripblanks">help-overlay.ui</file> <file preprocess="xml-stripblanks">help-overlay.ui</file>
</gresource> </gresource>
<gresource prefix="/org/gtk/WidgetFactory"> <gresource prefix="/org/gtk/WidgetFactory4">
<file>icons/16x16/actions/document-new.png</file> <file>icons/16x16/actions/document-new.png</file>
<file>icons/16x16/actions/document-save.png</file> <file>icons/16x16/actions/document-save.png</file>
<file>icons/16x16/actions/edit-find.png</file> <file>icons/16x16/actions/edit-find.png</file>

View File

@ -1569,7 +1569,7 @@ microphone-sensitivity-medium-symbolic</property>
<property name="title">Logo</property> <property name="title">Logo</property>
<property name="child"> <property name="child">
<object class="GtkImage" id="imageo"> <object class="GtkImage" id="imageo">
<property name="icon-name">gtk3-widget-factory</property> <property name="icon-name">org.gtk.WidgetFactory4</property>
<property name="pixel-size">256</property> <property name="pixel-size">256</property>
</object> </object>
</property> </property>