[libgd] gd-stack: Remove some initializations
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd] gd-stack: Remove some initializations
- Date: Wed, 27 Feb 2013 08:20:06 +0000 (UTC)
commit 83d366e6281bef597dbc33072aa57864b1b61809
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Feb 26 16:59:42 2013 -0500
gd-stack: Remove some initializations
As the properties that govern these are CONSTRUCT properties,
gobject will set the defaults for us.
https://bugzilla.gnome.org/show_bug.cgi?id=694769
libgd/gd-stack.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/libgd/gd-stack.c b/libgd/gd-stack.c
index 2f7bc24..8bdb0a4 100644
--- a/libgd/gd-stack.c
+++ b/libgd/gd-stack.c
@@ -135,12 +135,7 @@ G_DEFINE_TYPE(GdStack, gd_stack, GTK_TYPE_CONTAINER);
static void
gd_stack_init (GdStack *stack)
{
- GdStackPrivate *priv;
-
- priv = GD_STACK_GET_PRIVATE (stack);
- stack->priv = priv;
- priv->transition_duration = 200;
- priv->homogeneous = TRUE;
+ stack->priv = GD_STACK_GET_PRIVATE (stack);
gtk_widget_set_has_window ((GtkWidget*) stack, FALSE);
gtk_widget_set_redraw_on_allocate ((GtkWidget*) stack, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]