[totem] Fix compilation warnings
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] Fix compilation warnings
- Date: Thu, 2 Sep 2010 18:29:10 +0000 (UTC)
commit f1e9c8a31a7fd516fd9647288024f8492ac116e8
Author: Bastien Nocera <hadess hadess net>
Date: Thu Sep 2 19:28:01 2010 +0100
Fix compilation warnings
And removed unused function.
src/backend/bacon-video-widget-gst-0.10.c | 10 +++++-----
src/totem-preferences.c | 28 ----------------------------
2 files changed, 5 insertions(+), 33 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 60ea4e1..b04f7f0 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -3385,8 +3385,8 @@ void
bacon_video_widget_set_audio_out_type (BaconVideoWidget *bvw,
BvwAudioOutType type)
{
- g_return_val_if_fail (bvw != NULL, FALSE);
- g_return_val_if_fail (BACON_IS_VIDEO_WIDGET (bvw), FALSE);
+ g_return_if_fail (bvw != NULL);
+ g_return_if_fail (BACON_IS_VIDEO_WIDGET (bvw));
if (type == bvw->priv->speakersetup)
return;
@@ -5025,9 +5025,9 @@ bacon_video_widget_get_visuals_list (BaconVideoWidget * bvw)
void
bacon_video_widget_set_visuals (BaconVideoWidget * bvw, const char *name)
{
- g_return_val_if_fail (bvw != NULL, FALSE);
- g_return_val_if_fail (BACON_IS_VIDEO_WIDGET (bvw), FALSE);
- g_return_val_if_fail (GST_IS_ELEMENT (bvw->priv->play), FALSE);
+ g_return_if_fail (bvw != NULL);
+ g_return_if_fail (BACON_IS_VIDEO_WIDGET (bvw));
+ g_return_if_fail (GST_IS_ELEMENT (bvw->priv->play));
if (bvw->priv->vis_element_name) {
if (strcmp (bvw->priv->vis_element_name, name) == 0) {
diff --git a/src/totem-preferences.c b/src/totem-preferences.c
index 2646380..89d78dc 100644
--- a/src/totem-preferences.c
+++ b/src/totem-preferences.c
@@ -65,34 +65,6 @@ G_MODULE_EXPORT void font_changed_cb (GConfClient *client, guint cnxn_id, GConfE
G_MODULE_EXPORT void encoding_changed_cb (GConfClient *client, guint cnxn_id, GConfEntry *entry, Totem *totem);
G_MODULE_EXPORT void auto_chapters_toggled_cb (GtkToggleButton *togglebutton, Totem *totem);
-static void
-totem_action_info (char *reason, Totem *totem)
-{
- GtkWidget *parent, *error_dialog;
-
- if (totem == NULL)
- parent = NULL;
- else
- parent = totem->prefs;
-
- error_dialog =
- gtk_message_dialog_new (GTK_WINDOW (parent),
- GTK_DIALOG_MODAL,
- GTK_MESSAGE_INFO,
- GTK_BUTTONS_OK,
- "%s", reason);
- gtk_container_set_border_width (GTK_CONTAINER (error_dialog), 5);
- gtk_dialog_set_default_response (GTK_DIALOG (error_dialog),
- GTK_RESPONSE_OK);
- g_signal_connect (G_OBJECT (error_dialog), "destroy", G_CALLBACK
- (gtk_widget_destroy), error_dialog);
- g_signal_connect (G_OBJECT (error_dialog), "response", G_CALLBACK
- (gtk_widget_destroy), error_dialog);
- gtk_window_set_modal (GTK_WINDOW (error_dialog), TRUE);
-
- gtk_widget_show (error_dialog);
-}
-
static gboolean
ask_show_visuals (Totem *totem)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]