[Spice-devel] [PATCH spice-gtk] Get rid of redundant argument
Zeeshan Ali (Khattak)
zeeshanak at gnome.org
Tue May 24 13:44:43 PDT 2011
---
gtk/spicy.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gtk/spicy.c b/gtk/spicy.c
index 262d465..bfa8189 100644
--- a/gtk/spicy.c
+++ b/gtk/spicy.c
@@ -184,7 +184,7 @@ static void recent_item_activated_dialog_cb(GtkRecentChooser *chooser, gpointer
}
#endif
-static int connect_dialog(GtkWidget *parent, SpiceSession *session)
+static int connect_dialog(SpiceSession *session)
{
GtkWidget *dialog, *area, *label;
GtkTable *table;
@@ -193,7 +193,7 @@ static int connect_dialog(GtkWidget *parent, SpiceSession *session)
/* Create the widgets */
dialog = gtk_dialog_new_with_buttons(_("Connect to SPICE"),
- parent ? GTK_WINDOW(parent) : NULL,
+ NULL,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_OK,
GTK_RESPONSE_ACCEPT,
@@ -1096,7 +1096,7 @@ static void main_channel_event(SpiceChannel *channel, SpiceChannelEvent event,
case SPICE_CHANNEL_ERROR_LINK:
case SPICE_CHANNEL_ERROR_CONNECT:
g_message("main channel: failed to connect");
- rc = connect_dialog(NULL, conn->session);
+ rc = connect_dialog(conn->session);
if (rc == 0) {
connection_connect(conn);
} else {
--
1.7.5.1
More information about the Spice-devel
mailing list