[6fc8f95bc6465849249d974d53eecc56c00ffda0fc3c7024bfa5b8e4d794b072/gnome-3-36] dialog: Return GLib.SOURCE_REMOVE instead of false
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [6fc8f95bc6465849249d974d53eecc56c00ffda0fc3c7024bfa5b8e4d794b072/gnome-3-36] dialog: Return GLib.SOURCE_REMOVE instead of false
- Date: Tue, 7 Jul 2020 19:10:54 +0000 (UTC)
commit 6b6045578c023ac8d8ea54ddd36e2b52c3da5091
Author: Jonas Dreßler <verdre v0yd nl>
Date: Sun Jun 28 13:06:50 2020 +0200
dialog: Return GLib.SOURCE_REMOVE instead of false
This is more readable than just returning false.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1336
js/ui/dialog.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/dialog.js b/js/ui/dialog.js
index 8e9fb50908..e7d462f451 100644
--- a/js/ui/dialog.js
+++ b/js/ui/dialog.js
@@ -1,7 +1,7 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
/* exported Dialog, MessageDialogContent, ListSection, ListSectionItem */
-const { Clutter, GObject, Meta, Pango, St } = imports.gi;
+const { Clutter, GLib, GObject, Meta, Pango, St } = imports.gi;
function _setLabel(label, value) {
label.set({
@@ -221,7 +221,7 @@ var MessageDialogContent = GObject.registerClass({
this._updateTitleStyleLater = Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => {
this._updateTitleStyleLater = 0;
this._title.add_style_class_name('leightweight');
- return false;
+ return GLib.SOURCE_REMOVE;
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]