diff options
author | rbuj <[email protected]> | 2020-08-01 12:52:49 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-08-11 16:46:01 +0200 |
commit | 914262d420e78766ae11b85403aa2247d5054d46 (patch) | |
tree | e96a00081af65a1523ff0bbfbb4fa40f82072b1d /geyes/data | |
parent | 1ee4ea5cc7e554b481da4e052e1c7b46d03b6b5b (diff) | |
download | mate-applets-914262d420e78766ae11b85403aa2247d5054d46.tar.bz2 mate-applets-914262d420e78766ae11b85403aa2247d5054d46.tar.xz |
geyes: Use common subdirs - src, icons, data
Diffstat (limited to 'geyes/data')
-rw-r--r-- | geyes/data/Makefile.am | 46 | ||||
-rw-r--r-- | geyes/data/geyes-applet-menu.xml | 5 | ||||
-rw-r--r-- | geyes/data/geyes-resources.gresource.xml | 7 | ||||
-rw-r--r-- | geyes/data/org.mate.applets.GeyesApplet.mate-panel-applet.desktop.in.in | 17 | ||||
-rw-r--r-- | geyes/data/org.mate.panel.applet.GeyesAppletFactory.service.in | 3 | ||||
-rw-r--r-- | geyes/data/org.mate.panel.applet.geyes.gschema.xml.in | 9 | ||||
-rw-r--r-- | geyes/data/themes.ui | 171 |
7 files changed, 258 insertions, 0 deletions
diff --git a/geyes/data/Makefile.am b/geyes/data/Makefile.am new file mode 100644 index 00000000..0342bdaf --- /dev/null +++ b/geyes/data/Makefile.am @@ -0,0 +1,46 @@ +NULL = + +appletdir = $(datadir)/mate-panel/applets +applet_in_files = org.mate.applets.GeyesApplet.mate-panel-applet.desktop.in +applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet) + +$(applet_in_files): $(applet_in_files).in Makefile + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + -e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \ + $< > $@ + +$(applet_DATA): $(applet_in_files) Makefile + $(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@ + +servicedir = $(datadir)/dbus-1/services +service_in_files = org.mate.panel.applet.GeyesAppletFactory.service.in +service_DATA = $(service_in_files:.service.in=.service) + +org.mate.panel.applet.GeyesAppletFactory.service: $(service_in_files) + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + $< > $@ + +geyes_gschema_in_files = org.mate.panel.applet.geyes.gschema.xml.in +gsettings_SCHEMAS = $(geyes_gschema_in_files:.xml.in=.xml) +@GSETTINGS_RULES@ + +CLEANFILES = \ + $(applet_DATA) \ + $(applet_in_files) \ + $(service_DATA) \ + $(gsettings_SCHEMAS) \ + *.gschema.valid \ + $(NULL) + +EXTRA_DIST = \ + geyes-applet-menu.xml \ + geyes-resources.gresource.xml \ + themes.ui \ + $(applet_in_files).in \ + $(service_in_files) \ + $(geyes_gschema_in_files) \ + $(NULL) + +-include $(top_srcdir)/git.mk diff --git a/geyes/data/geyes-applet-menu.xml b/geyes/data/geyes-applet-menu.xml new file mode 100644 index 00000000..860052ae --- /dev/null +++ b/geyes/data/geyes-applet-menu.xml @@ -0,0 +1,5 @@ +<menuitem name="Item 1" action="Props" /> +<menuitem name="Item 2" action="Help" /> +<menuitem name="Item 3" action="About" /> + + diff --git a/geyes/data/geyes-resources.gresource.xml b/geyes/data/geyes-resources.gresource.xml new file mode 100644 index 00000000..4a7dc547 --- /dev/null +++ b/geyes/data/geyes-resources.gresource.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<gresources> + <gresource prefix="/org/mate/mate-applets/eyes"> + <file compressed="true">geyes-applet-menu.xml</file> + <file compressed="true">themes.ui</file> + </gresource> +</gresources> diff --git a/geyes/data/org.mate.applets.GeyesApplet.mate-panel-applet.desktop.in.in b/geyes/data/org.mate.applets.GeyesApplet.mate-panel-applet.desktop.in.in new file mode 100644 index 00000000..eaadb5f3 --- /dev/null +++ b/geyes/data/org.mate.applets.GeyesApplet.mate-panel-applet.desktop.in.in @@ -0,0 +1,17 @@ +[Applet Factory] +Id=GeyesAppletFactory +Location=@LIBEXECDIR@/mate-geyes-applet +Name=Eyes Applet Factory +Description=Eyes Applet Factory + +[GeyesApplet] +Name=Eyes +Description=A set of eyeballs for your panel +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=mate-eyes-applet +MateComponentId=OAFIID:MATE_GeyesApplet +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-applets +X-MATE-Bugzilla-Component=geyes +X-MATE-Bugzilla-Version=@VERSION@ +X-MATE-Bugzilla-OtherBinaries=geyes_applet2 diff --git a/geyes/data/org.mate.panel.applet.GeyesAppletFactory.service.in b/geyes/data/org.mate.panel.applet.GeyesAppletFactory.service.in new file mode 100644 index 00000000..2f490e7b --- /dev/null +++ b/geyes/data/org.mate.panel.applet.GeyesAppletFactory.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.mate.panel.applet.GeyesAppletFactory +Exec=@LIBEXECDIR@/mate-geyes-applet diff --git a/geyes/data/org.mate.panel.applet.geyes.gschema.xml.in b/geyes/data/org.mate.panel.applet.geyes.gschema.xml.in new file mode 100644 index 00000000..aad28f71 --- /dev/null +++ b/geyes/data/org.mate.panel.applet.geyes.gschema.xml.in @@ -0,0 +1,9 @@ +<schemalist gettext-domain="@GETTEXT_PACKAGE@"> + <schema id="org.mate.panel.applet.geyes"> + <key name="theme-path" type="s"> + <default>''</default> + <summary>Directory in which the theme is located</summary> + <description>Directory in which the theme is located</description> + </key> + </schema> +</schemalist> diff --git a/geyes/data/themes.ui b/geyes/data/themes.ui new file mode 100644 index 00000000..70409f3b --- /dev/null +++ b/geyes/data/themes.ui @@ -0,0 +1,171 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.36.0 --> +<interface> + <requires lib="gtk+" version="3.22"/> + <object class="GtkImage" id="image1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">help-browser</property> + </object> + <object class="GtkImage" id="image2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">window-close</property> + </object> + <object class="GtkDialog" id="preferences_dialog"> + <property name="can_focus">False</property> + <property name="border_width">12</property> + <property name="title" translatable="yes">Eyes Preferences</property> + <property name="default_width">300</property> + <property name="default_height">200</property> + <property name="icon_name">mate-eyes-applet</property> + <property name="type_hint">dialog</property> + <signal name="response" handler="on_preferences_dialog_response" swapped="no"/> + <child internal-child="vbox"> + <object class="GtkBox"> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <child internal-child="action_area"> + <object class="GtkButtonBox"> + <property name="can_focus">False</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="button1"> + <property name="label" translatable="yes">_Help</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="image">image1</property> + <property name="use_underline">True</property> + <property name="always_show_image">True</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="button2"> + <property name="label" translatable="yes">_Close</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="has_default">True</property> + <property name="receives_default">True</property> + <property name="image">image2</property> + <property name="use_underline">True</property> + <property name="always_show_image">True</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkFrame"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="vexpand">True</property> + <property name="label_xalign">0</property> + <property name="shadow_type">none</property> + <child> + <object class="GtkAlignment"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="left_padding">12</property> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="margin_top">6</property> + <property name="margin_bottom">6</property> + <property name="vexpand">True</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="select_theme_label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">start</property> + <property name="label" translatable="yes">_Select a theme:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">themes_treeview</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkScrolledWindow"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="hscrollbar_policy">never</property> + <property name="shadow_type">in</property> + <child> + <object class="GtkTreeView" id="themes_treeview"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="headers_visible">False</property> + <property name="headers_clickable">False</property> + <child internal-child="selection"> + <object class="GtkTreeSelection" id="themes_treeselection"> + <signal name="changed" handler="on_themes_treeselection_changed" swapped="no"/> + </object> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + </object> + </child> + <child type="label"> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Themes</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-11">button1</action-widget> + <action-widget response="-7">button2</action-widget> + </action-widgets> + <child type="titlebar"> + <placeholder/> + </child> + </object> +</interface> |