diff options
author | Benjamin Otte <otte@gnome.org> | 2007-10-21 17:41:29 +0200 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2007-10-21 17:41:29 +0200 |
commit | 3c19a8a5d83031f977be8d8ea84b55d3137f0dd7 (patch) | |
tree | 1d956af12ea86fff7e5849d12735801fe958d61d /player | |
parent | 40549d9d5a627ed1b5d1390229e18f607dcd57f6 (diff) |
create the object properly
Diffstat (limited to 'player')
-rw-r--r-- | player/swfdec-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/swfdec-window.c b/player/swfdec-window.c index 2a9dc1b..9ec867a 100644 --- a/player/swfdec-window.c +++ b/player/swfdec-window.c @@ -116,7 +116,7 @@ swfdec_window_new (const char *url) GError *error = NULL; SwfdecWindow *window; - window = g_slice_new0 (SwfdecWindow); + window = g_object_new (SWFDEC_TYPE_WINDOW, NULL); window->builder = gtk_builder_new (); gtk_builder_set_translation_domain (window->builder, GETTEXT_PACKAGE); if (!gtk_builder_add_from_file (window->builder, BUILDER_FILE, &error)) { |