[sushi] fallbackRenderer: don't temporarily show type label
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] fallbackRenderer: don't temporarily show type label
- Date: Wed, 3 Jul 2019 03:29:16 +0000 (UTC)
commit 48397133dc94b6c5ed01767553cc2aad72798b47
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jul 2 20:20:51 2019 -0700
fallbackRenderer: don't temporarily show type label
Otherwise it will create a visual glitch if we hide it later.
Instead, show it if necessary.
src/ui/fallbackRenderer.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/ui/fallbackRenderer.js b/src/ui/fallbackRenderer.js
index 4212481..9fce0bf 100644
--- a/src/ui/fallbackRenderer.js
+++ b/src/ui/fallbackRenderer.js
@@ -203,7 +203,7 @@ var FallbackRenderer = GObject.registerClass({
this._spinner.start();
this._spinner.show();
- this._typeLabel = new Gtk.Label();
+ this._typeLabel = new Gtk.Label({ no_show_all: true });
this._typeLabel.set_halign(Gtk.Align.START);
vbox.pack_start(this._typeLabel, false, false, 0);
@@ -231,8 +231,7 @@ var FallbackRenderer = GObject.registerClass({
let typeDescr = Gio.content_type_get_description(contentType);
let typeStr = '<small><b>' + _("Type") + ' </b>' + typeDescr + '</small>';
this._typeLabel.set_markup(typeStr);
- } else {
- this._typeLabel.hide();
+ this._typeLabel.show();
}
let sizeFormatted;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]