summaryrefslogtreecommitdiff
path: root/endless/eosactionbutton.c
diff options
context:
space:
mode:
authorFelipe Erias Morandeira <femorandeira@igalia.com>2013-05-22 17:15:01 +0200
committerFelipe Erias Morandeira <femorandeira@igalia.com>2013-06-03 12:19:03 +0200
commit3758d16d0959a4d7e341708b4f9c39294b890356 (patch)
tree7f5da58304e1da313d280afc0b69bc41f65a90e2 /endless/eosactionbutton.c
parent23b29b307481a2a12bbf6b318a1b252e78de413b (diff)
A number of small fixes. Moved eosactionbutton.h to eosactionbutton-private.h
[endlessm/eos-sdk#30]
Diffstat (limited to 'endless/eosactionbutton.c')
-rw-r--r--endless/eosactionbutton.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/endless/eosactionbutton.c b/endless/eosactionbutton.c
index 26be229..d8279b4 100644
--- a/endless/eosactionbutton.c
+++ b/endless/eosactionbutton.c
@@ -1,7 +1,7 @@
/* Copyright 2013 Endless Mobile, Inc. */
#include "config.h"
-#include "eosactionbutton.h"
+#include "eosactionbutton-private.h"
#include <glib-object.h>
#include <gtk/gtk.h>
@@ -201,11 +201,11 @@ eos_action_button_new (EosActionButtonSize size,
const gchar *label,
const gchar *icon_id)
{
- return GTK_WIDGET (g_object_new (EOS_TYPE_ACTION_BUTTON,
- "size", size,
- "label", label,
- "icon-id", icon_id,
- NULL));
+ return g_object_new (EOS_TYPE_ACTION_BUTTON,
+ "size", size,
+ "label", label,
+ "icon-id", icon_id,
+ NULL);
}
static void
@@ -372,9 +372,9 @@ eos_action_button_get_icon_id (EosActionButton *button)
static void
eos_action_button_get_property (GObject *object,
- guint property_id,
- GValue *value,
- GParamSpec *pspec)
+ guint property_id,
+ GValue *value,
+ GParamSpec *pspec)
{
EosActionButton *button = EOS_ACTION_BUTTON (object);
EosActionButtonPrivate *priv = button->priv;
@@ -529,7 +529,7 @@ eos_action_button_draw (GtkWidget *widget,
x, y, width, height);
}
- // TODO fix this:
+ // TODO is it really needed to restore and save the cairo_t here?
cairo_restore (cr);
cairo_save (cr);
@@ -542,7 +542,7 @@ eos_action_button_draw (GtkWidget *widget,
gtk_widget_draw (GTK_WIDGET (priv->icon_image), cr);
- // TODO and this:
+ // TODO same as previous
cairo_restore (cr);
cairo_save (cr);