[gnome-calculator/gnome-3-14: 17/19] Preferences: don't use GtkAlignment
- From: Arth Patel <arthpatel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator/gnome-3-14: 17/19] Preferences: don't use GtkAlignment
- Date: Sat, 25 Oct 2014 19:44:41 +0000 (UTC)
commit 546f9c3ff6a3cdb8bfa65fd7d5ff2afc0eb3fac6
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]