diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2010-07-02 09:24:56 +0100 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2010-07-02 09:24:56 +0100 |
commit | 020d998824fd306109201a6a76e624233cdfb954 (patch) | |
tree | df6a076a54cfeb054b3f2bbee4df047eb4a514d6 | |
parent | bd3cd0446e0d4c29c8b511bd50c4cb4a4ffc2b7f (diff) | |
download | totem-020d998824fd306109201a6a76e624233cdfb954.tar.gz |
Remove unused parameter from TotemOpenLocation
Spotted by Alexander Saprykin <xelfium@gmail.com>. Closes: bgo#623127
-rw-r--r-- | src/totem-object.c | 2 | ||||
-rw-r--r-- | src/totem-open-location.c | 6 | ||||
-rw-r--r-- | 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 71238d9b1..88176fa32 100644 --- a/src/totem-object.c +++ b/src/totem-object.c @@ -1533,7 +1533,7 @@ totem_action_open_location (TotemObject *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 039763435..5ec9a9dee 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 eaf3b1fed..d5bda752d 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 |