[gbrainy/gbrainy3] Remove deprecated Widgets in PlayerHistoryDialog
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy/gbrainy3] Remove deprecated Widgets in PlayerHistoryDialog
- Date: Sun, 14 Dec 2014 14:28:08 +0000 (UTC)
commit 62ba8bf58fbc1975e5accfc27ec90f04512cf65a
Author: Jordi Mas <jmas softcatala org>
Date: Sun Dec 14 09:27:59 2014 -0500
Remove deprecated Widgets in PlayerHistoryDialog
.../Classical/Dialogs/PlayerHistoryDialog.cs | 3 ++-
.../Classical/Dialogs/ui/PlayerHistoryDialog.ui | 8 +++++---
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/Clients/Classical/Dialogs/PlayerHistoryDialog.cs
b/src/Clients/Classical/Dialogs/PlayerHistoryDialog.cs
index af6611f..eaaddb4 100644
--- a/src/Clients/Classical/Dialogs/PlayerHistoryDialog.cs
+++ b/src/Clients/Classical/Dialogs/PlayerHistoryDialog.cs
@@ -61,6 +61,7 @@ namespace gbrainy.Clients.Classical.Dialogs
label_playerhistory.Text = String.Format (Catalog.GetString ("{0} {1}"), intro,
built);
drawing_area = new CairoPreview (translations, history);
+ drawing_area.SetSizeRequest (history_preview.WidthRequest, history_preview.HeightRequest);
history_preview.Add (drawing_area);
drawing_area.Visible = true;
@@ -126,7 +127,7 @@ namespace gbrainy.Clients.Classical.Dialogs
CairoContextEx cr = new CairoContextEx (cc.Handle);
cr.PangoFontDescription = PangoContext.FontDescription;
- w = Window.Width;
+ w = Window.Width;
h = Window.Height;
nh = nw = Math.Min (w, h);
diff --git a/src/Clients/Classical/Dialogs/ui/PlayerHistoryDialog.ui
b/src/Clients/Classical/Dialogs/ui/PlayerHistoryDialog.ui
index 41fce92..327a8e9 100644
--- a/src/Clients/Classical/Dialogs/ui/PlayerHistoryDialog.ui
+++ b/src/Clients/Classical/Dialogs/ui/PlayerHistoryDialog.ui
@@ -44,10 +44,11 @@
</packing>
</child>
<child>
- <object class="GtkVBox" id="players_vbox">
+ <object class="GtkBox" id="players_vbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">5</property>
+ <property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="label_playerhistory">
<property name="width_request">500</property>
@@ -65,10 +66,11 @@
</packing>
</child>
<child>
- <object class="GtkVBox" id="history_preview">
+ <object class="GtkBox" id="history_preview">
<property name="height_request">500</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
<child>
<placeholder/>
</child>
@@ -80,7 +82,7 @@
</packing>
</child>
<child>
- <object class="GtkHBox" id="hbox10">
+ <object class="GtkBox" id="hbox10">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">5</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]