diff options
| author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2016-02-29 13:51:10 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-15 18:05:24 +0100 |
| commit | bff5f0efb37b8447f71ae1ecb02848976f5ac8c0 (patch) | |
| tree | 2009ef8e7e9bbe3a473c6eae7403ccf6af40b286 /meta/recipes-sato/matchbox-sato | |
| parent | dda59ddc1c123b8bcfcbc76a41cedf7bb9bf0490 (diff) | |
| download | poky-bff5f0efb37b8447f71ae1ecb02848976f5ac8c0.tar.gz | |
matchbox-session-sato: Update session startup
* Use Adwaita Gtk+ theme
* sato-gtk-engine is no longer needed with Adwaita
* GTK_CSD tricks are no longer needed since the panel
does not draw on top windows
* Add meta-theme index file: it used to be provided by gtk-sato-engine
and is used by matchbox-config-gtk only (to be able to show a single
selection for Gtk+, icon and Matchbox themes). This is a more
logical place for it.
* Set matchbox-theme gconf key (just to be explicit, this is the
default already)
(From OE-Core rev: 0c32b6e9585a39b14002a5da230222d2fe01ddff)
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato/matchbox-sato')
3 files changed, 17 insertions, 10 deletions
diff --git a/meta/recipes-sato/matchbox-sato/matchbox-session-sato/index.theme b/meta/recipes-sato/matchbox-sato/matchbox-session-sato/index.theme new file mode 100644 index 0000000000..c9260cfd8d --- /dev/null +++ b/meta/recipes-sato/matchbox-sato/matchbox-session-sato/index.theme | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | [X-GNOME-Metatheme] | ||
| 2 | Encoding=UTF-8 | ||
| 3 | Type=X-GNOME-Metatheme | ||
| 4 | Name=Sato | ||
| 5 | GtkTheme=Adwaita | ||
| 6 | IconTheme=Sato | ||
| 7 | MatchboxTheme=Sato | ||
diff --git a/meta/recipes-sato/matchbox-sato/matchbox-session-sato/session b/meta/recipes-sato/matchbox-sato/matchbox-session-sato/session index 42ce483d35..f6313bdebe 100644 --- a/meta/recipes-sato/matchbox-sato/matchbox-session-sato/session +++ b/meta/recipes-sato/matchbox-sato/matchbox-session-sato/session | |||
| @@ -14,11 +14,6 @@ else | |||
| 14 | KEYBOARD_APPLET="keyboard" | 14 | KEYBOARD_APPLET="keyboard" |
| 15 | fi | 15 | fi |
| 16 | 16 | ||
| 17 | # Tell GTK+3 we really want server side decorations, even with | ||
| 18 | # GtkHeaderBar using applications: Without that mb-panel will render | ||
| 19 | # on top of the client side decorations. | ||
| 20 | export GTK_CSD=0 | ||
| 21 | |||
| 22 | matchbox-desktop & | 17 | matchbox-desktop & |
| 23 | 18 | ||
| 24 | # Lines containing feature-[foo] are removed at build time if the machine | 19 | # Lines containing feature-[foo] are removed at build time if the machine |
| @@ -28,6 +23,6 @@ START_APPLETS=showdesktop,windowselector | |||
| 28 | END_APPLETS=clock,battery,$KEYBOARD_APPLET,systray,startup-notify,notify | 23 | END_APPLETS=clock,battery,$KEYBOARD_APPLET,systray,startup-notify,notify |
| 29 | END_APPLETS=openmoko-panel-gsm,$END_APPLETS # feature-phone | 24 | END_APPLETS=openmoko-panel-gsm,$END_APPLETS # feature-phone |
| 30 | 25 | ||
| 31 | matchbox-panel --titlebar --start-applets $START_APPLETS --end-applets $END_APPLETS & | 26 | matchbox-panel --start-applets $START_APPLETS --end-applets $END_APPLETS & |
| 32 | 27 | ||
| 33 | exec matchbox-window-manager -theme Sato -use_desktop_mode decorated -use_cursor $SHOWCURSOR $@ | 28 | exec matchbox-window-manager -theme Sato -use_cursor $SHOWCURSOR $@ |
diff --git a/meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb b/meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb index 76de18ae93..fb4750bafd 100644 --- a/meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb +++ b/meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb | |||
| @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://session;endline=3;md5=f8a5c5b9c279e52dc094d10e11c2be6 | |||
| 7 | 7 | ||
| 8 | SECTION = "x11" | 8 | SECTION = "x11" |
| 9 | DEPENDS = "gconf-native" | 9 | DEPENDS = "gconf-native" |
| 10 | RDEPENDS_${PN} = "formfactor gtk-sato-engine matchbox-theme-sato gtk-theme-sato matchbox-panel-2 matchbox-desktop-sato matchbox-session gconf" | 10 | RDEPENDS_${PN} = "formfactor matchbox-theme-sato matchbox-panel-2 matchbox-desktop-sato matchbox-session gconf" |
| 11 | PR = "r30" | 11 | PR = "r30" |
| 12 | 12 | ||
| 13 | # This package is architecture specific because the session script is modified | 13 | # This package is architecture specific because the session script is modified |
| @@ -19,9 +19,12 @@ inherit distro_features_check | |||
| 19 | # The matchbox-theme-sato requires x11 in DISTRO_FEATURES | 19 | # The matchbox-theme-sato requires x11 in DISTRO_FEATURES |
| 20 | REQUIRED_DISTRO_FEATURES = "x11" | 20 | REQUIRED_DISTRO_FEATURES = "x11" |
| 21 | 21 | ||
| 22 | SRC_URI = "file://session" | 22 | SRC_URI = "file://session \ |
| 23 | file://index.theme" | ||
| 23 | S = "${WORKDIR}" | 24 | S = "${WORKDIR}" |
| 24 | 25 | ||
| 26 | FILES_${PN} += "${datadir}/themes/Sato/index.theme" | ||
| 27 | |||
| 25 | do_install() { | 28 | do_install() { |
| 26 | # This is the set of machine features that the script has markers for | 29 | # This is the set of machine features that the script has markers for |
| 27 | FEATURES="phone" | 30 | FEATURES="phone" |
| @@ -34,6 +37,7 @@ do_install() { | |||
| 34 | fi | 37 | fi |
| 35 | done | 38 | done |
| 36 | 39 | ||
| 40 | install -D ${S}/index.theme ${D}/${datadir}/themes/Sato/index.theme | ||
| 37 | install -d ${D}/${sysconfdir}/matchbox | 41 | install -d ${D}/${sysconfdir}/matchbox |
| 38 | sed -f "$SCRIPT" ${S}/session > ${D}/${sysconfdir}/matchbox/session | 42 | sed -f "$SCRIPT" ${S}/session > ${D}/${sysconfdir}/matchbox/session |
| 39 | chmod +x ${D}/${sysconfdir}/matchbox/session | 43 | chmod +x ${D}/${sysconfdir}/matchbox/session |
| @@ -44,7 +48,8 @@ pkg_postinst_${PN} () { | |||
| 44 | #type, name, value | 48 | #type, name, value |
| 45 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type $1 --set /desktop/poky/interface/$2 "$3" | 49 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type $1 --set /desktop/poky/interface/$2 "$3" |
| 46 | } | 50 | } |
| 47 | set_value string theme Sato | 51 | set_value string theme Adwaita |
| 52 | set_value string matchbox_theme Sato | ||
| 48 | set_value string icon_theme Sato | 53 | set_value string icon_theme Sato |
| 49 | set_value bool touchscreen true | 54 | set_value bool touchscreen true |
| 50 | set_value string font_name "Sans 9" | 55 | set_value string font_name "Sans 9" |
