Re: [yocto] [meta-raspberrypi][PATCH] sdcard_image-rpi.bbclass: Fix do_image_rpi_sdimg tashhash mismatch

2016-05-03 Thread Petter Mabäcker
 

2016-04-29 03:57 skrev Jonathan Liu: 

> IMAGE_CMD_rpi-sdimg() uses
the IMAGEDATESTAMP variable, so the taskhash
> of the function keeps
changing. This results in a taskhash mismatch
> error.
> 
> Fix this by
excluding the IMAGEDATESTAMP variable from the checksum.
> 
> Change-Id:
Ie6f30ad29e279d5312ec655ac4a3bf246c8a04de
> Signed-off-by: Jonathan Liu

> ---
> classes/sdcard_image-rpi.bbclass | 1 +
> 1
file changed, 1 insertion(+)
> 
> diff --git
a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
>
index 1b055bd..989d77a 100644
> --- a/classes/sdcard_image-rpi.bbclass
>
+++ b/classes/sdcard_image-rpi.bbclass
> @@ -67,6 +67,7 @@ SDIMG =
"${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
> FATPAYLOAD ?=
""
> 
> IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}"
>
+IMAGE_CMD_rpi-sdimg[vardepsexclude] = "IMAGEDATESTAMP"
> 
>
IMAGE_CMD_rpi-sdimg () {
> 
> -- 
> 2.8.0

Hi Andrei, 

Any plans for
merging this patch soon? I have been using it in my tree for quite some
time and the fix seems reasonable and solves the annoying taskhash
problem when creating the image. 

BR Petter 

Petter Mabäcker

Technux

www.technux.se
 -- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [yocto-autobuilder][PATCH 1/2] bin/release_scripts/release.py

2016-05-03 Thread Graydon, Tracy
Fixed the path for the publishing of the eclipse plugins. They were
going to the wrong subdirectory under downloads.

Signed-off-by: Graydon, Tracy 
---
 bin/release_scripts/release.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/release_scripts/release.py b/bin/release_scripts/release.py
index be67f9d..cae6fe7 100755
--- a/bin/release_scripts/release.py
+++ b/bin/release_scripts/release.py
@@ -351,7 +351,8 @@ if __name__ == '__main__':

 VHOSTS = "/srv/www/vhosts"
 AB_BASE = os.path.join(VHOSTS, "autobuilder.yoctoproject.org/pub/releases")
-DL_BASE = os.path.join(VHOSTS, "downloads.yoctoproject.org/releases/yocto")
+DL_DIR = os.path.join(VHOSTS, "downloads.yoctoproject.org/releases")
+DL_BASE = os.path.join(DL_DIR, "/releases/yocto")
 ADT_BASE = os.path.join(VHOSTS, "adtrepo.yoctoproject.org")
 
 # List of the directories we delete from all releases
@@ -442,7 +443,7 @@ if __name__ == '__main__':
 print "MILESTONE: %s" %MILESTONE
 print
 
-PLUGIN_DIR = os.path.join(DL_BASE, "eclipse-plugin", REL_ID)
+PLUGIN_DIR = os.path.join(DL_DIR, "eclipse-plugin", REL_ID)
 RELEASE_DIR = os.path.join(AB_BASE, RELEASE)
 MACHINES = os.path.join(RELEASE_DIR, "machines")
 BSP_DIR = os.path.join(RELEASE_DIR, 'bsptarballs')
-- 
2.7.0

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [linux-yocto] [PATCH 0/9] Broxton enablement and slight refactoring for 4.4 and master

2016-05-03 Thread Bruce Ashfield

On 2016-05-02 10:19 PM, California Sullivan wrote:

Hi Bruce,

This patch series adds some features and configuration settings necessary for
Broxton enablement, as well as a couple minor refactoring patches.
These changes have been tested with the latest linux-yocto-4.4 HEAD on the
MinnowBoard Max/Turbot and NUC6 and no additional errors were found.


Looks good to me as well. I've merged and pushed this to the repo. SRCREV
updates to follow on Wednesday.

Bruce



Matt, Steve, please review and make sure there are no more absolute needs for
Broxton enablement.

Thanks,
Cal

California Sullivan (9):
  features/soc/skylake: Refactor and comment config fragment
  features/i915: Add CONFIG_KMS_FB_HELPER=y
  cfg/sound.cfg: Add USB audio support
  features/usb: Add usb-designware2 and 3 features
  baytrail;valleyisland: Use designware-usb3 feature instead of config
  features: add broxton soc feature
  bsp/intel-common: Add broxton to supported SoCs in intel-core* BSPs
  features: add intel-telemetry feature
  bsp/intel-corei7-64: Add intel-telemetry feature

 bsp/intel-common/intel-core2-32.scc|  1 +
 bsp/intel-common/intel-corei7-64.scc   |  4 
 bsp/valleyisland/valleyisland.cfg  |  2 --
 bsp/valleyisland/valleyisland.scc  |  1 +
 cfg/sound.cfg  |  2 ++
 features/i915/i915.cfg |  1 +
 features/soc/baytrail/baytrail.cfg |  2 --
 features/soc/baytrail/baytrail.scc |  1 +
 features/soc/broxton/broxton.cfg   | 22 ++
 features/soc/broxton/broxton.scc   | 15 +++
 features/soc/skylake/skylake.cfg   | 18 ++
 features/telemetry/intel-telemetry.cfg |  9 +
 features/telemetry/intel-telemetry.scc |  4 
 features/usb/designware-usb2.cfg   |  2 ++
 features/usb/designware-usb2.scc   |  4 
 features/usb/designware-usb3.cfg   |  3 +++
 features/usb/designware-usb3.scc   |  4 
 17 files changed, 87 insertions(+), 8 deletions(-)
 create mode 100644 features/soc/broxton/broxton.cfg
 create mode 100644 features/soc/broxton/broxton.scc
 create mode 100644 features/telemetry/intel-telemetry.cfg
 create mode 100644 features/telemetry/intel-telemetry.scc
 create mode 100644 features/usb/designware-usb2.cfg
 create mode 100644 features/usb/designware-usb2.scc
 create mode 100644 features/usb/designware-usb3.cfg
 create mode 100644 features/usb/designware-usb3.scc



--
___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto


Re: [yocto] Minutes: Yocto Project Technical Team Meeting - Tuesday, May 3, 2016 8:00 AM US Pacific Time

2016-05-03 Thread Brian Avery
Hi,
The question about number of machines we currently have from (Armin ?)
made me wonder.

Here's toasters/layer indexes current view of machines.
jethro - 226
krogath - 148
master - 310

I'll go ahead and attach the lists in case anyone is curious and it
took a long sql statement to make them :).

Note that toaster will have slightly higher numbers since machines
like beaglebone, for instance, can come from 4 different layers:
meta-ti, meta-yocto-bsp,meta-beagleboard and meta-mender.  When
machines come from different layers, toaster will let you pick.


-b
an intel employee

On Tue, May 3, 2016 at 8:29 AM, Jolley, Stephen K
 wrote:
> Attendees: Joshua, Stephen, Sona, Armin, Richard, Mark,
>
>
>
> Agenda:
>
>
>
> * Opens collection - 5 min (Stephen)
>
> * Yocto Project status - 5 min (Stephen/team)
>
> ·YP 2.1 was released.
>
> ·YP 1.8.2 should build this week.
>
> ·YP 2.0.2 should build in a couple of weeks.
>
> ·YP 2.2 Planning is almost done and execution has begun.
>
> https://wiki.yoctoproject.org/wiki/Yocto_Project_v2.2_Status
>
> https://wiki.yoctoproject.org/wiki/Yocto_2.2_Schedule
>
> https://wiki.yoctoproject.org/wiki/Yocto_2.2_Features
>
> * Opens - 10 min
>
> ·Armin – LTS discussion – We discussed if we want to support 1.8.x
> beyond 1.8.2. We have no problem with community driven LTS for YP releases.
>
> ·Armin – Layer Index – Toaster demo showed Layer Index is critical
> to Toaster. It was agreed this was an area we need to work, but more
> discussion is needed.  If you have ideas how to update and support this;
> work with Armin.
>
> * Team Sharing - 10 min
>
> ·Mark – Pre-linker – This has been disabled in YP 2.1, and is under
> investigation.  Work is progressing to fix this issue.
>
>
>
>
>
> Thanks,
>
>
>
> Stephen K. Jolley
>
> Yocto Project Program Manager
>
> INTEL, MS JF1-255, 2111 N.E. 25th Avenue, Hillsboro, OR 97124
>
> (   Work Telephone:  (503) 712-0534
>
> (Cell:   (208) 244-4460
>
> * Email: stephen.k.jol...@intel.com
>
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
 1  a500
 2  apalis-imx6
 3  at91sam9m10g45ek
 4  at91sam9rlek
 5  at91sam9x5ek
 6  b4420qds
 7  b4420qds-64b
 8  b4860qds
 9  b4860qds-64b
10  beaglebone
11  bsc9131rdb
12  bsc9132qds
13  c293pcie
14  cfa10036
15  cfa10037
16  cfa10049
17  cfa10055
18  cfa10056
19  cfa10057
20  cfa10058
21  cgtqmx6
22  cm-fx6
23  colibri-imx6
24  colibri-vf
25  crespo
26  cubox-i
27  dragonboard-410c
28  edgerouter
29  geeksphone-one
30  genericx86
31  genericx86-64
32  grouper
33  hpveer
34  htcdream
35  htcleo
36  i9300
37  ifc6410
38  imx233-olinuxino-maxi
39  imx233-olinuxino-micro
40  imx233-olinuxino-mini
41  imx233-olinuxino-nano
42  imx23evk
43  imx28evk
44  imx51evk
45  imx53ard
46  imx53qsb
47  imx6dl-riotboard
48  imx6dlsabreauto
49  imx6dlsabresd
50  imx6qdl-variscite-som
51  imx6q-elo
52  imx6qpsabreauto
53  imx6qpsabresd
54  imx6qsabreauto
55  imx6qsabrelite
56  imx6qsabresd
57  imx6slevk
58  imx6sl-warp
59  imx6solosabreauto
60  imx6solosabresd
61  imx6sxsabreauto
62  imx6sxsabresd
63  imx6ulevk
64  imx7dsabresd
65  imx7d-warp7
66  intel-core2-32
67  intel-corei7-64
68  intel-quark
69  ls1021atwr
70  m28evk
71  m53evk
72  maguro
73  mpc8315e-rdb
74  nexusone
75  nitrogen6sx
76  nitrogen6x
77  nitrogen6x-lite
78  nitrogen7
79  nokia900
80  odroid-c1
81  odroid-c2
82  odroid-xu3
83  om-gta01
84  om-gta02
85  om-gta04
86  p1010rdb
87  p1020rdb
88  p1021rdb
89  p1022ds
90  p1023rdb
91  p1025twr
92  p2020rdb
93  p2041rdb
94  p3041ds
95  p4080ds
96  p5020ds
97  p5020ds-64b
98  p5040ds
99  p5040ds-64b
   100  palmpre
   101  palmpre2
   102  pcm052
   103  qemuarm
   104  qemuarm64
   105  qemumips
   106  qemumips64
   107  qemuppc
   108  qemux86
   109  qemux86-64
   110  sama5d2-xplained
   111  sama5d2-xplained-sd
   112  sama5d3xek
   113  sama5d3-xplained
   114  sama5d3-xplained-sd
   115  sama5d4ek
   116  sama5d4-xplained
   117  sama5d4-xplained-sd
   118  t1023rdb
   119  t1023rdb-64b
   120  t1024rdb
   121  t1024rdb-64b
   122  t1040d4rdb
   123  t1040d4rdb-64b
   124  t1042d4rdb
   125  t1042d4rdb-64b
   126  t2080qds
   127  t2080qds-64b
   128  t2080rdb
   129  t2080rdb-64b
   130  t4160qds
   131  t4160qds-64b
   132  t4240qds
   133  t4240qds-64b
   134  t4240rdb
   135  t4240rdb-64b
   136  tilapia
   137  toro
   138  toroplus
   139  twr-vf65gs10
   140  

[yocto] [PATCH 0/2] kernel-dev manual fixes, V2

2016-05-03 Thread Tom Zanussi
This is a fix for Yocto bug 9124, against yocto-docs/master.

V2: Fix a typo in the commit message and update README update, as the
cc: to the maintainer listed there bounced.

The following changes since commit 0b9ee8da66ff81e0724465f18b0323f1216cb9fa:

  ref-manual: Added GObject Introspection to 2.1 migration section. (2016-04-20 
07:27:43 -0700)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib tzanussi/kernel-dev-manual-fixes
  
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=tzanussi/kernel-dev-manual-fixes

Tom Zanussi (2):
  kernel-dev: Fix the locations of .config and source directory
  README: Add correct email for Yocto documentation maintainer

 README |  2 +-
 documentation/kernel-dev/kernel-dev-common.xml | 20 +++-
 2 files changed, 16 insertions(+), 6 deletions(-)

-- 
1.9.3

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH v2 2/2] README: Add correct email for Yocto documentation maintainer

2016-05-03 Thread Tom Zanussi
The e-mail address the top-level README says to cc: is no longer
valid; replace it with the same e-mail address found elsewhere in the
repo.

Signed-off-by: Tom Zanussi 
---
 README | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README b/README
index 4c3b257..bcd68c1 100644
--- a/README
+++ b/README
@@ -12,4 +12,4 @@ Where to Send Patches
 
 Git repository: http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/
 Mailing list: yocto@yoctoproject.org
-Please cc: Scott Rifenbark  on changes.
+Please cc: Scott Rifenbark  on changes.
-- 
1.9.3

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH v2 1/2] kernel-dev: Fix the locations of .config and source directory

2016-05-03 Thread Tom Zanussi
The locations of the kernel .config file and source directory moved a
couple releases ago; update the documentation accordingly.

Also, add a note explaining how to expand variables, which serves a
couple of purposes:

  * For curious readers, shows them how to demystify where these
variables come from and how they're used.
  * For suspicious readers, shows them how they can verify that the
variables in the documentation are actually correct.

Fixes [YOCTO #9124].

Signed-off-by: Tom Zanussi 
---
 documentation/kernel-dev/kernel-dev-common.xml | 20 +++-
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/documentation/kernel-dev/kernel-dev-common.xml 
b/documentation/kernel-dev/kernel-dev-common.xml
index 261471c..5bd12be 100644
--- a/documentation/kernel-dev/kernel-dev-common.xml
+++ b/documentation/kernel-dev/kernel-dev-common.xml
@@ -384,9 +384,7 @@
 
 
 The resulting .config file is
-located in
-${WORKDIR}
 under the
-linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build
 directory.
+located in the build directory,  ${B},
 which expands to ${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build.
 You can use the entire .config file as the
 defconfig file as described in the
 "Changing the 
Configuration" section.
@@ -396,6 +394,19 @@
 section in the Yocto Project Development Manual.
 
 
+
+  If you're ever confused about what a variable expands
+  to, you can determine that unequivocally by looking at
+  the output of the bitbake -e command:
+
+ 
+ $ bitbake -e virtual/kernel
+  
+
+ Search the output for the variable you're interested in
+ and you can see exactly how it's expanded and used.
+
+
 
 A better method is to create a configuration fragment using the
 differences between two configuration files: one previously
@@ -512,8 +523,7 @@
 
 Taking this step ensures you have the sources prepared
 and the configuration completed.
-You can find the sources in the
-${WORKDIR}/linux
 directory.
+You can find the sources in the symlinked 
source/ directory just off the build directory, in other 
words ${B}/source,
 which expands to ${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build/source.
  The directory pointed to by the source/ symlink is also 
known as ${STAGING_KERNEL_DIR}
 
 
 
-- 
1.9.3

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] What version of Jethro do we get with - git clone -b jethro git://git.yoctoproject.org/poky.git ?

2016-05-03 Thread Nick Pongratz
And list of tags can be found here:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/refs/tags

Nick Pongratz
Singlewire Software


On Tue, May 3, 2016 at 10:32 AM, Christopher Larson 
wrote:

>
> On Tue, May 3, 2016 at 3:31 PM, Mark T  wrote:
>
>> Hi Christopher,
>>
>> Thanks. What is the command option to specify the tag and is there a list
>> or tags available ?
>>
>
> https://git-scm.com/book/en/v2
> --
> Christopher Larson
> clarson at kergoth dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Maintainer - Tslib
> Senior Software Engineer, Mentor Graphics
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 1/1] kernel-dev: Fix the locations of .config and source directory

2016-05-03 Thread Tom Zanussi
The locations of the kernel .config file and source directory moved a
couple releases ago; update the documentation accordingly.

Also, add a note explaining how to expand variables, which serves a
couple of purposes:

  * For curious readers, shows them how to demystify where these
variables come from and how their used.
  * For suspicious readers, shows them how they can verify that the
variables in the documentation are actually correct.

Fixes [YOCTO #9124].

Signed-off-by: Tom Zanussi 
---
 documentation/kernel-dev/kernel-dev-common.xml | 20 +++-
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/documentation/kernel-dev/kernel-dev-common.xml 
b/documentation/kernel-dev/kernel-dev-common.xml
index 261471c..5bd12be 100644
--- a/documentation/kernel-dev/kernel-dev-common.xml
+++ b/documentation/kernel-dev/kernel-dev-common.xml
@@ -384,9 +384,7 @@
 
 
 The resulting .config file is
-located in
-${WORKDIR}
 under the
-linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build
 directory.
+located in the build directory,  ${B},
 which expands to ${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build.
 You can use the entire .config file as the
 defconfig file as described in the
 "Changing the 
Configuration" section.
@@ -396,6 +394,19 @@
 section in the Yocto Project Development Manual.
 
 
+
+  If you're ever confused about what a variable expands
+  to, you can determine that unequivocally by looking at
+  the output of the bitbake -e command:
+
+ 
+ $ bitbake -e virtual/kernel
+  
+
+ Search the output for the variable you're interested in
+ and you can see exactly how it's expanded and used.
+
+
 
 A better method is to create a configuration fragment using the
 differences between two configuration files: one previously
@@ -512,8 +523,7 @@
 
 Taking this step ensures you have the sources prepared
 and the configuration completed.
-You can find the sources in the
-${WORKDIR}/linux
 directory.
+You can find the sources in the symlinked 
source/ directory just off the build directory, in other 
words ${B}/source,
 which expands to ${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build/source.
  The directory pointed to by the source/ symlink is also 
known as ${STAGING_KERNEL_DIR}
 
 
 
-- 
1.9.3

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 0/1] kernel-dev manual fix

2016-05-03 Thread Tom Zanussi
This is a fix for Yocto bug 9124, against yocto-docs/master.

The following changes since commit 0b9ee8da66ff81e0724465f18b0323f1216cb9fa:

  ref-manual: Added GObject Introspection to 2.1 migration section. (2016-04-20 
07:27:43 -0700)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib tzanussi/kernel-dev-manual-fixes
  
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=tzanussi/kernel-dev-manual-fixes

Tom Zanussi (1):
  kernel-dev: Fix the locations of .config and source directory

 documentation/kernel-dev/kernel-dev-common.xml | 20 +++-
 1 file changed, 15 insertions(+), 5 deletions(-)

-- 
1.9.3

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Minutes: Yocto Project Technical Team Meeting - Tuesday, May 3, 2016 8:00 AM US Pacific Time

2016-05-03 Thread Jolley, Stephen K
Attendees: Joshua, Stephen, Sona, Armin, Richard, Mark,



Agenda:



* Opens collection - 5 min (Stephen)

* Yocto Project status - 5 min (Stephen/team)

*YP 2.1 was released.

*YP 1.8.2 should build this week.

*YP 2.0.2 should build in a couple of weeks.

*YP 2.2 Planning is almost done and execution has begun.

https://wiki.yoctoproject.org/wiki/Yocto_Project_v2.2_Status

https://wiki.yoctoproject.org/wiki/Yocto_2.2_Schedule

https://wiki.yoctoproject.org/wiki/Yocto_2.2_Features

* Opens - 10 min

*Armin - LTS discussion - We discussed if we want to support 1.8.x 
beyond 1.8.2. We have no problem with community driven LTS for YP releases.

*Armin - Layer Index - Toaster demo showed Layer Index is critical to 
Toaster. It was agreed this was an area we need to work, but more discussion is 
needed.  If you have ideas how to update and support this; work with Armin.

* Team Sharing - 10 min

*Mark - Pre-linker - This has been disabled in YP 2.1, and is under 
investigation.  Work is progressing to fix this issue.




Thanks,

Stephen K. Jolley
Yocto Project Program Manager
INTEL, MS JF1-255, 2111 N.E. 25th Avenue, Hillsboro, OR 97124
*   Work Telephone:  (503) 712-0534
*Cell:   (208) 244-4460
* Email: stephen.k.jol...@intel.com
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] What version of Jethro do we get with - git clone -b jethro git://git.yoctoproject.org/poky.git ?

2016-05-03 Thread Mark T
Hi Christopher,

Thanks. What is the command option to specify the tag and is there a list
or tags available ?

Cheers,
Mark

On 3 May 2016 at 16:23, Christopher Larson  wrote:

>
>
> On Tue, May 3, 2016 at 3:18 PM, Mark T  wrote:
>
>> Hi,
>>
>> When we started working with Yocto we cloned via -
>>
>> git clone -b jethro git://git.yoctoproject.org/poky.git  mydir/
>> cd mydir
>> git clone git://git.yoctoproject.org/meta-intel -b jethro
>>
>> If we do the same a month or so later do we get the same version ?  we
>> suspect not the distro version has changed.
>>
>> Is there a way we can clone the same version all the time ?
>>
>> Secondly, what should be considered a stable version to clone ?
>>
>
> The release branch will get bug fixes and security updates after the
> release. If you don't want it to change at all, use the tag or tarballs,
> not the branch.
> --
> Christopher Larson
> clarson at kergoth dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Maintainer - Tslib
> Senior Software Engineer, Mentor Graphics
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] What version of Jethro do we get with - git clone -b jethro git://git.yoctoproject.org/poky.git ?

2016-05-03 Thread Christopher Larson
On Tue, May 3, 2016 at 3:31 PM, Mark T  wrote:

> Hi Christopher,
>
> Thanks. What is the command option to specify the tag and is there a list
> or tags available ?
>

https://git-scm.com/book/en/v2
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] What version of Jethro do we get with - git clone -b jethro git://git.yoctoproject.org/poky.git ?

2016-05-03 Thread Christopher Larson
On Tue, May 3, 2016 at 3:18 PM, Mark T  wrote:

> Hi,
>
> When we started working with Yocto we cloned via -
>
> git clone -b jethro git://git.yoctoproject.org/poky.git  mydir/
> cd mydir
> git clone git://git.yoctoproject.org/meta-intel -b jethro
>
> If we do the same a month or so later do we get the same version ?  we
> suspect not the distro version has changed.
>
> Is there a way we can clone the same version all the time ?
>
> Secondly, what should be considered a stable version to clone ?
>

The release branch will get bug fixes and security updates after the
release. If you don't want it to change at all, use the tag or tarballs,
not the branch.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] What version of Jethro do we get with - git clone -b jethro git://git.yoctoproject.org/poky.git ?

2016-05-03 Thread Mark T
Hi,

When we started working with Yocto we cloned via -

git clone -b jethro git://git.yoctoproject.org/poky.git  mydir/
cd mydir
git clone git://git.yoctoproject.org/meta-intel -b jethro

If we do the same a month or so later do we get the same version ?  we
suspect not the distro version has changed.

Is there a way we can clone the same version all the time ?

Secondly, what should be considered a stable version to clone ?

Thanks,
Mark
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Build toolchain only (crosstools substitute?)

2016-05-03 Thread Michael Habibi
If I needed to modify glibc or gcc build options (hypothetically speaking,
to turn on profiling or debug), I assume I can do that with bbappends and
the like?

Thanks Paul

On Mon, May 2, 2016 at 11:51 PM, Paul Eggleton <
paul.eggle...@linux.intel.com> wrote:

> Hi Michael,
>
> On Mon, 02 May 2016 16:38:16 Michael Habibi wrote:
> > I have been a few months out of researching Yocto, so I'm having trouble
> > caching it all back in (a lot to absorb!). Excuse me if this is answered
> > clearly in the documentation (I glanced around and I know you can build
> > relocatable toolchains, etc, but I suppose I'm asking more of a
> > philosophical question).
> >
> > I have long-term plans to change our distribution at work over from a
> > custom distribution to one built by Yocto - but this is a few months to a
> > year out.
> >
> > In the mean time, we need a new toolchain simply to update our glibc and
> > gcc packages. I understand that yocto 2.1 can build gcc 5.3 w/ glibc 2.23
> > support. I was wondering if this would be considered an appropriate
> > exercise to use the yocto framework to build solely a toolchain to be
> used
> > with a custom distribution (understanding that the custom distribution
> > would have to be modified to source and use the new toolchain).
> >
> > We typically use crosstools to generate the toolchain, but it is a bit
> > outdated and only builds gcc 5.2 (which has some bugs that were fixed in
> > 5.3). Essentially I want to use Yocto recipes as a substitute for
> > crosstools-ng.
>
> If you build (or download) our SDK that should give you what you need:
>
>
> http://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html#sdk-building-an-sdk-installer
>
> If it's just the toolchain you need you can ignore the bits about
> the extensible SDK - the standard SDK is what you want. There's
> some more explanatory stuff towards the top of that manual as well.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-desktop-2][PATCH 2/2] TakuIconTile: Avoid deprecated icon API

2016-05-03 Thread Jussi Kukkonen
Don't use a named icon size: that is no longer supported.

Instead add style property "taku-icon-size" to TakuIconTile
and use that.
---
 libtaku/taku-icon-tile.c | 24 +++-
 libtaku/taku-launcher-tile.c | 32 +---
 libtaku/taku-menu-desktop.c  |  8 ++--
 libtaku/taku-menu.h  |  3 +--
 src/desktop.c|  4 
 5 files changed, 39 insertions(+), 32 deletions(-)

diff --git a/libtaku/taku-icon-tile.c b/libtaku/taku-icon-tile.c
index 2e562aa..110db6b 100644
--- a/libtaku/taku-icon-tile.c
+++ b/libtaku/taku-icon-tile.c
@@ -63,14 +63,14 @@ tile_arrange (TakuIconTile *tile)
 
 switch (orientation) {
 case GTK_ORIENTATION_VERTICAL :
-  gtk_misc_set_alignment (GTK_MISC (tile->priv->primary), 0.5, 0.5);
-  gtk_misc_set_alignment (GTK_MISC (tile->priv->secondary), 0.5, 0.5);
+  gtk_label_set_xalign (GTK_LABEL (tile->priv->primary), 0.5);
+  gtk_label_set_xalign (GTK_LABEL (tile->priv->secondary), 0.5);
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
   break;
 default:
 case GTK_ORIENTATION_HORIZONTAL :
-  gtk_misc_set_alignment (GTK_MISC (tile->priv->primary), 0.0, 0.5);
-  gtk_misc_set_alignment (GTK_MISC (tile->priv->secondary), 0.0, 0.5);
+  gtk_label_set_xalign (GTK_LABEL (tile->priv->primary), 0.0);
+  gtk_label_set_xalign (GTK_LABEL (tile->priv->secondary), 0.0);
   box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
   break;
 }
@@ -243,6 +243,15 @@ taku_icon_tile_class_init (TakuIconTileClass *klass)
   
GTK_TYPE_ORIENTATION,
   
GTK_ORIENTATION_HORIZONTAL,
   
G_PARAM_READABLE));
+  gtk_widget_class_install_style_property (widget_class,
+   g_param_spec_uint ("taku-icon-size",
+  "Taku icon size",
+  "Icon size used 
by all Taku Icons",
+  0,
+  256,
+  64,
+  
G_PARAM_READABLE));
+
 }
 
 static void
@@ -311,10 +320,15 @@ taku_icon_tile_set_pixbuf (TakuIconTile *tile, GdkPixbuf 
*pixbuf)
 void
 taku_icon_tile_set_icon_name (TakuIconTile *tile, const char *name)
 {
+  uint size;
   g_return_if_fail (TAKU_IS_ICON_TILE (tile));
 
+  gtk_widget_style_get (GTK_WIDGET (tile),
+"taku-icon-size", ,
+NULL);
+
   gtk_image_set_from_icon_name (GTK_IMAGE (tile->priv->icon),
-name, gtk_icon_size_from_name ("taku-icon"));
+name, size);
 }
 
 void
diff --git a/libtaku/taku-launcher-tile.c b/libtaku/taku-launcher-tile.c
index b453eac..e7f58f3 100644
--- a/libtaku/taku-launcher-tile.c
+++ b/libtaku/taku-launcher-tile.c
@@ -38,8 +38,6 @@ struct _TakuLauncherTilePrivate
   gboolean loading_icon; /* If the icon is queued to be loaded */
 };
 
-/* Icon size ID for the TakuIcon size */
-static GtkIconSize icon_size;
 /* Queue of tiles with pending icons to load */
 static GQueue queue = G_QUEUE_INIT;
 
@@ -50,6 +48,7 @@ load_icon (gpointer data)
   TakuLauncherTile *tile;
   GdkPixbuf *pixbuf;
   int i;
+  guint size;
   
   /* Per iteration, load a few icons at once */
   for (i = 0; i < 5; i++) {
@@ -58,8 +57,11 @@ load_icon (gpointer data)
 if (tile == NULL) {
   return TRUE;
 }
-
-pixbuf = taku_menu_item_get_icon (tile->priv->item, (GtkWidget*)tile, 
icon_size);
+
+gtk_widget_style_get (GTK_WIDGET (tile),
+  "taku-icon-size", ,
+  NULL);
+pixbuf = taku_menu_item_get_icon (tile->priv->item, size);
 
 if (pixbuf) {
   taku_icon_tile_set_pixbuf (TAKU_ICON_TILE (tile), pixbuf);
@@ -110,7 +112,7 @@ taku_launcher_tile_finalize (GObject *object)
 static gboolean
 reset_state (gpointer data)
 {
-  gtk_widget_set_state (GTK_WIDGET (data), GTK_STATE_NORMAL);
+  gtk_widget_unset_state_flags (GTK_WIDGET (data), GTK_STATE_FLAG_ACTIVE);
   return FALSE;
 }
 
@@ -119,7 +121,7 @@ taku_launcher_tile_activate (TakuLauncherTile *tile)
 {
   TakuLauncherTile *launcher = TAKU_LAUNCHER_TILE (tile);
 
-  gtk_widget_set_state (GTK_WIDGET (tile), GTK_STATE_ACTIVE);
+  gtk_widget_set_state_flags (GTK_WIDGET (tile), GTK_STATE_FLAG_ACTIVE, FALSE);
 
   g_timeout_add (500, reset_state, tile);
 
@@ -147,12 +149,6 @@ taku_launcher_tile_class_init (TakuLauncherTileClass 
*klass)
 
   object_class->finalize = taku_launcher_tile_finalize;
 
-  /* Lookup the icon size from the theme */
-  icon_size = gtk_icon_size_from_name ("taku-icon");
-  

[yocto] [matchbox-desktop-2][PATCH 1/2] TakuCategoryBar: Avoid deprecated API

2016-05-03 Thread Jussi Kukkonen
Signed-off-by: Jussi Kukkonen 
---
 src/taku-category-bar.c | 27 ++-
 1 file changed, 6 insertions(+), 21 deletions(-)

diff --git a/src/taku-category-bar.c b/src/taku-category-bar.c
index 93bda61..5900d54 100644
--- a/src/taku-category-bar.c
+++ b/src/taku-category-bar.c
@@ -192,7 +192,6 @@ popup_menu (GtkWidget *button, GdkEventButton *event, 
gpointer user_data)
 
 label = gtk_label_new (category->name);
 make_bold (GTK_LABEL (label));
-gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.0);
 gtk_widget_show (label);
 gtk_container_add (GTK_CONTAINER (menu_item), label);
   }
@@ -216,16 +215,14 @@ static void
 taku_category_bar_init (TakuCategoryBar *bar)
 {
   TakuCategoryBarPrivate *priv;
-  GtkWidget *button, *arrow;
-  GtkSizeGroup *size_group;
+  GtkWidget *button;
 
   priv = GET_PRIVATE (bar);
 
-  size_group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
-
   /* Previous button */
 
-  priv->prev_button = button = gtk_button_new ();
+  priv->prev_button = button = gtk_button_new_from_icon_name 
("go-previous-symbolic",
+  
GTK_ICON_SIZE_BUTTON);
   gtk_widget_set_name (button, "MatchboxDesktopPrevButton");
   atk_object_set_name (gtk_widget_get_accessible (button), "GroupPrevious");
   gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
@@ -233,11 +230,6 @@ taku_category_bar_init (TakuCategoryBar *bar)
   gtk_widget_show (button);
   gtk_box_pack_start (GTK_BOX (bar), button, FALSE, TRUE, 0);
 
-  arrow = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_NONE);
-  gtk_widget_show (arrow);
-  gtk_container_add (GTK_CONTAINER (button), arrow);
-  gtk_size_group_add_widget (size_group, arrow);
-
   /* Category name button */
   
   priv->popup_button = button = gtk_toggle_button_new ();
@@ -252,11 +244,11 @@ taku_category_bar_init (TakuCategoryBar *bar)
   make_bold (GTK_LABEL (priv->switcher_label));
   gtk_widget_show (GTK_WIDGET (priv->switcher_label));
   gtk_container_add (GTK_CONTAINER (button), GTK_WIDGET 
(priv->switcher_label));
-  gtk_size_group_add_widget (size_group, GTK_WIDGET (priv->switcher_label));
 
   /* Next button */
 
-  priv->next_button = button = gtk_button_new ();
+  priv->next_button = button = gtk_button_new_from_icon_name 
("go-next-symbolic",
+  
GTK_ICON_SIZE_BUTTON);
   gtk_widget_set_name (button, "MatchboxDesktopNextButton");
   atk_object_set_name (gtk_widget_get_accessible (button), "GroupNext");
 
@@ -264,13 +256,6 @@ taku_category_bar_init (TakuCategoryBar *bar)
   g_signal_connect_swapped (button, "clicked", G_CALLBACK (next_category), 
bar);
   gtk_widget_show (button);
   gtk_box_pack_end (GTK_BOX (bar), button, FALSE, TRUE, 0);
-
-  arrow = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
-  gtk_widget_show (arrow);
-  gtk_container_add (GTK_CONTAINER (button), arrow);
-  gtk_size_group_add_widget (size_group, arrow);
-  
-  g_object_unref (size_group);
 }
 
 
@@ -324,7 +309,7 @@ taku_category_bar_get_current (TakuCategoryBar *bar)
 {
   TakuCategoryBarPrivate *priv;
 
-  g_return_if_fail (TAKU_IS_CATEGORY_BAR (bar));
+  g_return_val_if_fail (TAKU_IS_CATEGORY_BAR (bar), NULL);
   priv = GET_PRIVATE (bar);
 
   return (TakuLauncherCategory*)priv->current_category->data;
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-desktop-2][PATCH 0/2] More Gtk+3 fixes

2016-05-03 Thread Jussi Kukkonen
Two patches more on top of the 16 patch set earlier: these fix the
last deprecation warnings (with GTK 3.20).

I've pushed these into the same branch and have nothing more planned for
matchbox-desktop-2.

Jussi

The following changes since commit 606344f8b1652bcc3d369911990cf5bc46a16ab6:

  Don't set the desktop fullscreen if MODE_DESKTOP (2016-04-28 10:49:55 +0300)

are available in the git repository at:

  git://github.com/jku/matchbox-desktop-2 gtk3
  https://github.com/jku/matchbox-desktop-2/tree/gtk3

Jussi Kukkonen (2):
  TakuCategoryBar: Avoid deprecated API
  TakuIconTile: Avoid deprecated icon API

 libtaku/taku-icon-tile.c | 24 +++-
 libtaku/taku-launcher-tile.c | 32 +---
 libtaku/taku-menu-desktop.c  |  8 ++--
 libtaku/taku-menu.h  |  3 +--
 src/desktop.c|  4 
 src/taku-category-bar.c  | 27 ++-
 6 files changed, 45 insertions(+), 53 deletions(-)

-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [pseudo][PATCH] Add capset pseudo function that always succeeds

2016-05-03 Thread George McCollister
The setcap utility supplied by libcap is used to set capabilities on a
file. Before setting a file's capabilities with cap_set_file() (which uses
setxattr()) it calls cap_set_flag(mycaps, CAP_EFFECTIVE, 1, ,
CAP_SET). cap_set_flag() uses the capset syscall to raise the process'
effective capability. In most cases if the process isn't running as root
this will fail and setcap will exit with an error. Because setxattr is
intercepted by pseudo it's unnecessary for setcap to call capset().

Override capset with a pseudo function that does nothing and always
returns 0.

Signed-off-by: George McCollister 
---
 ports/linux/guts/capset.c | 13 +
 ports/linux/portdefs.h|  2 ++
 ports/linux/pseudo_wrappers.c |  7 +++
 ports/linux/wrapfuncs.in  |  1 +
 4 files changed, 23 insertions(+)
 create mode 100644 ports/linux/guts/capset.c

diff --git a/ports/linux/guts/capset.c b/ports/linux/guts/capset.c
new file mode 100644
index 000..51e0cdf
--- /dev/null
+++ b/ports/linux/guts/capset.c
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2016 Wind River Systems; see
+ * guts/COPYRIGHT for information.
+ *
+ * int capset(cap_user_header_t hdrp, const cap_user_data_t datap)
+ * int rc = -1;
+ */
+
+   rc = real_capset(hdrp, datap);
+
+/* return rc;
+ * }
+ */
diff --git a/ports/linux/portdefs.h b/ports/linux/portdefs.h
index f0a0e40..d8c5020 100644
--- a/ports/linux/portdefs.h
+++ b/ports/linux/portdefs.h
@@ -25,3 +25,5 @@ GLIBC_COMPAT_SYMBOL(memcpy,2.2.5);
 #elif defined(__i386__)
 GLIBC_COMPAT_SYMBOL(memcpy,2.0);
 #endif
+
+#include 
diff --git a/ports/linux/pseudo_wrappers.c b/ports/linux/pseudo_wrappers.c
index 26b29b0..c6c072b 100644
--- a/ports/linux/pseudo_wrappers.c
+++ b/ports/linux/pseudo_wrappers.c
@@ -31,3 +31,10 @@ int
 pseudo_fstat64(int fd, struct stat64 *buf) {
return real___fxstat64(_STAT_VER, fd, buf);
 }
+
+int pseudo_capset(cap_user_header_t hdrp, const cap_user_data_t datap) {
+   (void)hdrp;
+   (void)datap;
+
+   return 0;
+}
diff --git a/ports/linux/wrapfuncs.in b/ports/linux/wrapfuncs.in
index 3b8955a..578db35 100644
--- a/ports/linux/wrapfuncs.in
+++ b/ports/linux/wrapfuncs.in
@@ -51,3 +51,4 @@ int euidaccess(const char *path, int mode);
 int getpw(uid_t uid, char *buf);
 int getpwent_r(struct passwd *pwbuf, char *buf, size_t buflen, struct passwd 
**pwbufp);
 int getgrent_r(struct group *gbuf, char *buf, size_t buflen, struct group 
**gbufp);
+int capset(cap_user_header_t hdrp, const cap_user_data_t datap); /* 
real_func=pseudo_capset */
-- 
2.8.0

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 25/25] windowselector: Port to ScalingImage2

2016-05-03 Thread Jussi Kukkonen
Signed-off-by: Jussi Kukkonen 
---
 applets/windowselector/windowselector.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/applets/windowselector/windowselector.c 
b/applets/windowselector/windowselector.c
index 9c1dadf..d269355 100644
--- a/applets/windowselector/windowselector.c
+++ b/applets/windowselector/windowselector.c
@@ -15,7 +15,7 @@
 #include 
 
 #include 
-#include 
+#include 
 
 #define DEFAULT_WINDOW_ICON_NAME "application-x-executable"
 
@@ -792,7 +792,7 @@ mb_panel_applet_create (const char*id,
 
 switch (applet->mode) {
 case MODE_STATIC_ICON:
-applet->image = mb_panel_scaling_image_new (orientation,
+applet->image = mb_panel_scaling_image2_new (orientation,
 "panel-task-switcher");
 gtk_container_add (GTK_CONTAINER (applet->button),
 applet->image);
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 24/25] mb-panel: size request needs to be set before realize

2016-05-03 Thread Jussi Kukkonen
GtkWindow will default to 200 height on realize unless we request
otherwise  before that. On the other hand, struts can only be set
after the window has been realized.

Signed-off-by: Jussi Kukkonen 
---
 matchbox-panel/mb-panel.c | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/matchbox-panel/mb-panel.c b/matchbox-panel/mb-panel.c
index 3f7e3b4..4f5fb74 100644
--- a/matchbox-panel/mb-panel.c
+++ b/matchbox-panel/mb-panel.c
@@ -387,8 +387,6 @@ main (int argc, char **argv)
 gtk_window_set_accept_focus (GTK_WINDOW (window), FALSE);
 }
 
-gtk_widget_realize (window);
-
 /* Set size */
 switch (mode) {
 case MODE_DOCK:
@@ -427,8 +425,6 @@ main (int argc, char **argv)
  screen_geom.x,
  screen_geom.y + screen_geom.height - 
size);
 }
-
-set_struts (window, edge, size);
 break;
 case MODE_TITLEBAR:
 /* TODO */
@@ -453,6 +449,10 @@ main (int argc, char **argv)
 break;
 }
 
+gtk_widget_realize (window);
+if (mode == MODE_DOCK)
+   set_struts (window, edge, size);
+
 /* Add frame */
 frame = gtk_frame_new (NULL);
 gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE);
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 23/25] Draw systray icons in their actual locations

2016-05-03 Thread Jussi Kukkonen
Cairo context is now in widget-relative coordinates instead of
window-relative: undo that transform so the icon draw code actually
draws inside the window.

Signed-off-by: Jussi Kukkonen 
---
 applets/systray/na-tray.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/applets/systray/na-tray.c b/applets/systray/na-tray.c
index 7da908f..714bd90 100644
--- a/applets/systray/na-tray.c
+++ b/applets/systray/na-tray.c
@@ -538,6 +538,8 @@ static void
 na_tray_draw_box (GtkWidget *box,
  cairo_t   *cr)
 {
+  /* Transform to window-relative coordinates */
+  gtk_cairo_transform_to_window (cr, box, gtk_widget_get_window (box));
   gtk_container_foreach (GTK_CONTAINER (box), na_tray_draw_icon, cr);
 }
 
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 22/25] Update .pc-file to require Gtk+-3.0

2016-05-03 Thread Jussi Kukkonen
---
 matchbox-panel.pc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matchbox-panel.pc.in b/matchbox-panel.pc.in
index dc0a75c..90374b7 100644
--- a/matchbox-panel.pc.in
+++ b/matchbox-panel.pc.in
@@ -8,4 +8,4 @@ Name: matchbox-panel
 Description: Simple GTK+ based panel
 Version: @VERSION@
 Cflags: -I${includedir}
-Requires: glib-2.0 gtk+-2.0
+Requires: glib-2.0 gtk+-3.0
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 21/25] Don't use deprecated GtkMisc

2016-05-03 Thread Jussi Kukkonen
These changes should not affect fucntionality

Signed-off-by: Jussi Kukkonen 
---
 applets/notify/mb-notification.c | 2 +-
 applets/systray/fixedtip.c   | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/applets/notify/mb-notification.c b/applets/notify/mb-notification.c
index e440ec9..c73b21f 100644
--- a/applets/notify/mb-notification.c
+++ b/applets/notify/mb-notification.c
@@ -85,7 +85,7 @@ mb_notification_init (MbNotification *self)
   gtk_box_pack_start (GTK_BOX (box), priv->image, FALSE, FALSE, 0);
 
   priv->label = gtk_label_new (NULL);
-  gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5);
+  gtk_label_set_xalign (GTK_LABEL (priv->label), 0.0);
   gtk_box_pack_start (GTK_BOX (box), priv->label, TRUE, TRUE, 0);
 }
 
diff --git a/applets/systray/fixedtip.c b/applets/systray/fixedtip.c
index 861e4ab..ce19067 100644
--- a/applets/systray/fixedtip.c
+++ b/applets/systray/fixedtip.c
@@ -116,7 +116,6 @@ na_fixed_tip_init (NaFixedTip *fixedtip)
 
   label = gtk_label_new (NULL);
   gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
-  gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
   gtk_widget_show (label);
   gtk_container_add (GTK_CONTAINER (fixedtip), label);
   fixedtip->priv->label = label;
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 19/25] showdesktop: port to use scaling-image2

2016-05-03 Thread Jussi Kukkonen
From: Ross Burton 

---
 applets/showdesktop/showdesktop.c | 14 +-
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/applets/showdesktop/showdesktop.c 
b/applets/showdesktop/showdesktop.c
index e40ebc3..14f9d96 100644
--- a/applets/showdesktop/showdesktop.c
+++ b/applets/showdesktop/showdesktop.c
@@ -11,11 +11,11 @@
 #include 
 #include 
 #include 
-#include 
+#include 
 
 typedef struct {
 GtkButton *button;
-MBPanelScalingImage *image;
+MBPanelScalingImage2 *image;
 
 gboolean active;
 
@@ -45,15 +45,11 @@ show_desktop_applet_free (ShowDesktopApplet *applet)
 static void
 set_active (ShowDesktopApplet *applet, gboolean active)
 {
-const char *icon;
-
 applet->active = active;
 
 /* TODO: remove this function and instead use a toggle button? */
 
-icon = "panel-user-desktop";
-
-mb_panel_scaling_image_set_icon (applet->image, icon);
+mb_panel_scaling_image2_set_icon (applet->image, "panel-user-desktop");
 }
 
 /* Sync @applet with the _NET_SHOWING_DESKTOP root window property */
@@ -206,8 +202,8 @@ mb_panel_applet_create (const char*id,
 
 gtk_widget_set_name (button, "MatchboxPanelShowDesktop");
 
-image = mb_panel_scaling_image_new (orientation, NULL);
-applet->image = MB_PANEL_SCALING_IMAGE (image);
+image = mb_panel_scaling_image2_new (orientation, NULL);
+applet->image = MB_PANEL_SCALING_IMAGE2 (image);
 
 gtk_container_add (GTK_CONTAINER (button), image);
 
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 20/25] Fix a crash on startup

2016-05-03 Thread Jussi Kukkonen
---
 matchbox-panel/mb-panel-scaling-image2.c | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/matchbox-panel/mb-panel-scaling-image2.c 
b/matchbox-panel/mb-panel-scaling-image2.c
index 5692ce1..8cdc3a1 100644
--- a/matchbox-panel/mb-panel-scaling-image2.c
+++ b/matchbox-panel/mb-panel-scaling-image2.c
@@ -327,8 +327,10 @@ mb_panel_scaling_image2_draw (GtkWidget *widget, cairo_t 
*cr)
 {
 MBPanelScalingImage2 *image = MB_PANEL_SCALING_IMAGE2 (widget);
 
-gdk_cairo_set_source_pixbuf (cr, image->priv->pixbuf, 0.0, 0.0);
-cairo_paint (cr);
+if (image->priv->pixbuf) {
+gdk_cairo_set_source_pixbuf (cr, image->priv->pixbuf, 0.0, 
0.0);
+cairo_paint (cr);
+}
 return TRUE;
 }
 
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 17/25] scaling-image2: revised and slimmer scaling image implementation

2016-05-03 Thread Jussi Kukkonen
From: Ross Burton 

No caching, but it's lighter and doesn't misbehave (i.e. size-allocate loop).
---
 matchbox-panel/Makefile.am   |   4 +-
 matchbox-panel/mb-panel-scaling-image2.c | 449 +++
 matchbox-panel/mb-panel-scaling-image2.h |  64 +
 3 files changed, 515 insertions(+), 2 deletions(-)
 create mode 100644 matchbox-panel/mb-panel-scaling-image2.c
 create mode 100644 matchbox-panel/mb-panel-scaling-image2.h

diff --git a/matchbox-panel/Makefile.am b/matchbox-panel/Makefile.am
index 67e0756..a102402 100644
--- a/matchbox-panel/Makefile.am
+++ b/matchbox-panel/Makefile.am
@@ -7,11 +7,11 @@ AM_CFLAGS = $(WARN_CFLAGS)
 
 matchbox_panelincdir = $(pkgincludedir)
 
-matchbox_panelinc_HEADERS = mb-panel.h mb-panel-scaling-image.h
+matchbox_panelinc_HEADERS = mb-panel.h mb-panel-scaling-image.h 
mb-panel-scaling-image2.h
 
 bin_PROGRAMS = matchbox-panel
 
-matchbox_panel_SOURCES = mb-panel.c mb-panel-scaling-image.c
+matchbox_panel_SOURCES = mb-panel.c mb-panel-scaling-image.c 
mb-panel-scaling-image2.c
 
 matchbox_panel_LDADD = $(MATCHBOX_PANEL_LIBS)
 
diff --git a/matchbox-panel/mb-panel-scaling-image2.c 
b/matchbox-panel/mb-panel-scaling-image2.c
new file mode 100644
index 000..5692ce1
--- /dev/null
+++ b/matchbox-panel/mb-panel-scaling-image2.c
@@ -0,0 +1,449 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
+/*
+ * (C) 2013 Intel Corp
+ *
+ * Author: Ross Burton 
+ *
+ * Licensed under the GPL v2 or greater.
+ */
+
+#include 
+#include 
+#include 
+
+#include "mb-panel-scaling-image2.h"
+
+struct _MBPanelScalingImage2Private {
+GtkOrientation orientation;
+char *icon;
+int size;
+GtkIconTheme *icon_theme;
+guint icon_theme_changed_id;
+GdkPixbuf *pixbuf;
+};
+
+enum {
+PROP_0,
+PROP_ORIENTATION,
+PROP_ICON,
+};
+
+G_DEFINE_TYPE (MBPanelScalingImage2,
+   mb_panel_scaling_image2,
+   GTK_TYPE_DRAWING_AREA);
+
+static void
+mb_panel_scaling_image2_init (MBPanelScalingImage2 *image)
+{
+image->priv = G_TYPE_INSTANCE_GET_PRIVATE (image,
+   
MB_PANEL_TYPE_SCALING_IMAGE2,
+   
MBPanelScalingImage2Private);
+
+image->priv->orientation = GTK_ORIENTATION_HORIZONTAL;
+
+image->priv->icon = NULL;
+
+image->priv->pixbuf = NULL;
+}
+
+static void
+mb_panel_scaling_image2_set_property (GObject  *object,
+ guint property_id,
+ const GValue *value,
+ GParamSpec   *pspec)
+{
+MBPanelScalingImage2 *image;
+
+image = MB_PANEL_SCALING_IMAGE2 (object);
+
+switch (property_id) {
+case PROP_ORIENTATION:
+image->priv->orientation = g_value_get_enum (value);
+break;
+case PROP_ICON:
+mb_panel_scaling_image2_set_icon (image,
+ g_value_get_string (value));
+break;
+default:
+G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+break;
+}
+}
+
+static void
+mb_panel_scaling_image2_get_property (GObject*object,
+ guint   property_id,
+ GValue *value,
+ GParamSpec *pspec)
+{
+MBPanelScalingImage2 *image;
+
+image = MB_PANEL_SCALING_IMAGE2 (object);
+
+switch (property_id) {
+case PROP_ORIENTATION:
+g_value_set_enum (value, image->priv->orientation);
+break;
+case PROP_ICON:
+g_value_set_string (value, image->priv->icon);
+break;
+default:
+G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+break;
+}
+}
+
+static void
+mb_panel_scaling_image2_dispose (GObject *object)
+{
+MBPanelScalingImage2 *image;
+GObjectClass *object_class;
+
+object_class = G_OBJECT_CLASS (mb_panel_scaling_image2_parent_class);
+image = MB_PANEL_SCALING_IMAGE2 (object);
+
+if (image->priv->icon_theme_changed_id) {
+g_signal_handler_disconnect
+(image->priv->icon_theme,
+ image->priv->icon_theme_changed_id);
+image->priv->icon_theme_changed_id = 0;
+}
+
+object_class->dispose (object);
+}
+
+static void
+mb_panel_scaling_image2_finalize (GObject *object)
+{
+MBPanelScalingImage2 *image;
+GObjectClass *object_class;
+
+object_class = G_OBJECT_CLASS (mb_panel_scaling_image2_parent_class);
+image = MB_PANEL_SCALING_IMAGE2 (object);
+
+g_free 

[yocto] [matchbox-panel-2][PATCH 18/25] applets: add scaling-image2 to the test harness

2016-05-03 Thread Jussi Kukkonen
From: Ross Burton 

---
 applets/Makefile.applets | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/applets/Makefile.applets b/applets/Makefile.applets
index 9538818..1fff4ff 100644
--- a/applets/Makefile.applets
+++ b/applets/Makefile.applets
@@ -9,5 +9,6 @@ appletdir = $(pkglibdir)
 # Binary to check that the applet actually links against everything it needs.
 noinst_PROGRAMS = test-linkage
 test_linkage_SOURCES = $(srcdir)/../common/test_main.c \
-   $(top_srcdir)/matchbox-panel/mb-panel-scaling-image.c
+   $(top_srcdir)/matchbox-panel/mb-panel-scaling-image.c \
+   $(top_srcdir)/matchbox-panel/mb-panel-scaling-image2.c
 test_linkage_LDADD = $(MATCHBOX_PANEL_LIBS)
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 12/25] build: bump version to 2.9

2016-05-03 Thread Jussi Kukkonen
From: Ross Burton 

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 101df2d..c03c62e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
 AC_PREREQ(2.53)
-AC_INIT(matchbox-panel, 2.0, http://www.openedhand.com/)
+AC_INIT(matchbox-panel, 2.9, http://www.openedhand.com/)
 AM_INIT_AUTOMAKE([-Wno-portability])
 AC_CONFIG_SRCDIR(matchbox-panel/mb-panel.c)
 AM_CONFIG_HEADER(config.h)
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 11/25] po: update POTFILES.in

2016-05-03 Thread Jussi Kukkonen
From: Ross Burton 

---
 po/POTFILES.in | 24 +---
 1 file changed, 17 insertions(+), 7 deletions(-)

diff --git a/po/POTFILES.in b/po/POTFILES.in
index b98a590..3ffdd38 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,12 +1,22 @@
-matchbox-panel/mb-panel-scaling-image.c
-matchbox-panel/mb-panel.c
-applets/launcher/launcher.c
-applets/startup/startup.c
+applets/exit/exit.c
 applets/windowselector/windowselector.c
+applets/startup/startup.c
+applets/battery/battery-apm.c
 applets/battery/battery.c
+applets/battery/battery-acpi.c
+applets/launcher/launcher.c
 applets/showdesktop/showdesktop.c
-applets/clock/clock.c
+applets/startup-notify/marshal.c
+applets/startup-notify/startup.c
 applets/systray/systray.c
-applets/systray/na-marshal.c
 applets/systray/na-tray-manager.c
-
+applets/systray/na-tray-child.c
+applets/systray/fixedtip.c
+applets/systray/na-tray.c
+applets/clock/clock.c
+applets/notify/mb-notification.c
+applets/notify/marshal.c
+applets/notify/notify-store.c
+applets/notify/applet.c
+applets/brightness/brightness.c
+applets/common/test_main.c
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 08/25] notify: port to GTK+ 3

2016-05-03 Thread Jussi Kukkonen
From: Ross Burton 

---
 applets/notify/applet.c  | 19 ---
 applets/notify/mb-notification.c | 38 +-
 2 files changed, 33 insertions(+), 24 deletions(-)

diff --git a/applets/notify/applet.c b/applets/notify/applet.c
index 2920b12..2d896e8 100644
--- a/applets/notify/applet.c
+++ b/applets/notify/applet.c
@@ -1,4 +1,4 @@
-/* 
+/*
  * (C) 2008 OpenedHand Ltd.
  *
  * Author: Ross Burton 
@@ -20,9 +20,13 @@ reposition (GtkWindow *window)
 
   screen = gtk_window_get_screen (window);
 
-  gtk_widget_size_request ((GtkWidget*)window, );
+  gtk_widget_get_preferred_size (GTK_WIDGET (window), , NULL);
+
   if (req.height) {
 gtk_window_resize (window, req.width, req.height);
+/* TODO: get the primary monitor and then use
+   gdk_screen_get_monitor_geometry() to get the geometry of the primary
+   display, not the overall screen. */
 gtk_window_move (window,
  gdk_screen_get_width (screen) - req.width,
  gdk_screen_get_height (screen) - req.height);
@@ -45,7 +49,7 @@ find_widget (GtkContainer *container, guint32 id)
 {
   GList *children, *l;
   GtkWidget *w;
-  
+
   children = gtk_container_get_children (container);
   l = g_list_find_custom (children, GINT_TO_POINTER (id), id_compare);
   w = l ? l->data : NULL;
@@ -86,7 +90,7 @@ on_notification_closed (MbNotifyStore *store, guint id, guint 
reason, GtkWindow
   w = find_widget ((GtkContainer*)box, id);
   if (w)
 gtk_container_remove (GTK_CONTAINER (box), w);
-  
+
   reposition (window);
 }
 
@@ -95,14 +99,15 @@ mb_panel_applet_create (const char *id, GtkOrientation 
orientation)
 {
   GtkWidget *window, *box;
   MbNotifyStore *notify;
-  
+
   window = gtk_window_new (GTK_WINDOW_POPUP);
   gtk_widget_set_name (window, "MbNotificationBox");
-  
+  gtk_window_set_gravity (GTK_WINDOW (window), GDK_GRAVITY_SOUTH_EAST);
+
   box = gtk_vbox_new (TRUE, 0);
   gtk_container_add (GTK_CONTAINER (window), box);
   gtk_widget_show_all (window);
-  
+
   notify = mb_notify_store_new ();
   g_signal_connect (notify, "notification-added", G_CALLBACK 
(on_notification_added), window);
   g_signal_connect (notify, "notification-closed", G_CALLBACK 
(on_notification_closed), window);
diff --git a/applets/notify/mb-notification.c b/applets/notify/mb-notification.c
index 0d0e97c..e440ec9 100644
--- a/applets/notify/mb-notification.c
+++ b/applets/notify/mb-notification.c
@@ -9,7 +9,7 @@ enum {
 };
 
 static guint signals[N_SIGNALS];
-  
+
 #define GET_PRIVATE(o) \
   (G_TYPE_INSTANCE_GET_PRIVATE ((o), MB_TYPE_NOTIFICATION, 
MbNotificationPrivate))
 
@@ -31,17 +31,21 @@ on_button_release (MbNotification *notification, 
GdkEventButton *event)
   }
 }
 
-static gint
-expose (GtkWidget *widget, GdkEventExpose *event)
+static gboolean
+on_draw (GtkWidget *widget, cairo_t *cr)
 {
-  if (gtk_widget_is_drawable (widget)) {
-gtk_paint_box (widget->style, widget->window,
-   widget->state, GTK_SHADOW_OUT,
-   >area, widget, "notification",
-   0, 0, -1, -1);
-
-(*GTK_WIDGET_CLASS (mb_notification_parent_class)->expose_event) (widget, 
event);
-  }
+  GtkStyleContext *style;
+  int width, height;
+
+  style = gtk_widget_get_style_context (widget);
+
+  width = gtk_widget_get_allocated_width (widget);
+  height = gtk_widget_get_allocated_height (widget);
+
+  gtk_render_frame (style, cr, 0, 0, width, height);
+
+  (*GTK_WIDGET_CLASS (mb_notification_parent_class)->draw) (widget, cr);
+
   return FALSE;
 }
 
@@ -52,8 +56,8 @@ mb_notification_class_init (MbNotificationClass *klass)
 
   g_type_class_add_private (klass, sizeof (MbNotificationPrivate));
 
-  widget_class->expose_event = expose;
-  
+  widget_class->draw = on_draw;
+
   signals[CLOSED] = g_signal_new ("closed",
   G_OBJECT_CLASS_TYPE (klass),
   G_SIGNAL_RUN_FIRST,
@@ -73,13 +77,13 @@ mb_notification_init (MbNotification *self)
   gtk_event_box_set_visible_window (GTK_EVENT_BOX (self), FALSE);
   gtk_widget_add_events (GTK_WIDGET (self), GDK_BUTTON_RELEASE_MASK);
   g_signal_connect (self, "button-release-event", G_CALLBACK 
(on_button_release), NULL);
-  
-  box = gtk_hbox_new (FALSE, 8);
+
+  box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
   gtk_container_add (GTK_CONTAINER (self), box);
 
   priv->image = gtk_image_new ();
   gtk_box_pack_start (GTK_BOX (box), priv->image, FALSE, FALSE, 0);
-  
+
   priv->label = gtk_label_new (NULL);
   gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5);
   gtk_box_pack_start (GTK_BOX (box), priv->label, TRUE, TRUE, 0);
@@ -106,7 +110,7 @@ mb_notification_update (MbNotification *notification, 
Notification *n)
 /* TODO: should this default to no image, or "info" */
 gtk_image_clear (GTK_IMAGE (priv->image));
   }
-  
+
   s = g_strdup_printf ("%s\n"
"\n%s", 

[yocto] [matchbox-panel-2][PATCH 07/25] mb-panel: port to GTK+3

2016-05-03 Thread Jussi Kukkonen
From: Ross Burton 

Whilst porting to GTK+ 3 the layout model was simplified: panels are always
full-width and you just pick an edge and size.  The panel is also multi-screen
and multi-monitor aware now.
---
 matchbox-panel/mb-panel.c | 368 +++---
 1 file changed, 187 insertions(+), 181 deletions(-)

diff --git a/matchbox-panel/mb-panel.c b/matchbox-panel/mb-panel.c
index 828a36d..1d6832f 100644
--- a/matchbox-panel/mb-panel.c
+++ b/matchbox-panel/mb-panel.c
@@ -1,9 +1,10 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
 
 /*
- * (C) 2006 OpenedHand Ltd.
+ * (C) 2006-2013 Intel Corp
  *
- * Author: Jorn Baayen 
+ * Authors: Ross Burton 
+ *  Jorn Baayen 
  *
  * Licensed under the GPL v2 or greater.
  */
@@ -23,17 +24,16 @@
 
 static GList *open_modules = NULL; /* List of open modules */
 
-/* Extra width and height to reserve for panel struts (see --reserve-extra) */
-static gint extra_width  = 0;
-static gint extra_height = 0;
+enum {
+ATOM_WM_STRUT_PARTIAL,
+ATOM_MB_STATE,
+ATOM_STATE_DOCT_TITLEBAR,
+ATOM_DOCK_TITLEBAR_DESKTOP,
+/* Counter */
+ATOM_LAST
+};
 
-static gboolean snap_right = FALSE;
-static gboolean snap_bottom = FALSE;
-
-static gboolean center_vertical   = FALSE;
-static gboolean center_horizontal = FALSE;
-
-static gboolean fullscreen = FALSE;
+static Atom atoms[ATOM_LAST];
 
 /* Load applet @name with ID @id */
 static GtkWidget *
@@ -132,63 +132,70 @@ load_applets (const char*applets_desc,
 g_strfreev (applets);
 }
 
-/* Set struts based on the window size and position */
 static void
-set_struts (GtkWidget *window, gint x, gint y, gint w, gint h)
+set_struts (GtkWidget *window, GtkPositionType edge, int size)
 {
-static Atom net_wm_strut_partial = None;
-
-guint32struts [12];
-gint   screen_width, screen_height;
-GdkScreen *screen;
-
-screen = gdk_screen_get_default ();
-
-screen_width  = gdk_screen_get_width (screen);
-screen_height = gdk_screen_get_height (screen);
-
-/* left */
-struts[0] = x == 0 ? w + extra_width : 0;
-struts[4] = struts[0] ? y : 0;
-struts[5] = struts[0] ? y + h : 0;
+Display *xdisplay;
+int x, y, w, h;
+struct {
+long left;
+long right;
+long top;
+long bottom;
+long left_start_y;
+long left_end_y;
+long right_start_y;
+long right_end_y;
+long top_start_x;
+long top_end_x;
+long bottom_start_x;
+long bottom_end_x;
+} struts = { 0, };
+
+xdisplay = GDK_SCREEN_XDISPLAY (gtk_widget_get_screen (window));
+g_assert (xdisplay);
 
-/* right */
-struts[1] = x + w == screen_width ? w + extra_width: 0;
-struts[6] = struts[1] ? y : 0;
-struts[7] = struts[1] ? y + h : 0;
-
-/* top */
-struts[2] = y == 0 ? h + extra_height: 0;
-struts[8] = struts[2] ? x : 0;
-struts[9] = struts[2] ? x + w : 0;
+gtk_window_get_position (GTK_WINDOW (window), , );
+gtk_window_get_size (GTK_WINDOW (window), , );
 
-/* bottom */
-struts[3] = y + h == screen_height ? h + extra_height : 0;
-struts[10] = struts[3] ? x : 0;
-struts[11] = struts[3] ? x + w : 0;
+switch (edge) {
+case GTK_POS_LEFT:
+struts.left = size;
+struts.left_start_y = y;
+struts.left_end_y = y + h;
+break;
+case GTK_POS_RIGHT:
+struts.right = size;
+struts.right_start_y = y;
+struts.right_end_y = y + h;
+break;
+case GTK_POS_TOP:
+struts.top = size;
+struts.top_start_x = x;
+struts.top_end_x = x + w;
+break;
+case GTK_POS_BOTTOM:
+struts.bottom = size;
+struts.bottom_start_x = x;
+struts.bottom_end_x = x + w;
+break;
+}
 
 gdk_error_trap_push ();
-
-if (!net_wm_strut_partial)
-net_wm_strut_partial = XInternAtom (GDK_DISPLAY () ,
-"_NET_WM_STRUT_PARTIAL",
-False);
-
-XChangeProperty (GDK_DISPLAY (),
- GDK_WINDOW_XID (window->window),
- net_wm_strut_partial, XA_CARDINAL, 32,
+XChangeProperty (xdisplay,
+ GDK_WINDOW_XID (gtk_widget_get_window (window)),
+ atoms[ATOM_WM_STRUT_PARTIAL], XA_CARDINAL, 32,

[yocto] [matchbox-panel-2][PATCH 06/25] launcher: port to GTK+ 3

2016-05-03 Thread Jussi Kukkonen
From: Ross Burton 

---
 applets/launcher/launcher.c | 12 +++-
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/applets/launcher/launcher.c b/applets/launcher/launcher.c
index 7e12814..0ec8a43 100644
--- a/applets/launcher/launcher.c
+++ b/applets/launcher/launcher.c
@@ -143,6 +143,7 @@ button_release_event_cb (GtkWidget  *event_box,
 {
 int x, y;
 pid_t child_pid = 0;
+GtkAllocation allocation;
 #ifdef USE_LIBSN
 SnLauncherContext *context;
 #endif
@@ -154,16 +155,17 @@ button_release_event_cb (GtkWidget  *event_box,
 
 /* Only process if the button was released inside the button */
 gtk_widget_translate_coordinates (event_box,
-  event_box->parent,
+  gtk_widget_get_parent (event_box),
   event->x,
   event->y,
   ,
   );
 
-if (x < event_box->allocation.x ||
-x > event_box->allocation.x + event_box->allocation.width ||
-y < event_box->allocation.y ||
-y > event_box->allocation.y + event_box->allocation.height)
+gtk_widget_get_allocation (event_box, );
+if (x < allocation.x ||
+x > allocation.x + allocation.width ||
+y < allocation.y ||
+y > allocation.y + allocation.height)
 return TRUE;
 
 #ifdef USE_LIBSN
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 05/25] showdesktop: port to GTK+ 3

2016-05-03 Thread Jussi Kukkonen
From: Ross Burton 

---
 applets/showdesktop/showdesktop.c | 16 ++--
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/applets/showdesktop/showdesktop.c 
b/applets/showdesktop/showdesktop.c
index 33c13e1..e40ebc3 100644
--- a/applets/showdesktop/showdesktop.c
+++ b/applets/showdesktop/showdesktop.c
@@ -1,4 +1,4 @@
-/* 
+/*
  * (C) 2006 OpenedHand Ltd.
  *
  * Author: Jorn Baayen 
@@ -20,7 +20,7 @@ typedef struct {
 gboolean active;
 
 Atom atom;
-
+
 GdkWindow *root_window;
 } ShowDesktopApplet;
 
@@ -50,7 +50,7 @@ set_active (ShowDesktopApplet *applet, gboolean active)
 applet->active = active;
 
 /* TODO: remove this function and instead use a toggle button? */
-
+
 icon = "panel-user-desktop";
 
 mb_panel_scaling_image_set_icon (applet->image, icon);
@@ -71,8 +71,7 @@ sync_applet (ShowDesktopApplet *applet)
 
 gdk_error_trap_push ();
 result = XGetWindowProperty (GDK_DISPLAY_XDISPLAY (display),
- GDK_WINDOW_XWINDOW
-(applet->root_window),
+ GDK_WINDOW_XID (applet->root_window),
  applet->atom,
  0,
  G_MAXLONG,
@@ -160,13 +159,13 @@ button_clicked_cb (GtkButton *button,
 
 widget = GTK_WIDGET (button);
 screen = GDK_SCREEN_XSCREEN (gtk_widget_get_screen (widget));
-  
+
 xev.xclient.type = ClientMessage;
 xev.xclient.serial = 0;
 xev.xclient.send_event = True;
 xev.xclient.display = DisplayOfScreen (screen);
 xev.xclient.window = RootWindowOfScreen (screen);
-xev.xclient.message_type = applet->atom; 
+xev.xclient.message_type = applet->atom;
 xev.xclient.format = 32;
 xev.xclient.data.l[0] = !applet->active;
 xev.xclient.data.l[1] = 0;
@@ -194,12 +193,10 @@ mb_panel_applet_create (const char*id,
 ShowDesktopApplet *applet;
 GtkWidget *button, *image;
 
-/* Create applet data structure */
 applet = g_slice_new0 (ShowDesktopApplet);
 
 applet->root_window = NULL;
 
-/* Create button */
 button = gtk_button_new ();
 applet->button = GTK_BUTTON (button);
 
@@ -231,7 +228,6 @@ mb_panel_applet_create (const char*id,
(GWeakNotify) show_desktop_applet_free,
applet);
 
-/* Show! */
 gtk_widget_show_all (button);
 
 return button;
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 03/25] startup: port to GTK+ 3

2016-05-03 Thread Jussi Kukkonen
From: Ross Burton 

---
 applets/startup/startup.c | 63 +--
 1 file changed, 34 insertions(+), 29 deletions(-)

diff --git a/applets/startup/startup.c b/applets/startup/startup.c
index 3554d4c..1b304da 100644
--- a/applets/startup/startup.c
+++ b/applets/startup/startup.c
@@ -1,10 +1,13 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
+
 /*
  * startup-monitor - A tray app that provides feedback
  * on application startup.
  *
- * Copyright 2004 - 2007, Openedhand Ltd.
+ * Copyright 2004 - 2013, Intel Corp
  * By Matthew Allum ,
  * Stefan Schmidt 
+ * Ross Burton 
  *
  * Based on mb-applet-startup-monitor
  *
@@ -16,7 +19,6 @@
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- *
  */
 
 #include 
@@ -38,7 +40,7 @@
 #include 
 #include 
 
-#define TIMEOUT   20
+#define TIMEOUT 20
 #define HOURGLASS_PIXMAPS 8
 
 typedef struct LaunchItem {
@@ -66,6 +68,7 @@ static gboolean timeout (StartupApplet *applet);
 static void
 startup_applet_free (StartupApplet *applet)
 {
+   /* TODO: this should be in unrealize */
 gdk_window_remove_filter (applet->root_window,
   (GdkFilterFunc) filter_func, applet);
 g_slice_free (StartupApplet, applet);
@@ -218,12 +221,38 @@ filter_func (GdkXEvent *gdk_xevent,
 return GDK_FILTER_CONTINUE;
 }
 
+static void
+on_realize (GtkWidget *widget, gpointer user_data)
+{
+StartupApplet *applet = user_data;
+GdkDisplay *display;
+GdkScreen *screen;
+Display *xdisplay;
+
+screen = gtk_widget_get_screen (widget);
+display = gdk_screen_get_display (screen);
+xdisplay = GDK_DISPLAY_XDISPLAY (display);
+
+applet->root_window = gdk_screen_get_root_window (screen);
+
+applet->sn_display = sn_display_new (xdisplay, NULL, NULL);
+applet->sn_context = sn_monitor_context_new (applet->sn_display,
+ gdk_screen_get_number 
(screen),
+ monitor_event_func,
+ applet, NULL);
+
+XSelectInput (xdisplay,
+  GDK_WINDOW_XID (applet->root_window),
+  PropertyChangeMask);
+
+gdk_window_add_filter (applet->root_window, 
(GdkFilterFunc)filter_func, applet);
+}
+
 G_MODULE_EXPORT GtkWidget *
 mb_panel_applet_create (const char*id,
 GtkOrientation orientation)
 {
 StartupApplet *applet;
-Display *xdisplay;
 
 /* Create applet data structure */
 applet = g_slice_new0 (StartupApplet);
@@ -242,31 +271,7 @@ mb_panel_applet_create (const char*id,
 g_object_weak_ref (G_OBJECT(applet->image),
(GWeakNotify) startup_applet_free, applet);
 
-xdisplay = GDK_DISPLAY_XDISPLAY
-(gtk_widget_get_display
-(GTK_WIDGET (applet->image)));
-
-applet->sn_display = sn_display_new (xdisplay, NULL, NULL);
-
-applet->sn_context = sn_monitor_context_new (applet->sn_display,
- DefaultScreen(xdisplay),
- monitor_event_func,
- (void *) applet,
- NULL);
-
-/* We have to select for property events on at least one
- * root window (but not all as INITIATE messages go to
- * all root windows)
- */
-XSelectInput (xdisplay,
-  DefaultRootWindow(xdisplay), PropertyChangeMask);
-
-applet->root_window =
-gdk_window_lookup_for_display
-(gdk_x11_lookup_xdisplay (xdisplay), 0);
-
-gdk_window_add_filter (applet->root_window,
-   (GdkFilterFunc) filter_func, applet);
+g_signal_connect (applet->image, "realize", G_CALLBACK (on_realize), 
applet);
 
 return GTK_WIDGET (applet->image);
 }
-- 
2.8.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [matchbox-panel-2][PATCH 00/25] Upgrade to Gtk+3

2016-05-03 Thread Jussi Kukkonen
Apologies for one more patch bomb: This is an upgrade for
matchbox-panel-2 to use modern dependencies, mostly Gtk+3. Most
commits are again from Ross, I just fixed bugs and replaced some
deprecated code.


This patchset is part of the quest to make Sato compatible with GTK+3.
Complete WIP collection of patches can be found in jku/matchbox-wip
branch at git://git.yoctoproject.org/poky-contrib


  -Jussi

The following changes since commit a0b5fca04da208990f3c40e65dbb045da4cdb35e:

  showdesktop: Make sure active state is initialized (2016-03-21 11:27:08 +)

are available in the git repository at:

  git://github.com/jku/matchbox-panel-2 gtk3
  https://github.com/jku/matchbox-panel-2/tree/gtk3

Jussi Kukkonen (6):
  Fix a crash on startup
  Don't use deprecated GtkMisc
  Update .pc-file to require Gtk+-3.0
  Draw systray icons in their actual locations
  mb-panel: size request needs to be set before realize
  windowselector: Port to ScalingImage2

Ross Burton (19):
  build: check for GTK+3, and require 3.0
  windowselector: port to GTK+ 3
  startup: port to GTK+ 3
  startup-notify: port to GTK+ 3
  showdesktop: port to GTK+ 3
  launcher: port to GTK+ 3
  mb-panel: port to GTK+3
  notify: port to GTK+ 3
  systray: port to GTK+ 3
  data: ship our own icons here instead of in sato-icon-theme
  po: update POTFILES.in
  build: bump version to 2.9
  scaling-image: fix whitespace
  scaling-image: port to GTK+ 3 API
  mb-panel: allow resizing, but hide the grip
  mb-panel: replace --titlebar with --mode
  scaling-image2: revised and slimmer scaling image implementation
  applets: add scaling-image2 to the test harness
  showdesktop: port to use scaling-image2

 Makefile.am  |   2 +-
 applets/Makefile.applets |   3 +-
 applets/launcher/launcher.c  |  12 +-
 applets/notify/applet.c  |  19 +-
 applets/notify/mb-notification.c |  40 +-
 applets/showdesktop/showdesktop.c|  28 +-
 applets/startup-notify/startup.c |  65 ++-
 applets/startup/startup.c|  63 +--
 applets/systray/Makefile.am  |  20 +-
 applets/systray/fixedtip.c   | 275 ++
 applets/systray/fixedtip.h   |  68 +++
 applets/systray/na-marshal.list  |   3 -
 applets/systray/na-tray-child.c  | 526 +++
 applets/systray/na-tray-child.h  |  71 +++
 applets/systray/na-tray-manager.c| 570 +++-
 applets/systray/na-tray-manager.h|  32 +-
 applets/systray/na-tray.c| 865 +++
 applets/systray/na-tray.h|  76 +++
 applets/systray/systray.c|  91 +---
 applets/windowselector/windowselector.c  |  43 +-
 configure.ac |  11 +-
 data/16x16/panel-task-switcher.png   | Bin 0 -> 432 bytes
 data/16x16/panel-user-desktop.png| Bin 0 -> 393 bytes
 data/22x22/panel-task-switcher.png   | Bin 0 -> 636 bytes
 data/22x22/panel-user-desktop.png| Bin 0 -> 517 bytes
 data/32x32/panel-task-switcher.png   | Bin 0 -> 965 bytes
 data/32x32/panel-user-desktop.png| Bin 0 -> 734 bytes
 data/48x48/panel-task-switcher.png   | Bin 0 -> 1588 bytes
 data/48x48/panel-user-desktop.png| Bin 0 -> 1115 bytes
 data/64x64/panel-task-switcher.png   | Bin 0 -> 2328 bytes
 data/64x64/panel-user-desktop.png| Bin 0 -> 1491 bytes
 data/Makefile.am |  18 +
 matchbox-panel.pc.in |   2 +-
 matchbox-panel/Makefile.am   |   4 +-
 matchbox-panel/mb-panel-scaling-image.c  |  37 +-
 matchbox-panel/mb-panel-scaling-image2.c | 451 
 matchbox-panel/mb-panel-scaling-image2.h |  64 +++
 matchbox-panel/mb-panel.c| 401 +++---
 po/POTFILES.in   |  24 +-
 39 files changed, 3209 insertions(+), 675 deletions(-)
 create mode 100644 applets/systray/fixedtip.c
 create mode 100644 applets/systray/fixedtip.h
 delete mode 100644 applets/systray/na-marshal.list
 create mode 100644 applets/systray/na-tray-child.c
 create mode 100644 applets/systray/na-tray-child.h
 create mode 100644 applets/systray/na-tray.c
 create mode 100644 applets/systray/na-tray.h
 create mode 100644 data/16x16/panel-task-switcher.png
 create mode 100644 data/16x16/panel-user-desktop.png
 create mode 100644 data/22x22/panel-task-switcher.png
 create mode 100644 data/22x22/panel-user-desktop.png
 create mode 100644 data/32x32/panel-task-switcher.png
 create mode 100644 data/32x32/panel-user-desktop.png
 create mode 100644 data/48x48/panel-task-switcher.png
 create mode 100644 data/48x48/panel-user-desktop.png
 create mode 100644 data/64x64/panel-task-switcher.png
 create mode 100644 data/64x64/panel-user-desktop.png
 create mode 100644 data/Makefile.am
 create mode 100644 matchbox-panel/mb-panel-scaling-image2.c
 create mode 100644 

Re: [yocto] [meta-cgl][PATCH] CGL Requirements Template Parser first draft

2016-05-03 Thread Adrian Dudau
On lör, 2016-04-30 at 13:29 +0300, Sanziana.Voicu wrote:
> From: Sanziana Voicu 
> 
> The script creates three arrays for each type of requirement, based on
> a template. The arrays are ordered for a highly costumisable search.
> This script is the first component of a calculator/automatic template
> parser and updater tool.
> 
> Signed-off-by: Sanziana Voicu 
> ---
>  *snip*

Hi Sanziana,

Can you please send a cover letter first with what you you are trying to
achieve and how - something like a design proposal. As it is right now I
find it hard to review this patch without knowing what the final aim is.

Also the patch to needs a better subject to be merged into the layer
standalone :)

best regards,
--Adrian
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [yocto-autobuilder][PATCH] bin/release_scripts/release.py

2016-05-03 Thread Graydon, Tracy
This patch removes the BSP creation for the p1022ds and the mpc8315e-rdb
platforms.

Signed-off-by: Graydon, Tracy 
---
 bin/release_scripts/release.py | 17 -
 1 file changed, 4 insertions(+), 13 deletions(-)

diff --git a/bin/release_scripts/release.py b/bin/release_scripts/release.py
index 158c44a..be67f9d 100755
--- a/bin/release_scripts/release.py
+++ b/bin/release_scripts/release.py
@@ -244,18 +244,9 @@ def nuke_cruft(dirname, ext_list):
 qemu_dir = os.path.join(MACHINES, dirname, dir)
 nuke_cruft(qemu_dir, CRUFT_LIST)
 else:
-foo = dirname.find("p1022")
-if foo == -1:
-# NOT P1022ds
-for ext in ext_list:
-print "Deleting %s files" %ext
-os.system("rm -f %s/%s" %(dirname, ext))
-else:
-# IS P1022ds
-for ext in ext_list:
-if ext != "*.tar.gz":
-print "Deleting %s files" %ext
-os.system("rm -f %s/%s" %(dirname, ext))
+for ext in ext_list:
+print "Deleting %s files" %ext
+os.system("rm -f %s/%s" %(dirname, ext))
 print
 return
 
@@ -368,7 +359,7 @@ if __name__ == '__main__':
 # List of the files in machines directories that we delete from all 
releases
 CRUFT_LIST = ['*.md5sum', '*.tar.gz', '*.iso']
 # List of the platforms for which we want to generate BSP tarballs. Major 
and point releases.
-BSP_LIST = ['beaglebone', 'edgerouter', 'genericx86', 'genericx86-64', 
'mpc8315e-rdb', 'p1022ds']
+BSP_LIST = ['beaglebone', 'edgerouter', 'genericx86', 'genericx86-64']
 # List of files we do not want to include in the BSP tarballs.
 BSP_JUNK = ['*.manifest', '*.tar.bz2', '*.tgz', '*.iso', '*.md5sum', 
'*.tar.gz', '*-dev-*', '*-sdk-*']
 
-- 
2.7.0

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto