summaryrefslogtreecommitdiffstats
path: root/gtk/src/icons.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-09-15 16:27:22 -0700
committerJohn Stebbins <[email protected]>2017-11-06 08:19:49 -0800
commit737d67c0e7e9a404f25ed82318d243e344ec7672 (patch)
treeca8bc876d7d72846ab6422829320357691a18866 /gtk/src/icons.c
parentd7a59d58cbaa5f08792dbb97c48065fdadbe4414 (diff)
LinGui: Add preset selection menu
And convert appliction to a GtkApplication. This allows the use of GActions for menu and other control actions. It's a cleaner simpler interface that automatically tracks when multiple widgets perform the same action and keeps their state in sync.
Diffstat (limited to 'gtk/src/icons.c')
-rw-r--r--gtk/src/icons.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/src/icons.c b/gtk/src/icons.c
index a0f19e372..0e889e0c6 100644
--- a/gtk/src/icons.c
+++ b/gtk/src/icons.c
@@ -30,13 +30,13 @@ ghb_load_icons()
#if GTK_CHECK_VERSION(3, 14, 0)
ghb_icons_register_resource();
gtk_icon_theme_add_resource_path(gtk_icon_theme_get_default(),
- "/org/handbrake/icons");
+ "/org/handbrake/ghb/icons");
#else
ghb_icons_register_resource();
GResource *icon_res = ghb_icons_get_resource();
char ** children = g_resource_enumerate_children(icon_res,
- "/org/handbrake/icons/scalable/apps", 0, NULL);
+ "/org/handbrake/ghb/icons/scalable/apps", 0, NULL);
if (children == NULL)
{
@@ -46,8 +46,10 @@ ghb_load_icons()
int ii;
for (ii = 0; children[ii] != NULL; ii++)
{
- char *path = g_strdup_printf("/org/handbrake/icons/scalable/apps/%s",
- children[ii]);
+ char * path;
+
+ path = g_strdup_printf("/org/handbrake/ghb/icons/scalable/apps/%s",
+ children[ii]);
GBytes *gbytes = g_resource_lookup_data(icon_res, path, 0, NULL);
gsize data_size;
gconstpointer data = g_bytes_get_data(gbytes, &data_size);