[Initiatives.wiki] Update DevOps with Flatpak
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [Initiatives.wiki] Update DevOps with Flatpak
- Date: Mon, 10 Dec 2018 14:14:18 +0000 (UTC)
commit ffcdaef5fb9150c61279ef1b0e93b88ad7810df8
Author: Carlos Soriano <csoriano1618 gmail com>
Date: Mon Dec 10 14:14:09 2018 +0000
Update DevOps with Flatpak
DevOps-with-Flatpak.md | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/DevOps-with-Flatpak.md b/DevOps-with-Flatpak.md
index 07916df..2778693 100644
--- a/DevOps-with-Flatpak.md
+++ b/DevOps-with-Flatpak.md
@@ -267,6 +267,7 @@ configure_file(
output: '@0 search-provider ini'.format(application_id)
)
```
+
And in the search provider .ini.in file change the values to the following:
```
DesktopId=@appid@.desktop
@@ -297,6 +298,7 @@ In the startup vfunc, make sure to apply the correct application id:
```c
gtk_window_set_default_icon_name (APPLICATION_ID);
```
+
In the creation of the GtkApplication, make sure to pass the correct id too:
```c
g_object_new (APP_NAME_TYPE_APPLICATION,
@@ -304,10 +306,12 @@ g_object_new (APP_NAME_TYPE_APPLICATION,
"flags", G_APPLICATION_HANDLES_COMMAND_LINE | G_APPLICATION_HANDLES_OPEN,
NULL);
```
+
For your preferences dialog, make sure to set the proper icon name:
```c
gtk_window_set_icon_name (GTK_WINDOW (preferences_window), APPLICATION_ID);
```
+
Same for the about dialog:
```c
program_name = g_strconcat (_("App Name"), NAME_SUFFIX, NULL);
@@ -318,6 +322,7 @@ gtk_show_about_dialog (window ? GTK_WINDOW (window) : NULL,
NULL);
```
+
And lastly, if you have a Shell search provider, pass the correct id too:
```c
g_dbus_interface_skeleton_export (G_DBUS_INTERFACE_SKELETON (self->skeleton),
@@ -339,6 +344,7 @@ In your application window code:
gtk_style_context_add_class (style_context, "devel");
}
```
+
Which assumes that if there is a profile set, it's going to be for development. Otherwise, no styling is
set. The devel CSS style class is provided by gtk+ itself.
# FAQ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]