[totem] Remove GSettings from BaconVideoWidget
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] Remove GSettings from BaconVideoWidget
- Date: Wed, 15 Dec 2010 22:40:57 +0000 (UTC)
commit 16538f22c7167c7dbb6dcbbbf205d6ebb2d7cacd
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Dec 15 22:27:32 2010 +0000
Remove GSettings from BaconVideoWidget
The last few straggly bits seem to be relics of the original port to
GSettings.
src/backend/bacon-video-widget-gst-0.10.c | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 208a5b6..bf55ad7 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -245,8 +245,6 @@ struct BaconVideoWidgetPrivate
GstMessageType ignore_messages_mask;
- GSettings *settings;
-
GstBus *bus;
gulong sig_bus_sync;
gulong sig_bus_async;
@@ -3325,7 +3323,6 @@ bacon_video_widget_set_connection_speed (BaconVideoWidget * bvw, int speed)
if (bvw->priv->connection_speed != speed) {
bvw->priv->connection_speed = speed;
- g_settings_set_enum (bvw->priv->settings, "connection-speed", speed);
g_object_notify (G_OBJECT (bvw), "connection-speed");
}
@@ -4915,8 +4912,7 @@ setup_vis_find_factory (BaconVideoWidget * bvw, const gchar * vis_name)
/* set to long name as key so that the preferences dialog gets it right */
if (f && strcmp (vis_name, GST_PLUGIN_FEATURE_NAME (f)) == 0) {
- g_settings_set_string (bvw->priv->settings, "visualization-name",
- gst_element_factory_get_longname (f));
+ bacon_video_widget_set_visualization (bvw, gst_element_factory_get_longname (f));
fac = f;
goto done;
}
@@ -6826,7 +6822,6 @@ bacon_video_widget_new (int width, int height,
GstElement *audio_sink = NULL, *video_sink = NULL;
gchar *version_str;
GstPlayFlags flags;
- gint value;
#ifndef GST_DISABLE_GST_DEBUG
if (_totem_gst_debug_cat == NULL) {
@@ -6895,9 +6890,6 @@ bacon_video_widget_new (int width, int height,
bvw->priv->logo_mode = FALSE;
bvw->priv->auto_resize = FALSE;
- /* GSettings setting in backend */
- bvw->priv->settings = g_settings_new ("org.gnome.totem");
-
if (type == BVW_USE_TYPE_VIDEO || type == BVW_USE_TYPE_AUDIO) {
audio_sink = gst_element_factory_make ("gconfaudiosink", "audio-sink");
if (audio_sink == NULL) {
@@ -7124,15 +7116,6 @@ bacon_video_widget_new (int width, int height,
G_CALLBACK (got_new_video_sink_bin_element), bvw);
}
- /* tv/conn (not used yet) */
- value = g_settings_get_enum (bvw->priv->settings, "connection-speed");
- if (value > 0) {
- bacon_video_widget_set_connection_speed (bvw, value);
- } else {
- bacon_video_widget_set_connection_speed (bvw,
- bvw->priv->connection_speed);
- }
-
return GTK_WIDGET (bvw);
/* errors */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]