GNOME Bugzilla – Bug 696978
Embed account widgets .ui files with GResource
Last modified: 2013-04-01 10:28:53 UTC
Be a bit more self-contained and store the .ui files for the account widgets inside the library using the GResource framework. It should also simplify a bit the move of the account widgets in a submodule to be shared with g-o-a.
Created attachment 240218 [details] [review] ui-utils: Add empathy_builder_get_resource() Add the empathy_builder_get_file() companion to load UI elements from embedded resources.
Created attachment 240219 [details] [review] account-widget: Embed .ui files with GResource
Review of attachment 240218 [details] [review]: ++
Review of attachment 240219 [details] [review]: ::: libempathy-gtk/empathy-irc-network-dialog.c @@ +30,3 @@ #include "empathy-irc-network-dialog.h" +#define RESOURCES_PREFIX "/org/gnome/AccountWidgets" This is defined in 2 C files. Please factor it out to a header file.
Created attachment 240280 [details] [review] account-widget: Embed .ui files with GResource Define ACCOUNT_WIDGETS_RESOURCES_PREFIX once in empathy-ui-utils.h
The following fixes have been pushed: a169a5c account-widget: Embed .ui files with GResource 788d278 ui-utils: Add empathy_builder_get_resource()
Created attachment 240287 [details] [review] account-widget: Embed .ui files with GResource
Created attachment 240288 [details] [review] ui-utils: Add empathy_builder_get_resource() Add the empathy_builder_get_file() companion to load UI elements from embedded resources.