Commit fd83102db2d0ae604a0e7cd9b0d68df53a70ff2c
1 parent
d7b6b163
Exists in
master
and in
3 other branches
Adding appdata.xml
Showing
4 changed files
with
31 additions
and
47 deletions
Show diff stats
branding/Makefile.in
... | ... | @@ -138,6 +138,12 @@ install-linux: \ |
138 | 138 | mime.xml \ |
139 | 139 | $(DESTDIR)$(datarootdir)/mime/packages/$(PRODUCT_NAME).xml |
140 | 140 | |
141 | + @$(MKDIR) $(DESTDIR)$(datarootdir)/metainfo | |
142 | + | |
143 | + @$(INSTALL_DATA) \ | |
144 | + appdata.xml \ | |
145 | + $(DESTDIR)$(datarootdir)/metainfo/$(PRODUCT_NAME).appdata.xml | |
146 | + | |
141 | 147 | install-windows: \ |
142 | 148 | $(DESTDIR)$(datarootdir)/$(PRODUCT_NAME)/$(PRODUCT_NAME).png \ |
143 | 149 | $(DESTDIR)$(datarootdir)/$(PRODUCT_NAME)/$(PRODUCT_NAME)-logo.png \ | ... | ... |
... | ... | @@ -0,0 +1,22 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<component type="desktop-application"> | |
3 | + <id>@PRODUCT_NAME@</id> | |
4 | + <metadata_license>LGPL-3.0</metadata_license> | |
5 | + <project_license>LGPL-3.0</project_license> | |
6 | + <name>@PRODUCT_NAME@</name> | |
7 | + <summary>IBM 3270 Terminal emulator for GTK</summary> | |
8 | + <description> | |
9 | + <p>GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
10 | +</p> | |
11 | + </description> | |
12 | + <launchable type="desktop-id">@PRODUCT_NAME@.desktop</launchable> | |
13 | + <url type="homepage">https://github.com/PerryWerneck/pw3270</url> | |
14 | + <screenshots> | |
15 | + <screenshot type="default"> | |
16 | + <image>https://raw.githubusercontent.com/PerryWerneck/pw3270/master/branding/pw3270-logo.svg</image> | |
17 | + </screenshot> | |
18 | + </screenshots> | |
19 | + <provides> | |
20 | + <id>@PRODUCT_NAME@pw32.desktop</id> | |
21 | + </provides> | |
22 | +</component> | ... | ... |
configure.ac
... | ... | @@ -245,6 +245,7 @@ AC_CONFIG_FILES(locale/Makefile) |
245 | 245 | AC_CONFIG_FILES(branding/Makefile) |
246 | 246 | AC_CONFIG_FILES(branding/launcher.desktop) |
247 | 247 | AC_CONFIG_FILES(branding/mime.xml) |
248 | +AC_CONFIG_FILES(branding/appdata.xml) | |
248 | 249 | |
249 | 250 | dnl --------------------------------------------------------------------------- |
250 | 251 | dnl Output the generated config.status script. | ... | ... |
src/objects/toolbar/settings.c
... | ... | @@ -70,12 +70,12 @@ |
70 | 70 | gtk_widget_set_sensitive(button,gtk_tree_selection_count_selected_rows(selection) > 0); |
71 | 71 | } |
72 | 72 | |
73 | - void toolbar_insert(GtkButton G_GNUC_UNUSED(*button), PW3270SettingsPrivate *settings) { | |
73 | + static void toolbar_insert(GtkButton G_GNUC_UNUSED(*button), PW3270SettingsPrivate *settings) { | |
74 | 74 | debug("%s(%p)",__FUNCTION__,settings); |
75 | 75 | pw3270_action_view_move_selected(settings->views[1],settings->views[0]); |
76 | 76 | } |
77 | 77 | |
78 | - void toolbar_remove(GtkButton G_GNUC_UNUSED(*button), PW3270SettingsPrivate *settings) { | |
78 | + static void toolbar_remove(GtkButton G_GNUC_UNUSED(*button), PW3270SettingsPrivate *settings) { | |
79 | 79 | debug("%s(%p)",__FUNCTION__,settings); |
80 | 80 | pw3270_action_view_move_selected(settings->views[0],settings->views[1]); |
81 | 81 | } |
... | ... | @@ -322,48 +322,3 @@ |
322 | 322 | |
323 | 323 | } |
324 | 324 | |
325 | - /* | |
326 | - | |
327 | - typedef struct _ToolbarSettingsPage { | |
328 | - Pw3270SettingsPage parent; | |
329 | - GtkWidget * views[2]; | |
330 | - GtkWidget * buttons[2]; | |
331 | - GtkTreeModel * models[2]; | |
332 | - GtkWidget * combos[G_N_ELEMENTS(comboboxes)]; | |
333 | - | |
334 | - } ToolbarSettingsPage; | |
335 | - | |
336 | - static void load(Pw3270SettingsPage *pg, GtkApplication *application) { | |
337 | - | |
338 | - size_t ix; | |
339 | - ToolbarSettingsPage * page = (ToolbarSettingsPage *) pg; | |
340 | - g_autoptr(GSettings) settings = pw3270_application_window_settings_new(); | |
341 | - | |
342 | - debug("%s",__FUNCTION__); | |
343 | - | |
344 | - | |
345 | - } | |
346 | - | |
347 | - static void apply(Pw3270SettingsPage *pg, GtkApplication G_GNUC_UNUSED(*application)) { | |
348 | - | |
349 | - } | |
350 | - | |
351 | - | |
352 | - Pw3270SettingsPage * pw3270_toolbar_settings_new() { | |
353 | - | |
354 | - size_t ix; | |
355 | - | |
356 | - ToolbarSettingsPage * page = g_new0(ToolbarSettingsPage,1); | |
357 | - | |
358 | - page->parent.load = load; | |
359 | - page->parent.apply = apply; | |
360 | - page->parent.label = _("Toolbar"); | |
361 | - page->parent.title = _("Setup toolbar"); | |
362 | - | |
363 | - page->parent.widget = gtk_box_new(GTK_ORIENTATION_VERTICAL,0); | |
364 | - | |
365 | - | |
366 | - | |
367 | - return (Pw3270SettingsPage *) page; | |
368 | - } | |
369 | - */ | ... | ... |