]> granicus.if.org Git - handbrake/commitdiff
LinGui: use fr.handbrake.ghb consistently
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 19 Jun 2018 21:53:51 +0000 (14:53 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 19 Jun 2018 21:53:51 +0000 (14:53 -0700)
gtk/src/Makefile.am
gtk/src/data_res.gresource.xml
gtk/src/ghb.desktop [deleted file]
gtk/src/icon_res.gresource.xml
gtk/src/icons.c
gtk/src/main.c
gtk/src/resources.c
gtk/src/ui_res.gresource.xml

index a7b8c72366ece01979c20cab936a2b97f86ac78e..b684aeef2217dc747ee6c692baf13b4b979310d0 100644 (file)
@@ -1,7 +1,7 @@
 ## Process this file with automake to produce Makefile.in
 
 icons =        \
-       hb-icon.svg
+       hb-icon.svg fr.handbrake.ghb.svg
 
 icons_dep =    \
        icons/24x24/apps/hb-remove.png \
@@ -35,12 +35,7 @@ icons_dep =  \
        icons/scalable/apps/hb-edit.svg \
        icons/scalable/apps/hb-icon.svg
 
-if GHB_FLATPAK
-icons += fr.handbrake.ghb.svg
 hb_menu = fr.handbrake.ghb.desktop
-else
-hb_menu = ghb.desktop
-endif
 
 @INTLTOOL_XML_RULE@
 appdatadir = $(datarootdir)/metainfo
index 5b0741ceb9d3fb69e06d8f89aa03fe0fd1739b37..a0a88bddf8b2bb25340bb2a5f3473bc67d4219c2 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <gresources>
-  <gresource prefix="/org/handbrake/ghb/data">
+  <gresource prefix="/fr/handbrake/ghb/data">
     <file>internal_defaults.json</file>
     <file>widget.deps</file>
     <file>widget_reverse.deps</file>
diff --git a/gtk/src/ghb.desktop b/gtk/src/ghb.desktop
deleted file mode 100644 (file)
index c5b7b3e..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[Desktop Entry]
-Name=HandBrake
-GenericName=Media Transcoder
-GenericName[fr]=Transcodeur de média
-Comment=Transcodes DVD, Blu-ray, and other media
-Comment[ru]=Перекодировка DVD, Blu-ray и других мультимедиа файлов
-Comment[fr]=Transcode les DVD, Bluray, et autres médias
-Exec=ghb %f
-Icon=hb-icon
-Terminal=false
-Type=Application
-Categories=GTK;AudioVideo;Video;
-MimeType=application/ogg;application/x-extension-mp4;application/x-flac;application/x-matroska;application/x-ogg;audio/ac3;audio/mp4;audio/mpeg;audio/ogg;audio/x-flac;audio/x-matroska;audio/x-mp3;audio/x-mpeg;audio/x-vorbis;video/mp4;video/mp4v-es;video/mpeg;video/msvideo;video/quicktime;video/vnd.divx;video/x-avi;video/x-m4v;video/x-matroska;video/x-mpeg;video/ogg;video/x-ogm+ogg;video/x-theora+ogg;x-content/video-dvd;x-content/video-vcd;x-content/video-svcd;
index 9318a779179864283654252312842dd5a26f52a6..63593bbd3f9bf7591582cf4157c5c421af080b71 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <gresources>
-  <gresource prefix="/org/handbrake/ghb">
+  <gresource prefix="/fr/handbrake/ghb">
     <file>icons/24x24/apps/hb-remove.png</file>
     <file>icons/32x32/apps/hb-source.png</file>
     <file>icons/32x32/apps/hb-picture.png</file>
index f5b462a3744f820f2b99ff3987e6465533d6a130..3f9b89b54f0a2250998f7fa1be6ecb36a86ccf06 100644 (file)
@@ -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/ghb/icons");
+                                     "/fr/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/ghb/icons/scalable/apps", 0, NULL);
+                            "/fr/handbrake/ghb/icons/scalable/apps", 0, NULL);
 
     if (children == NULL)
     {
@@ -48,7 +48,7 @@ ghb_load_icons()
     {
         char * path;
 
-        path = g_strdup_printf("/org/handbrake/ghb/icons/scalable/apps/%s",
+        path = g_strdup_printf("/fr/handbrake/ghb/icons/scalable/apps/%s",
                                children[ii]);
         GBytes *gbytes = g_resource_lookup_data(icon_res, path, 0, NULL);
         gsize data_size;
index d357cf8addd75905078307388934ba4ba167ea29..ddf44fc2e08512891993ec4c01dbaf5687d8d37c 100644 (file)
@@ -94,7 +94,7 @@ create_builder_or_die(const gchar * name)
 
     GResource *ui_res = ghb_ui_get_resource();
     GBytes *gbytes = g_resource_lookup_data(ui_res,
-                                            "/org/handbrake/ghb/ui/ghb.ui",
+                                            "/fr/handbrake/ghb/ui/ghb.ui",
                                             0, NULL);
     ghb_ui = g_bytes_get_data(gbytes, &data_size);
 
@@ -1330,7 +1330,7 @@ main(int argc, char *argv[])
 
     ghb_ui_register_resource();
     ud = g_malloc0(sizeof(signal_user_data_t));
-    ud->app = gtk_application_new("org.handbrake.ghb",
+    ud->app = gtk_application_new("fr.handbrake.ghb",
                                   G_APPLICATION_NON_UNIQUE |
                                   G_APPLICATION_HANDLES_OPEN);
     // Connect application signals
index 231ef327924d3bc47728f19382de375f0a6d17bf..47d28b6223652a7f26f408f4f0bdb8b05c573294 100644 (file)
@@ -48,21 +48,21 @@ ghb_resource_init()
     GResource *data_res = ghb_data_get_resource();
 
     gbytes = g_resource_lookup_data(data_res,
-                    "/org/handbrake/ghb/data/internal_defaults.json", 0, NULL);
+                    "/fr/handbrake/ghb/data/internal_defaults.json", 0, NULL);
     data = g_bytes_get_data(gbytes, &data_size);
     val = ghb_json_parse(data);
     g_bytes_unref(gbytes);
     ghb_dict_set(resources, "internal-defaults", val);
 
     gbytes = g_resource_lookup_data(data_res,
-                    "/org/handbrake/ghb/data/widget.deps", 0, NULL);
+                    "/fr/handbrake/ghb/data/widget.deps", 0, NULL);
     data = g_bytes_get_data(gbytes, &data_size);
     val = ghb_json_parse(data);
     g_bytes_unref(gbytes);
     ghb_dict_set(resources, "widget-deps", val);
 
     gbytes = g_resource_lookup_data(data_res,
-                    "/org/handbrake/ghb/data/widget_reverse.deps", 0, NULL);
+                    "/fr/handbrake/ghb/data/widget_reverse.deps", 0, NULL);
     data = g_bytes_get_data(gbytes, &data_size);
     val = ghb_json_parse(data);
     g_bytes_unref(gbytes);
index 0a06993d623da1c31a9901d67260685ecdd017c3..7a8d0b15b5bdd2030c7f7e889fb5b76ac6c9cddf 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <gresources>
-  <gresource prefix="/org/handbrake/ghb/ui">
+  <gresource prefix="/fr/handbrake/ghb/ui">
     <file>ghb.ui</file>
   </gresource>
 </gresources>