diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-01-24 15:48:29 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-01-24 15:48:29 +0800 |
commit | 8f5d78b5757f68d5f2ed5aee9017996f0d365062 (patch) | |
tree | 89ef2a4daadc4513db2491fbaabb8050e694b956 /sysutils/gnomecontrolcenter2/files | |
parent | aa318aba4295d3e44fd501a1161224a210fa83e6 (diff) | |
download | marcuscom-ports-8f5d78b5757f68d5f2ed5aee9017996f0d365062.tar marcuscom-ports-8f5d78b5757f68d5f2ed5aee9017996f0d365062.tar.gz marcuscom-ports-8f5d78b5757f68d5f2ed5aee9017996f0d365062.tar.bz2 marcuscom-ports-8f5d78b5757f68d5f2ed5aee9017996f0d365062.tar.lz marcuscom-ports-8f5d78b5757f68d5f2ed5aee9017996f0d365062.tar.xz marcuscom-ports-8f5d78b5757f68d5f2ed5aee9017996f0d365062.tar.zst marcuscom-ports-8f5d78b5757f68d5f2ed5aee9017996f0d365062.zip |
Fix a crash when trying to launch gnome-file-types-capplet with an unknown
MIME type argument.
Reported by: Simon Barner <barner@in.tum.de>
Obtained from: GNOME CVS
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1710 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/gnomecontrolcenter2/files')
-rw-r--r-- | sysutils/gnomecontrolcenter2/files/patch-capplets_file-types_mime-edit-dialog.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sysutils/gnomecontrolcenter2/files/patch-capplets_file-types_mime-edit-dialog.c b/sysutils/gnomecontrolcenter2/files/patch-capplets_file-types_mime-edit-dialog.c new file mode 100644 index 000000000..dd8279ca3 --- /dev/null +++ b/sysutils/gnomecontrolcenter2/files/patch-capplets_file-types_mime-edit-dialog.c @@ -0,0 +1,15 @@ +--- capplets/file-types/mime-edit-dialog.c.orig Sat Jan 24 02:41:49 2004 ++++ capplets/file-types/mime-edit-dialog.c Sat Jan 24 02:42:26 2004 +@@ -406,11 +406,8 @@ + char const *file_name) + { + 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); + if (parent != NULL) + gtk_window_set_transient_for ( + GTK_WINDOW (MIME_EDIT_DIALOG (dialog)->p->dialog_win), |