summaryrefslogtreecommitdiff
path: root/endless
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-09-28 11:34:34 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2013-09-28 11:34:34 +0100
commit4aedf0e09caa61de0aca14b165f65ac84d996095 (patch)
treea770a467de5b2020b4cd77376a802c7c6b405ab4 /endless
parentd28f064c680ef0d11d0ae6607920582eb8cf4cf9 (diff)
Remove unused arguments
Also, do not cast from the macro otherwise, once we drop the macro, we'll have to modify the call site to do the cast anyway.
Diffstat (limited to 'endless')
-rw-r--r--endless/eoswindow.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/endless/eoswindow.c b/endless/eoswindow.c
index 8daffea..5364b49 100644
--- a/endless/eoswindow.c
+++ b/endless/eoswindow.c
@@ -569,7 +569,7 @@ eos_window_class_init (EosWindowClass *klass)
}
#if GTK_CHECK_VERSION (3, 10, 0)
-#define our_window_close(w) gtk_window_close (GTK_WINDOW (w))
+#define our_window_close(w) gtk_window_close (w)
#else
static gboolean
queue_close (gpointer user_data)
@@ -589,9 +589,9 @@ queue_close (gpointer user_data)
}
static void
-our_window_close (GtkWidget *window)
+our_window_close (GtkWindow *window)
{
- if (!gtk_widget_get_realized (window))
+ if (!gtk_widget_get_realized (GTK_WIDGET (window)))
return;
gdk_threads_add_idle (queue_close, window);
@@ -599,8 +599,7 @@ our_window_close (GtkWidget *window)
#endif /* GTK_CHECK_VERSION (3, 10, 0) */
static void
-on_minimize_clicked_cb (GtkWidget* top_bar,
- gpointer user_data)
+on_minimize_clicked_cb (GtkWidget* top_bar)
{
GtkWidget *window = gtk_widget_get_toplevel (top_bar);
@@ -608,12 +607,11 @@ on_minimize_clicked_cb (GtkWidget* top_bar,
}
static void
-on_close_clicked_cb (GtkWidget* top_bar,
- gpointer user_data)
+on_close_clicked_cb (GtkWidget* top_bar)
{
GtkWidget *window = gtk_widget_get_toplevel (top_bar);
- our_window_close (window);
+ our_window_close (GTK_WINDOW (window));
}
/* Make sure that the edge finishing does not catch input events */
@@ -704,9 +702,9 @@ eos_window_init (EosWindow *self)
gtk_window_maximize (GTK_WINDOW (self));
g_signal_connect (self->priv->top_bar, "minimize-clicked",
- G_CALLBACK (on_minimize_clicked_cb), self);
+ G_CALLBACK (on_minimize_clicked_cb), NULL);
g_signal_connect (self->priv->top_bar, "close-clicked",
- G_CALLBACK (on_close_clicked_cb), self);
+ G_CALLBACK (on_close_clicked_cb), NULL);
eos_window_set_page_manager (self,
EOS_PAGE_MANAGER (eos_page_manager_new ()));