Skip to content

Instantly share code, notes, and snippets.

View mariospr's full-sized avatar

Mario Sanchez Prada mariospr

View GitHub Profile
From 40f0bc43bca387df1d5c9387199de841ea6a0ab3 Mon Sep 17 00:00:00 2001
From: Mario Sanchez Prada <mario@igalia.com>
Date: Wed, 13 Feb 2019 10:51:38 +0100
Subject: [PATCH] Experiment: WaitForAddAccountToCookieCompleted()
Change-Id: Iaaff1d0d0c3082348a194ac3441b762928bb5a5c
---
.../cpp/accounts_cookie_mutator_unittest.cc | 43 ++++++-------------
.../public/cpp/identity_test_environment.cc | 7 +++
.../public/cpp/identity_test_environment.h | 4 ++
diff --git a/services/identity/public/cpp/identity_test_environment.cc b/services/identity/public/cpp/identity_test_environment.cc
index f3f91b43e3db..c38dc1eaae16 100644
--- a/services/identity/public/cpp/identity_test_environment.cc
+++ b/services/identity/public/cpp/identity_test_environment.cc
@@ -8,7 +8,6 @@
#include "base/run_loop.h"
#include "base/threading/thread_task_runner_handle.h"
-#include "components/signin/core/browser/account_consistency_method.h"
#include "components/signin/core/browser/test_signin_client.h"
From a90353ebe249a2818872e15be003b22085739c18 Mon Sep 17 00:00:00 2001
From: Mario Sanchez Prada <mario@endlessm.com>
Date: Thu, 4 May 2017 17:42:41 +0100
Subject: [PATCH] Allow specifying an icon on addSettingsAction() and
addAction()
This commit allows passing optional parameters to addSettingsAction()
and addAction() so that a PopupImageMenuItem instance is created instead
of a PopupMenuItem if an icon is specified, either by passing a string
to the icon name, or a Gio.Icon.
From 5f65f61ccbf33b9531a75c18e8be0e67f3724d10 Mon Sep 17 00:00:00 2001
From: Mario Sanchez Prada <mario@endlessm.com>
Date: Thu, 4 May 2017 14:51:06 +0100
Subject: [PATCH] Allow specifying an image/icon on addSettingsAction() and
addAction()
This commit allows passing optional parameters to addSettingsAction()
and addAction() so that different aspects of how the menu item object
is created, including the possibility of including an image or an icon
name to be rendered together with the icon's text.
@mariospr
mariospr / redeclarations.patch
Created April 25, 2017 13:42
GNOME Shell 3.22 with GJS 1.48
diff --git a/js/misc/keyboardManager.js b/js/misc/keyboardManager.js
index e8a3e78..85efa71 100644
--- a/js/misc/keyboardManager.js
+++ b/js/misc/keyboardManager.js
@@ -124,12 +124,12 @@ const KeyboardManager = new Lang.Class({
if (locale.indexOf('_') == -1)
locale = DEFAULT_LOCALE;
- let [found, , id] = GnomeDesktop.get_input_source_from_locale(locale);
- if (!found)
diff --git a/src/gs-application.c b/src/gs-application.c
index c2044e8..f30bfb5 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -48,6 +48,7 @@
#include "gs-shell.h"
#include "gs-update-monitor.h"
#include "gs-shell-search-provider.h"
+#include "gs-plugin-loader-sync.h"
#include "gs-folders.h"
0:00:00.557686608 29453 0xb8f75a20 WARN basesrc gstbasesrc.c:3489:gst_base_src_start_complete:<source> pad not activated yet
0:00:00.560178646 29453 0xb8f75a20 WARN basesrc gstbasesrc.c:3489:gst_base_src_start_complete:<source> pad not activated yet
0:00:00.637388838 29453 0xae627780 WARN qtdemux qtdemux_types.c:222:qtdemux_type_get: unknown QuickTime node type iods
0:00:00.637875846 29453 0xae627780 WARN qtdemux qtdemux.c:2651:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 1
0:00:00.638603857 29453 0xae627780 WARN qtdemux qtdemux.c:2651:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 2
0:00:00.639172866 29453 0xae627780 WARN basesrc gstbasesrc.c:2396:gst_base_src_update_length:<source> processing at or past EOS
0:00:00.724505183 29453 0xaf00cc00 FIXME videodecoder gstvideodecoder.c:1057:gst_video_decoder_drain_out:<avdec_h264-0> Sub-class should imple
diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
index d9b0025..20bea03 100644
--- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
+++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
@@ -235,10 +235,14 @@ bool MediaPlayerPrivateGStreamerBase::ensureGstGLContext()
if (m_glContext)
return true;
- const auto& sharedDisplay = PlatformDisplay::sharedDisplayForCompositing();
+ auto& sharedDisplay = PlatformDisplay::sharedDisplayForCompositing();
# CMake Toolchain file to cross compile WebKit2GTK+ for ARM (tested with 2.14.0)
#
# Environment:
# * Ubuntu Wily chroot (amd64)
# * Root FS for the target device (e.g. /schroot/eos-master-armhf)
# * Usual WebKit build deps installed in the Root FS
# * Build dependencies in the host (wily chroot):
# gawk cmake debhelper gperf bison flex ruby
# * Cross compiler packages in the host (wily chroot):
# cpp-4.9-arm-linux-gnueabihf g++-4.9-arm-linux-gnueabihf \
static GList *
_g_get_unix_mount_points (void)
{
struct libmnt_table *table = NULL;
struct libmnt_context *ctxt = NULL;
struct libmnt_iter* iter = NULL;
struct libmnt_fs *fs = NULL;
GUnixMountEntry *mount_entry = NULL;
GList *return_list = NULL;