[gnome-mahjongg/arnaudb/wip/gtk4: 13/29] Widgets are visible.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg/arnaudb/wip/gtk4: 13/29] Widgets are visible.
- Date: Fri, 9 Oct 2020 15:35:06 +0000 (UTC)
commit 19b12e762adb6ec958e034306fbac40f04d8fdd0
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Mar 27 19:04:17 2020 +0100
Widgets are visible.
src/gnome-mahjongg.vala | 3 +--
src/score-dialog.vala | 6 ------
2 files changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index faf6621..246be98 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -177,7 +177,6 @@ public class Mahjongg : Gtk.Application
vbox.append (game_view);
window.set_child (vbox);
- window.show_all ();
settings.changed.connect (conf_value_changed_cb);
@@ -516,7 +515,7 @@ public class Mahjongg : Gtk.Application
if (!dialogs_use_header)
preferences_dialog.add_button (_("_Close"), Gtk.ResponseType.CLOSE);
- preferences_dialog.show_all ();
+ preferences_dialog.present ();
}
private void preferences_dialog_response_cb (Gtk.Dialog dialog, int response)
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index 5d0cb6f..ddcb9b3 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -36,15 +36,12 @@ public class ScoreDialog : Gtk.Dialog
var vbox = new Gtk.Box (Gtk.Orientation.VERTICAL, 5);
vbox.border_width = 6;
- vbox.show ();
get_content_area ().append (vbox);
var hbox = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6);
- hbox.show ();
vbox.append (hbox);
var label = new Gtk.Label (_("Layout:"));
- label.show ();
hbox.append (label);
size_model = new Gtk.ListStore (2, typeof (string), typeof (string));
@@ -55,13 +52,11 @@ public class ScoreDialog : Gtk.Dialog
var renderer = new Gtk.CellRendererText ();
size_combo.pack_start (renderer, true);
size_combo.add_attribute (renderer, "text", 0);
- size_combo.show ();
hbox.append (size_combo);
var scroll = new Gtk.ScrolledWindow (null, null);
scroll.shadow_type = Gtk.ShadowType.ETCHED_IN;
scroll.set_policy (Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
- scroll.show ();
vbox.append (scroll);
score_model = new Gtk.ListStore (3, typeof (string), typeof (string), typeof (int));
@@ -73,7 +68,6 @@ public class ScoreDialog : Gtk.Dialog
renderer.xalign = 1.0f;
scores.insert_column_with_attributes (-1, _("Time"), renderer, "text", 1, "weight", 2);
scores.model = score_model;
- scores.show ();
scroll.add (scores);
foreach (var entry in history.entries)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]