[brasero] brasero-tool-dialog: don't populate the model until after construction



commit 90becfbad23f7a23237d81df8ddafa4f6f6cc384
Author: Joshua Lock <joshua lock intel com>
Date:   Fri Nov 22 11:16:30 2013 +0000

    brasero-tool-dialog: don't populate the model until after construction
    
    As has been done for other BraseroMediumSelection subclasses, works around
    a drawing issue.

 libbrasero-burn/brasero-tool-dialog.c |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)
---
diff --git a/libbrasero-burn/brasero-tool-dialog.c b/libbrasero-burn/brasero-tool-dialog.c
index c7dc681..df5dccf 100644
--- a/libbrasero-burn/brasero-tool-dialog.c
+++ b/libbrasero-burn/brasero-tool-dialog.c
@@ -506,6 +506,20 @@ brasero_tool_dialog_finalize (GObject *object)
 }
 
 static void
+brasero_tool_dialog_constructed (GObject *object)
+{
+       BraseroToolDialogPrivate *priv;
+
+       priv = BRASERO_TOOL_DIALOG_PRIVATE (object);
+
+       brasero_medium_selection_show_media_type (BRASERO_MEDIUM_SELECTION (priv->selector),
+                                                 BRASERO_MEDIA_TYPE_REWRITABLE |
+                                                 BRASERO_MEDIA_TYPE_WRITABLE |
+                                                 BRASERO_MEDIA_TYPE_AUDIO |
+                                                 BRASERO_MEDIA_TYPE_DATA);
+}
+
+static void
 brasero_tool_dialog_class_init (BraseroToolDialogClass *klass)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
@@ -515,6 +529,7 @@ brasero_tool_dialog_class_init (BraseroToolDialogClass *klass)
 
        parent_class = g_type_class_peek_parent(klass);
        object_class->finalize = brasero_tool_dialog_finalize;
+       object_class->constructed = brasero_tool_dialog_constructed;
 
        widget_class->delete_event = brasero_tool_dialog_delete;
 }
@@ -544,12 +559,6 @@ brasero_tool_dialog_init (BraseroToolDialog *obj)
                            FALSE, FALSE, 0);
        g_free (title_str);
 
-       brasero_medium_selection_show_media_type (BRASERO_MEDIUM_SELECTION (priv->selector),
-                                                 BRASERO_MEDIA_TYPE_REWRITABLE|
-                                                 BRASERO_MEDIA_TYPE_WRITABLE|
-                                                 BRASERO_MEDIA_TYPE_AUDIO|
-                                                 BRASERO_MEDIA_TYPE_DATA);
-
        content_area = gtk_dialog_get_content_area (GTK_DIALOG (obj));
        gtk_box_pack_start (GTK_BOX (content_area),
                            priv->upper_box,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]