After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 691132 - Use GResource for UI files and icon data
Use GResource for UI files and icon data
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: general
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-04 14:25 UTC by Cosimo Cecchi
Modified: 2013-01-07 10:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
background: use a GResource for GtkBuilder UI definition (4.28 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
bluetooth: use a GResource for GtkBuilder UI definition (3.91 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
color: use a GResource for GtkBuilder UI definition (3.36 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
datetime: use a GResource for GtkBuilder UI definition and icons (14.73 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
display: use a GResource for GtkBuilder UI definition (3.83 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
info: use a GResource for GtkBuilder UI definition (3.84 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
keyboard: use a GResource for GtkBuilder UI definition (4.05 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
mouse: use a GResource for GtkBuilder UI definition and icons (6.44 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
network: use a GResource for GtkBuilder UI definition (8.87 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
notifications: use a GResource for GtkBuilder UI definition (4.09 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
online-accounts: use a GResource for GtkBuilder UI definition (4.05 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
power: use a GResource for GtkBuilder UI definition (3.40 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
printers: use a GResource for GtkBuilder UI definition (7.99 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
privacy: use a GResource for GtkBuilder UI definition (3.61 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
region: use a GResource for GtkBuilder UI definition (4.65 KB, patch)
2013-01-04 15:39 UTC, Cosimo Cecchi
committed Details | Review
screen: use a GResource for GtkBuilder UI definition (3.40 KB, patch)
2013-01-04 15:40 UTC, Cosimo Cecchi
committed Details | Review
search: use a GResource for GtkBuilder UI definition (4.59 KB, patch)
2013-01-04 15:40 UTC, Cosimo Cecchi
committed Details | Review
universal-access: use a GResource for GtkBuilder UI definition (4.93 KB, patch)
2013-01-04 15:40 UTC, Cosimo Cecchi
committed Details | Review
wacom: use a GResource for GtkBuilder UI definition and icons (8.98 KB, patch)
2013-01-04 15:40 UTC, Cosimo Cecchi
committed Details | Review
info: remove unused code (1.73 KB, patch)
2013-01-04 15:40 UTC, Cosimo Cecchi
committed Details | Review
keyboard: remove unused code (1.43 KB, patch)
2013-01-04 15:40 UTC, Cosimo Cecchi
committed Details | Review
mouse: remove unused code (1.72 KB, patch)
2013-01-04 15:40 UTC, Cosimo Cecchi
committed Details | Review
screen: remove unused code (1.75 KB, patch)
2013-01-04 15:40 UTC, Cosimo Cecchi
committed Details | Review
common: use a GResource for GtkBuilder UI definition (3.95 KB, patch)
2013-01-04 17:05 UTC, Cosimo Cecchi
committed Details | Review
shell: use a GResource for GtkBuilder UI definition (3.13 KB, patch)
2013-01-04 17:05 UTC, Cosimo Cecchi
committed Details | Review
user-accounts: remove unused icons (9.22 KB, patch)
2013-01-04 17:05 UTC, Cosimo Cecchi
committed Details | Review
user-accounts: don't install SVG icons (1.13 KB, patch)
2013-01-04 17:05 UTC, Cosimo Cecchi
committed Details | Review
user-accounts: use a GResource for GtkBuilder UI definition and icons (12.64 KB, patch)
2013-01-04 17:05 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2013-01-04 14:25:28 UTC
Instead of installing those files directly.
I am working on a patchset for this.
Comment 1 Cosimo Cecchi 2013-01-04 15:39:14 UTC
Created attachment 232741 [details] [review]
background: use a GResource for GtkBuilder UI definition
Comment 2 Cosimo Cecchi 2013-01-04 15:39:17 UTC
Created attachment 232742 [details] [review]
bluetooth: use a GResource for GtkBuilder UI definition
Comment 3 Cosimo Cecchi 2013-01-04 15:39:20 UTC
Created attachment 232743 [details] [review]
color: use a GResource for GtkBuilder UI definition
Comment 4 Cosimo Cecchi 2013-01-04 15:39:23 UTC
Created attachment 232744 [details] [review]
datetime: use a GResource for GtkBuilder UI definition and icons
Comment 5 Cosimo Cecchi 2013-01-04 15:39:26 UTC
Created attachment 232745 [details] [review]
display: use a GResource for GtkBuilder UI definition
Comment 6 Cosimo Cecchi 2013-01-04 15:39:29 UTC
Created attachment 232746 [details] [review]
info: use a GResource for GtkBuilder UI definition
Comment 7 Cosimo Cecchi 2013-01-04 15:39:32 UTC
Created attachment 232747 [details] [review]
keyboard: use a GResource for GtkBuilder UI definition
Comment 8 Cosimo Cecchi 2013-01-04 15:39:36 UTC
Created attachment 232748 [details] [review]
mouse: use a GResource for GtkBuilder UI definition and icons
Comment 9 Cosimo Cecchi 2013-01-04 15:39:39 UTC
Created attachment 232749 [details] [review]
network: use a GResource for GtkBuilder UI definition
Comment 10 Cosimo Cecchi 2013-01-04 15:39:42 UTC
Created attachment 232750 [details] [review]
notifications: use a GResource for GtkBuilder UI definition
Comment 11 Cosimo Cecchi 2013-01-04 15:39:46 UTC
Created attachment 232751 [details] [review]
online-accounts: use a GResource for GtkBuilder UI definition
Comment 12 Cosimo Cecchi 2013-01-04 15:39:49 UTC
Created attachment 232752 [details] [review]
power: use a GResource for GtkBuilder UI definition
Comment 13 Cosimo Cecchi 2013-01-04 15:39:53 UTC
Created attachment 232753 [details] [review]
printers: use a GResource for GtkBuilder UI definition
Comment 14 Cosimo Cecchi 2013-01-04 15:39:56 UTC
Created attachment 232754 [details] [review]
privacy: use a GResource for GtkBuilder UI definition
Comment 15 Cosimo Cecchi 2013-01-04 15:39:59 UTC
Created attachment 232755 [details] [review]
region: use a GResource for GtkBuilder UI definition
Comment 16 Cosimo Cecchi 2013-01-04 15:40:03 UTC
Created attachment 232756 [details] [review]
screen: use a GResource for GtkBuilder UI definition
Comment 17 Cosimo Cecchi 2013-01-04 15:40:06 UTC
Created attachment 232757 [details] [review]
search: use a GResource for GtkBuilder UI definition
Comment 18 Cosimo Cecchi 2013-01-04 15:40:10 UTC
Created attachment 232758 [details] [review]
universal-access: use a GResource for GtkBuilder UI definition
Comment 19 Cosimo Cecchi 2013-01-04 15:40:14 UTC
Created attachment 232759 [details] [review]
wacom: use a GResource for GtkBuilder UI definition and icons
Comment 20 Cosimo Cecchi 2013-01-04 15:40:17 UTC
Created attachment 232760 [details] [review]
info: remove unused code
Comment 21 Cosimo Cecchi 2013-01-04 15:40:21 UTC
Created attachment 232761 [details] [review]
keyboard: remove unused code
Comment 22 Cosimo Cecchi 2013-01-04 15:40:25 UTC
Created attachment 232762 [details] [review]
mouse: remove unused code
Comment 23 Cosimo Cecchi 2013-01-04 15:40:28 UTC
Created attachment 232763 [details] [review]
screen: remove unused code
Comment 24 Bastien Nocera 2013-01-04 16:31:00 UTC
Review of attachment 232741 [details] [review]:

::: panels/background/Makefile.am
@@ -4,3 @@
-uidir = $(pkgdatadir)/ui/background
-dist_ui_DATA = \
-	background.ui

Where is background.ui added to the dist?

@@ +52,3 @@
 endif
 
+resource_files = $(shell glib-compile-resources --generate-dependencies $(srcdir)/background.gresource.xml)

Can you add a macro for all this which would use $(cappletname)?
Comment 25 Bastien Nocera 2013-01-04 16:46:21 UTC
Review of attachment 232763 [details] [review]:

Looks good.
Comment 26 Bastien Nocera 2013-01-04 16:46:52 UTC
Review of attachment 232762 [details] [review]:

++
Comment 27 Bastien Nocera 2013-01-04 17:00:40 UTC
Review of attachment 232741 [details] [review]:

::: panels/background/Makefile.am
@@ -4,3 @@
-uidir = $(pkgdatadir)/ui/background
-dist_ui_DATA = \
-	background.ui

Never mind that bit.
Comment 28 Bastien Nocera 2013-01-04 17:01:16 UTC
Review of attachment 232761 [details] [review]:

++
Comment 29 Bastien Nocera 2013-01-04 17:02:54 UTC
Review of attachment 232760 [details] [review]:

++
Comment 30 Cosimo Cecchi 2013-01-04 17:05:18 UTC
Created attachment 232765 [details] [review]
common: use a GResource for GtkBuilder UI definition
Comment 31 Cosimo Cecchi 2013-01-04 17:05:24 UTC
Created attachment 232766 [details] [review]
shell: use a GResource for GtkBuilder UI definition
Comment 32 Cosimo Cecchi 2013-01-04 17:05:28 UTC
Created attachment 232767 [details] [review]
user-accounts: remove unused icons

These are not used anywhere, so don't install them and remove them from
version control.
Comment 33 Cosimo Cecchi 2013-01-04 17:05:33 UTC
Created attachment 232768 [details] [review]
user-accounts: don't install SVG icons

We only use the PNGs in the panel. Keep the SVGs under version control,
as they're used to generate the PNGs.
Comment 34 Cosimo Cecchi 2013-01-04 17:05:38 UTC
Created attachment 232769 [details] [review]
user-accounts: use a GResource for GtkBuilder UI definition and icons
Comment 35 Bastien Nocera 2013-01-04 17:09:34 UTC
Review of attachment 232767 [details] [review]:

++
Comment 36 Bastien Nocera 2013-01-04 17:16:54 UTC
Review of attachment 232768 [details] [review]:

++
Comment 37 Cosimo Cecchi 2013-01-04 19:35:29 UTC
Attachment 232760 [details] pushed as 8ae20f4 - info: remove unused code
Attachment 232761 [details] pushed as df3793d - keyboard: remove unused code
Attachment 232762 [details] pushed as 77a26f9 - mouse: remove unused code
Attachment 232763 [details] pushed as 9ae15e6 - screen: remove unused code
Attachment 232767 [details] pushed as 3637447 - user-accounts: remove unused icons
Attachment 232768 [details] pushed as ce54652 - user-accounts: don't install SVG icons
Comment 38 Bastien Nocera 2013-01-07 10:05:35 UTC
The power panel patch didn't apply cleanly.

Attachment 232741 [details] pushed as e30613e - background: use a GResource for GtkBuilder UI definition
Attachment 232742 [details] pushed as ddf9d29 - bluetooth: use a GResource for GtkBuilder UI definition
Attachment 232743 [details] pushed as bd7e87b - color: use a GResource for GtkBuilder UI definition
Attachment 232744 [details] pushed as d2ce735 - datetime: use a GResource for GtkBuilder UI definition and icons
Attachment 232745 [details] pushed as b757189 - display: use a GResource for GtkBuilder UI definition
Attachment 232746 [details] pushed as 214b514 - info: use a GResource for GtkBuilder UI definition
Attachment 232747 [details] pushed as 3b98a73 - keyboard: use a GResource for GtkBuilder UI definition
Attachment 232748 [details] pushed as db5aba7 - mouse: use a GResource for GtkBuilder UI definition and icons
Attachment 232749 [details] pushed as 57de0ab - network: use a GResource for GtkBuilder UI definition
Attachment 232750 [details] pushed as 5975b17 - notifications: use a GResource for GtkBuilder UI definition
Attachment 232751 [details] pushed as 0653773 - online-accounts: use a GResource for GtkBuilder UI definition
Attachment 232753 [details] pushed as 3064425 - printers: use a GResource for GtkBuilder UI definition
Attachment 232754 [details] pushed as 6f48e0f - privacy: use a GResource for GtkBuilder UI definition
Attachment 232755 [details] pushed as 887c3ae - region: use a GResource for GtkBuilder UI definition
Attachment 232756 [details] pushed as b6b77de - screen: use a GResource for GtkBuilder UI definition
Attachment 232757 [details] pushed as 28b6974 - search: use a GResource for GtkBuilder UI definition
Attachment 232758 [details] pushed as f7ae09c - universal-access: use a GResource for GtkBuilder UI definition
Attachment 232759 [details] pushed as 82f8c13 - wacom: use a GResource for GtkBuilder UI definition and icons
Attachment 232765 [details] pushed as ce1e2ed - common: use a GResource for GtkBuilder UI definition
Attachment 232769 [details] pushed as eb573a7 - user-accounts: use a GResource for GtkBuilder UI definition and icons
Comment 39 Bastien Nocera 2013-01-07 10:13:46 UTC
Fixed to apply to master.

Attachment 232752 [details] pushed as 645778e - power: use a GResource for GtkBuilder UI definition