[hyena] Make HigMessageDialog more extensible
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Make HigMessageDialog more extensible
- Date: Wed, 26 May 2010 02:44:09 +0000 (UTC)
commit ab7ca9cb8ea941038e9f6b448508242b7b61287b
Author: Gabriel Burt <gabriel burt gmail com>
Date: Thu May 13 16:37:21 2010 -0700
Make HigMessageDialog more extensible
Change the LabelVBox it exposes to be one with 12px spacing, so you can
add widgetry below the message label at the proper spacing.
src/Hyena.Gui/Hyena.Widgets/HigMessageDialog.cs | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/Hyena.Gui/Hyena.Widgets/HigMessageDialog.cs b/src/Hyena.Gui/Hyena.Widgets/HigMessageDialog.cs
index 338dc8e..fb3f609 100644
--- a/src/Hyena.Gui/Hyena.Widgets/HigMessageDialog.cs
+++ b/src/Hyena.Gui/Hyena.Widgets/HigMessageDialog.cs
@@ -33,6 +33,7 @@ namespace Hyena.Widgets
public class HigMessageDialog : Gtk.Dialog
{
private Gtk.Image image;
+ private Gtk.VBox inner_vbox;
private Gtk.VBox label_vbox;
private Gtk.Label message_label;
@@ -79,9 +80,13 @@ namespace Hyena.Widgets
image.Show ();
hbox.PackStart (image, false, false, 0);
+ inner_vbox = new Gtk.VBox (false, 12);
+ inner_vbox.Show ();
+ hbox.PackStart (inner_vbox, true, true, 0);
+
label_vbox = new Gtk.VBox (false, 0);
label_vbox.Show ();
- hbox.PackStart (label_vbox, true, true, 0);
+ inner_vbox.PackStart (label_vbox, true, true, 0);
string title = String.Format ("<span weight='bold' size='larger'>{0}" +
"</span>\n",
@@ -226,7 +231,7 @@ namespace Hyena.Widgets
}
public Gtk.VBox LabelVBox {
- get { return label_vbox; }
+ get { return inner_vbox; }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]