[gnome-calculator] Preferences: don't use GtkAlignment
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Preferences: don't use GtkAlignment
- Date: Thu, 23 Oct 2014 04:00:23 +0000 (UTC)
commit 29d21d36b3900a562c065e8affa148e3c816a5d5
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Oct 22 22:57:38 2014 -0500
Preferences: don't use GtkAlignment
It is stupid and deprecated.
src/math-preferences.vala | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/math-preferences.vala b/src/math-preferences.vala
index cccc143..525082d 100644
--- a/src/math-preferences.vala
+++ b/src/math-preferences.vala
@@ -74,15 +74,13 @@ public class MathPreferencesDialog : Gtk.Dialog
number_format_combo.pack_start (renderer, true);
number_format_combo.add_attribute (renderer, "text", 0);
- var alignment = new Gtk.Alignment (0.5f, 0.5f, 1.0f, 1.0f);
- alignment.bottom_padding = 6;
- alignment.left_padding = 12;
- alignment.show ();
- grid.attach (alignment, 0, 1, 2, 1);
-
var format_options_box = new Gtk.Box (Gtk.Orientation.VERTICAL, 6);
+ format_options_box.margin_bottom = 6;
+ format_options_box.margin_start = 12;
+ format_options_box.halign = Gtk.Align.CENTER;
+ format_options_box.valign = Gtk.Align.CENTER;
format_options_box.show ();
- alignment.add (format_options_box);
+ grid.attach (format_options_box, 0, 1, 2, 1);
var places_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6);
places_box.show ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]