do not try to set construct only property after object is constructed.

2004-01-20 Sivaiah Nallagatla <snallagatla@novell.com>

        * mime-edit-dialog.c (mime_add_dialog_new ) : do not try to set
        construct only property after object is constructed. Fixes #128374
This commit is contained in:
Sivaiah Nallagatla 2004-01-20 07:47:18 +00:00 committed by Sivaiah Nallagatla
parent c57ad8cc5c
commit 667458e61b
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2004-01-20 Sivaiah Nallagatla <snallagatla@novell.com>
* mime-edit-dialog.c (mime_add_dialog_new ) : do not try to set
construct only property after object is constructed. Fixes #128374
2004-01-14 Jody Goldberg <jody@gnome.org> 2004-01-14 Jody Goldberg <jody@gnome.org>
* Release 2.5.2 * Release 2.5.2

View file

@ -406,11 +406,9 @@ mime_add_dialog_new (GtkTreeModel *model, GtkWindow *parent,
char const *file_name) char const *file_name)
{ {
GObject *dialog = g_object_new (mime_edit_dialog_get_type (), GObject *dialog = g_object_new (mime_edit_dialog_get_type (),
"model", model, /* must be before is-add */ "model", model, "is-add", TRUE, /* model must be before is-add */
NULL);
g_object_set (dialog,
"is-add", TRUE,
NULL); NULL);
if (parent != NULL) if (parent != NULL)
gtk_window_set_transient_for ( gtk_window_set_transient_for (
GTK_WINDOW (MIME_EDIT_DIALOG (dialog)->p->dialog_win), GTK_WINDOW (MIME_EDIT_DIALOG (dialog)->p->dialog_win),