[totem/gnome-2-32] Remove unused parameter from TotemOpenLocation



commit e915d9490e005a14b285a9257c9699e3e9f75a33
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Jul 2 09:24:56 2010 +0100

    Remove unused parameter from TotemOpenLocation
    
    Spotted by Alexander Saprykin <xelfium gmail com>. Closes: bgo#623127

 src/totem-object.c        |    2 +-
 src/totem-open-location.c |    6 ++----
 src/totem-open-location.h |    2 +-
 3 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 8faa9f6..3274d70 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1528,7 +1528,7 @@ totem_action_open_location (Totem *totem)
 		return;
 	}
 
-	totem->open_location = TOTEM_OPEN_LOCATION (totem_open_location_new (totem));
+	totem->open_location = TOTEM_OPEN_LOCATION (totem_open_location_new ());
 
 	g_signal_connect (G_OBJECT (totem->open_location), "delete-event",
 			G_CALLBACK (gtk_widget_destroy), NULL);
diff --git a/src/totem-open-location.c b/src/totem-open-location.c
index 0397634..5ec9a9d 100644
--- a/src/totem-open-location.c
+++ b/src/totem-open-location.c
@@ -160,8 +160,8 @@ uri_entry_changed_cb (GtkEditable *entry, GtkDialog *dialog)
 	gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_OK, sensitive);
 }
 
-GtkWidget*
-totem_open_location_new (Totem *totem)
+GtkWidget *
+totem_open_location_new (void)
 {
 	TotemOpenLocation *open_location;
 	char *clipboard_location;
@@ -169,8 +169,6 @@ totem_open_location_new (Totem *totem)
 	GtkTreeModel *model;
 	GList *recent_items, *streams_recent_items = NULL;
 
-	g_return_val_if_fail (TOTEM_IS_OBJECT (totem), NULL);
-
 	open_location = TOTEM_OPEN_LOCATION (g_object_new (TOTEM_TYPE_OPEN_LOCATION, NULL));
 
 	if (open_location->priv->uri_container == NULL) {
diff --git a/src/totem-open-location.h b/src/totem-open-location.h
index eaf3b1f..d5bda75 100644
--- a/src/totem-open-location.h
+++ b/src/totem-open-location.h
@@ -54,7 +54,7 @@ struct TotemOpenLocationClass {
 };
 
 GType totem_open_location_get_type		(void);
-GtkWidget *totem_open_location_new		(Totem *totem);
+GtkWidget *totem_open_location_new		(void);
 char *totem_open_location_get_uri		(TotemOpenLocation *open_location);
 
 G_END_DECLS



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