[totem] backend: Remove unused show-cursor property



commit 7c7c08bce6171abe43a6663a0a11e3b20c5fd6a9
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Apr 5 15:41:53 2013 +0200

    backend: Remove unused show-cursor property
    
    We only ever used bvw_set_show_cursor() to force showing/hiding
    a cursor.

 src/backend/bacon-video-widget.c |   35 -----------------------------------
 src/backend/bacon-video-widget.h |    1 -
 2 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 56832b8..273c109 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -144,7 +144,6 @@ enum
   PROP_PLAYING,
   PROP_REFERRER,
   PROP_SEEKABLE,
-  PROP_SHOW_CURSOR,
   PROP_SHOW_VISUALIZATIONS,
   PROP_USER_AGENT,
   PROP_VOLUME,
@@ -867,18 +866,6 @@ bacon_video_widget_class_init (BaconVideoWidgetClass * klass)
                                                         G_PARAM_STATIC_STRINGS));
 
   /**
-   * BaconVideoWidget:show-cursor:
-   *
-   * Whether the cursor should be shown, or should be invisible, when it is over
-   * the video widget.
-   **/
-  g_object_class_install_property (object_class, PROP_SHOW_CURSOR,
-                                   g_param_spec_boolean ("show-cursor", "Show cursor?",
-                                                         "Whether the cursor should be shown.", FALSE,
-                                                         G_PARAM_READWRITE |
-                                                         G_PARAM_STATIC_STRINGS));
-
-  /**
    * BaconVideoWidget:show-visualizations:
    *
    * Whether visualisations should be shown for audio-only streams.
@@ -2686,9 +2673,6 @@ bacon_video_widget_set_property (GObject * object, guint property_id,
     case PROP_REFERRER:
       bacon_video_widget_set_referrer (bvw, g_value_get_string (value));
       break;
-    case PROP_SHOW_CURSOR:
-      bacon_video_widget_set_show_cursor (bvw, g_value_get_boolean (value));
-      break;
     case PROP_SHOW_VISUALIZATIONS:
       bacon_video_widget_set_show_visualizations (bvw, g_value_get_boolean (value));
       break;
@@ -2755,9 +2739,6 @@ bacon_video_widget_get_property (GObject * object, guint property_id,
     case PROP_SEEKABLE:
       g_value_set_boolean (value, bacon_video_widget_is_seekable (bvw));
       break;
-    case PROP_SHOW_CURSOR:
-      g_value_set_boolean (value, bacon_video_widget_get_show_cursor (bvw));
-      break;
     case PROP_USER_AGENT:
       g_value_set_string (value, bvw->priv->user_agent);
       break;
@@ -4486,22 +4467,6 @@ bacon_video_widget_set_show_cursor (BaconVideoWidget * bvw,
   }
 }
 
-/**
- * bacon_video_widget_get_show_cursor:
- * @bvw: a #BaconVideoWidget
- *
- * Returns whether the cursor is shown when it is over the video widget.
- *
- * Return value: %TRUE if the cursor is shown, %FALSE otherwise
- **/
-gboolean
-bacon_video_widget_get_show_cursor (BaconVideoWidget * bvw)
-{
-  g_return_val_if_fail (BACON_IS_VIDEO_WIDGET (bvw), FALSE);
-
-  return bvw->priv->cursor_shown;
-}
-
 static struct {
        int height;
        int fps;
diff --git a/src/backend/bacon-video-widget.h b/src/backend/bacon-video-widget.h
index 1b305b6..746f215 100644
--- a/src/backend/bacon-video-widget.h
+++ b/src/backend/bacon-video-widget.h
@@ -173,7 +173,6 @@ gboolean bacon_video_widget_get_logo_mode    (BaconVideoWidget *bvw);
 
 void bacon_video_widget_set_show_cursor          (BaconVideoWidget *bvw,
                                                  gboolean show_cursor);
-gboolean bacon_video_widget_get_show_cursor      (BaconVideoWidget *bvw);
 
 void bacon_video_widget_set_subtitle_font       (BaconVideoWidget *bvw,
                                                  const char *font);


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