[nautilus] properties-window: use new NautilusMimeApplicationChooser API
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] properties-window: use new NautilusMimeApplicationChooser API
- Date: Wed, 1 Dec 2010 01:33:40 +0000 (UTC)
commit f83be2507361b337fb7eaf59a50cdca7f49ca53c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Nov 23 17:53:15 2010 +0100
properties-window: use new NautilusMimeApplicationChooser API
src/file-manager/fm-properties-window.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c
index e10b024..16684f9 100644
--- a/src/file-manager/fm-properties-window.c
+++ b/src/file-manager/fm-properties-window.c
@@ -4822,28 +4822,25 @@ create_open_with_page (FMPropertiesWindow *window)
{
GtkWidget *vbox;
char *mime_type;
- char *uri;
+ char *uri = NULL;
+ GList *uris = NULL;
mime_type = nautilus_file_get_mime_type (get_target_file (window));
-
+
if (!is_multi_file_window (window)) {
uri = nautilus_file_get_uri (get_target_file (window));
if (uri == NULL) {
return;
}
- vbox = nautilus_mime_application_chooser_new (uri, mime_type);
-
- g_free (uri);
} else {
- GList *uris;
-
uris = window->details->original_files;
if (uris == NULL) {
return;
}
- vbox = nautilus_mime_application_chooser_new_for_multiple_files (uris, mime_type);
}
-
+
+ vbox = nautilus_mime_application_chooser_new (uri, uris, mime_type);
+
gtk_widget_show (vbox);
g_free (mime_type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]