[vinagre/gnome-3-8] Revert "implement recognize_file() in VNC plugin"



commit e26a1fda514960967a934e1fa24b0d077d7d8d94
Author: David King <amigadave amigadave com>
Date:   Tue Jul 23 15:27:04 2013 +0100

    Revert "implement recognize_file() in VNC plugin"
    
    This reverts commit dc0b73db658b01709918db59705a1cfd3c3167f7.

 plugins/vnc/vinagre-vnc-plugin.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/plugins/vnc/vinagre-vnc-plugin.c b/plugins/vnc/vinagre-vnc-plugin.c
index d77140f..5b5153c 100644
--- a/plugins/vnc/vinagre-vnc-plugin.c
+++ b/plugins/vnc/vinagre-vnc-plugin.c
@@ -210,21 +210,6 @@ the_end:
 
 }
 
-static gboolean
-impl_recognize_file (VinagreProtocol *plugin, GFile *file)
-{
-  gboolean result = FALSE;
-  gchar *filename = g_file_get_basename (file);
-
-  if (filename)
-    {
-      result = g_str_has_suffix (filename, ".vnc");
-      g_free (filename);
-    }
-
-  return result;
-}
-
 static GtkWidget *
 impl_new_tab (VinagreProtocol *plugin,
              VinagreConnection *conn,
@@ -419,7 +404,6 @@ vinagre_vnc_protocol_iface_init (VinagreProtocolInterface *iface)
   iface->get_public_description  = impl_get_public_description;
   iface->new_connection = impl_new_connection;
   iface->new_connection_from_file = impl_new_connection_from_file;
-  iface->recognize_file = impl_recognize_file;
   iface->get_mdns_service  = impl_get_mdns_service;
   iface->new_tab = impl_new_tab;
   iface->get_connect_widget = impl_get_connect_widget;


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