[totem] main: Remove get_version() method



commit 0cf568f09ec7aff413ab806827627931c9944f2d
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jul 9 10:16:56 2013 +0200

    main: Remove get_version() method

 src/plugins/dbusservice/dbusservice.py |    2 +-
 src/totem-object.c                     |   14 --------------
 src/totem.h                            |    1 -
 3 files changed, 1 insertions(+), 16 deletions(-)
---
diff --git a/src/plugins/dbusservice/dbusservice.py b/src/plugins/dbusservice/dbusservice.py
index 45758a9..e35a895 100644
--- a/src/plugins/dbusservice/dbusservice.py
+++ b/src/plugins/dbusservice/dbusservice.py
@@ -172,7 +172,7 @@ class Root (dbus.service.Object): # pylint: disable-msg=R0923,R0904
                 'CanQuit': True,
                 'CanRaise': True,
                 'HasTrackList': False,
-                'Identity': self.totem.get_version (),
+                'Identity': 'Videos',
                 'DesktopEntry': 'totem',
                 'SupportedUriSchemes': self.totem.get_supported_uri_schemes (),
                 'SupportedMimeTypes': self.totem.get_supported_content_types (),
diff --git a/src/totem-object.c b/src/totem-object.c
index cd28a80..9023886 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -602,20 +602,6 @@ totem_object_get_video_widget (TotemObject *totem)
 }
 
 /**
- * totem_object_get_version:
- *
- * Gets the application name and version (e.g. "Totem 2.28.0").
- *
- * Return value: a newly-allocated string of the name and version of the application
- **/
-char *
-totem_object_get_version (void)
-{
-       /* Translators: %s is the totem version number */
-       return g_strdup_printf (_("Totem %s"), VERSION);
-}
-
-/**
  * totem_object_get_current_time:
  * @totem: a #TotemObject
  *
diff --git a/src/totem.h b/src/totem.h
index c6aea9d..a30a9f7 100644
--- a/src/totem.h
+++ b/src/totem.h
@@ -195,7 +195,6 @@ void totem_object_empty_menu_section                (TotemObject *totem,
                                                 const char  *id);
 
 GtkWidget *totem_object_get_video_widget       (TotemObject *totem);
-char *totem_object_get_version                 (void);
 
 /* Current media information */
 char * totem_object_get_short_title            (TotemObject *totem);


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