[gnome-commander] Removed broken configure MIME type feature from file properties dialog



commit e34386b2f89ff18812fd8e5b90f913e37851cf42
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Fri Feb 7 10:01:59 2014 +0100

    Removed broken configure MIME type feature from file properties dialog

 src/gnome-cmd-file-props-dialog.cc |   18 ------------------
 src/utils.cc                       |   16 ----------------
 src/utils.h                        |    1 -
 3 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/src/gnome-cmd-file-props-dialog.cc b/src/gnome-cmd-file-props-dialog.cc
index 6852b14..49ba462 100644
--- a/src/gnome-cmd-file-props-dialog.cc
+++ b/src/gnome-cmd-file-props-dialog.cc
@@ -182,22 +182,6 @@ static void do_calc_tree_size (GnomeCmdFilePropsDialogPrivate *data)
 }
 
 
-static void on_change_default_app (GtkButton *btn, GnomeCmdFilePropsDialogPrivate *data)
-{
-
-    edit_mimetypes (data->f->info->mime_type, TRUE);
-
-    GnomeVFSMimeApplication *vfs_app = gnome_vfs_mime_get_default_application (data->f->info->mime_type);
-
-    gchar *appname = vfs_app ? vfs_app->name : g_strdup (_("No default application registered"));
-
-    gtk_label_set_text (GTK_LABEL (data->app_label), appname);
-
-    if (vfs_app)
-        gnome_vfs_mime_application_free (vfs_app);
-}
-
-
 //----------------------------------------------------------------------------------
 
 
@@ -468,12 +452,10 @@ inline GtkWidget *create_properties_tab (GnomeCmdFilePropsDialogPrivate *data)
         else
             label = create_label (dialog, _("No default application registered"));
 
-        btn = create_button_with_data (dialog, _("_Change"), GTK_SIGNAL_FUNC (on_change_default_app), data);
         hbox = create_hbox (dialog, FALSE, 6);
         gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0);
         label = create_label (dialog, " ");
         gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
-        gtk_box_pack_start (GTK_BOX (hbox), btn, FALSE, TRUE, 0);
         table_add (table, hbox, 1, y++, GTK_FILL);
     }
 
diff --git a/src/utils.cc b/src/utils.cc
index c66dfca..b7fb816 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -1219,22 +1219,6 @@ gboolean create_dir_if_needed (const gchar *dpath)
 }
 
 
-void edit_mimetypes (const gchar *mime_type, gboolean blocking)
-{
-    if (!mime_type)
-        mime_type = "";
-
-    gchar *arg = g_shell_quote (mime_type);
-    gchar *cmd = g_strdup_printf ("gnome-file-types-properties %s\n", arg);
-    g_free (arg);
-    if (blocking)
-        system (cmd);
-    else
-        run_command (cmd);
-    g_free (cmd);
-}
-
-
 void fix_uri (GnomeVFSURI *uri)
 {
 #ifdef FIX_PW_HACK
diff --git a/src/utils.h b/src/utils.h
index 792d264..7ef9c49 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -229,7 +229,6 @@ GList *file_list_to_uri_list (GList *files);
 GList *file_list_to_info_list (GList *files);
 
 gboolean create_dir_if_needed (const gchar *dpath);
-void edit_mimetypes (const gchar *mime_type, gboolean blocking);
 void fix_uri (GnomeVFSURI *uri);
 
 inline gboolean uri_is_valid (const gchar *uri)


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