summaryrefslogtreecommitdiff
path: root/endless
diff options
context:
space:
mode:
authorPhilip Chimento <philip@endlessm.com>2014-01-17 18:34:00 -0200
committerPhilip Chimento <philip@endlessm.com>2014-01-17 18:34:00 -0200
commitc317a0c874c33872ca3c8d916393658ebefc390a (patch)
tree16f9f50026ab7732b106eea1c54f555bd9e30598 /endless
parentadd9956bde3185af9c9125278664c1006b884046 (diff)
Implement code review comments
Spacing fixes [endlessm/eos-sdk#477]
Diffstat (limited to 'endless')
-rw-r--r--endless/eostopbar.c2
-rw-r--r--endless/eoswindow.c23
2 files changed, 10 insertions, 15 deletions
diff --git a/endless/eostopbar.c b/endless/eostopbar.c
index 8da01e6..6d98090 100644
--- a/endless/eostopbar.c
+++ b/endless/eostopbar.c
@@ -143,7 +143,7 @@ on_minimize_clicked_cb (GtkButton *button,
static void
on_maximize_clicked_cb (GtkButton *button,
- gpointer user_data)
+ gpointer user_data)
{
EosTopBar *self = EOS_TOP_BAR (user_data);
g_signal_emit (self, top_bar_signals[MAXIMIZE_CLICKED], 0);
diff --git a/endless/eoswindow.c b/endless/eoswindow.c
index 361c6b9..6917a5a 100644
--- a/endless/eoswindow.c
+++ b/endless/eoswindow.c
@@ -703,19 +703,16 @@ eos_window_class_init (EosWindowClass *klass)
}
static void
-on_minimize_clicked_cb (GtkWidget* top_bar,
- gpointer data)
+on_minimize_clicked_cb (GtkWidget *top_bar,
+ EosWindow *self)
{
- EosWindow *self = (EosWindow *)data;
-
gtk_window_iconify (GTK_WINDOW (self));
}
static void
-on_maximize_clicked_cb (GtkWidget* top_bar,
- gpointer data)
+on_maximize_clicked_cb (GtkWidget *top_bar,
+ EosWindow *self)
{
- EosWindow *self = (EosWindow *)data;
EosWindowPrivate *priv = eos_window_get_instance_private (self);
if (priv->maximized)
@@ -725,21 +722,19 @@ on_maximize_clicked_cb (GtkWidget* top_bar,
}
static void
-on_close_clicked_cb (GtkWidget* top_bar,
- gpointer data)
+on_close_clicked_cb (GtkWidget *top_bar,
+ EosWindow *self)
{
- EosWindow *self = (EosWindow *)data;
-
gtk_window_close (GTK_WINDOW (self));
}
static void
-on_window_state_event_cb (GtkWidget* widget,
- GdkEvent* event)
+on_window_state_event_cb (GtkWidget *widget,
+ GdkEventWindowState *event)
{
EosWindow *self = EOS_WINDOW (widget);
EosWindowPrivate *priv = eos_window_get_instance_private (self);
- GdkWindowState window_state = ((GdkEventWindowState *)event)->new_window_state;
+ GdkWindowState window_state = event->new_window_state;
priv->maximized = window_state & GDK_WINDOW_STATE_MAXIMIZED;
}