[gtk+/gtk-2-16] Make GtkAssistant keep its padding when built with GtkBuilder
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/gtk-2-16] Make GtkAssistant keep its padding when built with GtkBuilder
- Date: Sat, 18 Apr 2009 14:44:20 -0400 (EDT)
commit c28fabe3f6bb42ed348e832469a8d10c0f64078a
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 18 14:42:43 2009 -0400
Make GtkAssistant keep its padding when built with GtkBuilder
---
gtk/gtkassistant.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index e469b5a..5da1e15 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -709,6 +709,7 @@ gtk_assistant_init (GtkAssistant *assistant)
priv = assistant->priv = GTK_ASSISTANT_GET_PRIVATE (assistant);
gtk_container_set_reallocate_redraws (GTK_CONTAINER (assistant), TRUE);
+ gtk_container_set_border_width (GTK_CONTAINER (assistant), 12);
gtk_widget_push_composite_child ();
@@ -1472,9 +1473,8 @@ gtk_assistant_new (void)
{
GtkWidget *assistant;
- assistant = g_object_new (GTK_TYPE_ASSISTANT,
- "border-width", 12,
- NULL);
+ assistant = g_object_new (GTK_TYPE_ASSISTANT, NULL);
+
return assistant;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]