diff options
author | B. Stack <bgstack15@gmail.com> | 2022-01-05 16:21:31 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-01-05 16:21:31 -0500 |
commit | 826a2e7f8c7786acb3b5d2217f19814f314289ab (patch) | |
tree | 9c1b67262b407684d8874fc9f525042c90d88207 /librewolf/debian/patches/debian-hacks/Use-remoting-name-for-call-to-gdk_set_program_class.patch | |
parent | check gcc ver instead of fedora ver (diff) | |
download | stackrpms-826a2e7f8c7786acb3b5d2217f19814f314289ab.tar.gz stackrpms-826a2e7f8c7786acb3b5d2217f19814f314289ab.tar.bz2 stackrpms-826a2e7f8c7786acb3b5d2217f19814f314289ab.zip |
add initial lw d/ contents
Diffstat (limited to 'librewolf/debian/patches/debian-hacks/Use-remoting-name-for-call-to-gdk_set_program_class.patch')
-rw-r--r-- | librewolf/debian/patches/debian-hacks/Use-remoting-name-for-call-to-gdk_set_program_class.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/librewolf/debian/patches/debian-hacks/Use-remoting-name-for-call-to-gdk_set_program_class.patch b/librewolf/debian/patches/debian-hacks/Use-remoting-name-for-call-to-gdk_set_program_class.patch new file mode 100644 index 0000000..4b545ca --- /dev/null +++ b/librewolf/debian/patches/debian-hacks/Use-remoting-name-for-call-to-gdk_set_program_class.patch @@ -0,0 +1,42 @@ +From: Mike Hommey <mh@glandium.org> +Date: Mon, 3 Sep 2018 07:37:40 +0900 +Subject: Use remoting name for call to gdk_set_program_class + +Closes: #907574 +--- + widget/gtk/nsAppShell.cpp | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/widget/gtk/nsAppShell.cpp b/widget/gtk/nsAppShell.cpp +index 7090bd2..4cbf111 100644 +--- a/widget/gtk/nsAppShell.cpp ++++ b/widget/gtk/nsAppShell.cpp +@@ -10,6 +10,7 @@ + #include <fcntl.h> + #include <errno.h> + #include <gdk/gdk.h> ++#include "mozilla/XREAppData.h" + #include "nsAppShell.h" + #include "nsWindow.h" + #include "mozilla/Logging.h" +@@ -27,6 +28,7 @@ + # include "nsIObserverService.h" + #endif + #include "gfxPlatform.h" ++#include "nsAppRunner.h" + #include "ScreenHelperGTK.h" + #include "HeadlessScreenHelper.h" + #include "mozilla/widget/ScreenManager.h" +@@ -259,10 +261,8 @@ nsresult nsAppShell::Init() { + // creating top-level windows. (At this point, a child process hasn't + // received the list of registered chrome packages, so the + // GetBrandShortName call would fail anyway.) +- nsAutoString brandName; +- mozilla::widget::WidgetUtils::GetBrandShortName(brandName); +- if (!brandName.IsEmpty()) { +- gdk_set_program_class(NS_ConvertUTF16toUTF8(brandName).get()); ++ if (gAppData) { ++ gdk_set_program_class(gAppData->remotingName); + } + } + } |