[gnome-commander] Moved gnome_cmd_app_get_default_application() -> gnome_cmd_file_get_default_application()



commit e654e8bfc4616a615fa8525986e79bb3a164c10d
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Jun 6 22:01:33 2010 +0200

    Moved gnome_cmd_app_get_default_application() -> gnome_cmd_file_get_default_application()

 src/gnome-cmd-app.h                |    5 -----
 src/gnome-cmd-file-popmenu.cc      |    2 +-
 src/gnome-cmd-file-props-dialog.cc |    2 +-
 src/gnome-cmd-file.h               |    5 +++++
 4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-app.h b/src/gnome-cmd-app.h
index 3dc0840..d271091 100644
--- a/src/gnome-cmd-app.h
+++ b/src/gnome-cmd-app.h
@@ -86,9 +86,4 @@ void gnome_cmd_app_set_requires_terminal (GnomeCmdApp *app, gboolean requires_te
 
 GnomeCmdPixmap *gnome_cmd_app_get_pixmap (GnomeCmdApp *app);
 
-inline GnomeVFSMimeApplication *gnome_cmd_app_get_default_application (GnomeCmdFile *f)
-{
-    return f && f->info->mime_type ? gnome_vfs_mime_get_default_application (f->info->mime_type) : NULL;
-}
-
 #endif // __GNOME_CMD_APP_H__
diff --git a/src/gnome-cmd-file-popmenu.cc b/src/gnome-cmd-file-popmenu.cc
index d2188c6..a743914 100644
--- a/src/gnome-cmd-file-popmenu.cc
+++ b/src/gnome-cmd-file-popmenu.cc
@@ -93,7 +93,7 @@ static void cb_exec_default (GtkMenuItem *menu_item, GList *files)
     for (; files; files = files->next)
     {
         GnomeCmdFile *f = (GnomeCmdFile *) files->data;
-        GnomeVFSMimeApplication *vfs_app = gnome_cmd_app_get_default_application (f);
+        GnomeVFSMimeApplication *vfs_app = gnome_cmd_file_get_default_application (f);
 
         if (vfs_app)
         {
diff --git a/src/gnome-cmd-file-props-dialog.cc b/src/gnome-cmd-file-props-dialog.cc
index b32ffb5..b6525c4 100644
--- a/src/gnome-cmd-file-props-dialog.cc
+++ b/src/gnome-cmd-file-props-dialog.cc
@@ -468,7 +468,7 @@ inline GtkWidget *create_properties_tab (GnomeCmdFilePropsDialogPrivate *data)
         label = create_bold_label (dialog, _("Opens with:"));
         table_add (table, label, 0, y, GTK_FILL);
 
-        GnomeVFSMimeApplication *vfs_app = gnome_cmd_app_get_default_application (data->f);
+        GnomeVFSMimeApplication *vfs_app = gnome_cmd_file_get_default_application (data->f);
 
         if (vfs_app)
         {
diff --git a/src/gnome-cmd-file.h b/src/gnome-cmd-file.h
index c323ec4..6af55ee 100644
--- a/src/gnome-cmd-file.h
+++ b/src/gnome-cmd-file.h
@@ -138,4 +138,9 @@ gboolean gnome_cmd_file_needs_update (GnomeCmdFile *f);
 void gnome_cmd_file_invalidate_tree_size (GnomeCmdFile *f);
 gboolean gnome_cmd_file_has_tree_size (GnomeCmdFile *f);
 
+inline GnomeVFSMimeApplication *gnome_cmd_file_get_default_application (GnomeCmdFile *f)
+{
+    return f && f->info->mime_type ? gnome_vfs_mime_get_default_application (f->info->mime_type) : NULL;
+}
+
 #endif // __GNOME_CMD_FILE_H__



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