aboutsummaryrefslogtreecommitdiff
path: root/src/idoscalemenuitem.c
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-06-01 15:36:43 -0400
committerMichael Terry <mike@mterry.name>2011-06-01 15:36:43 -0400
commitab8fccf9bf24c05a20f9bbd14fad1afc4a62873e (patch)
tree0e7721a9171647957debe91c9a6ba7a66ee71e61 /src/idoscalemenuitem.c
parentd9ec4cfedc5d542c7389cad31b33613de3882fd4 (diff)
downloadayatana-ido-ab8fccf9bf24c05a20f9bbd14fad1afc4a62873e.tar.gz
ayatana-ido-ab8fccf9bf24c05a20f9bbd14fad1afc4a62873e.tar.bz2
ayatana-ido-ab8fccf9bf24c05a20f9bbd14fad1afc4a62873e.zip
fix various unused-variable warnings; not directly related to gtk3 work, but helps focus on actual problems
Diffstat (limited to 'src/idoscalemenuitem.c')
-rw-r--r--src/idoscalemenuitem.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/idoscalemenuitem.c b/src/idoscalemenuitem.c
index 6b1189b..720deb9 100644
--- a/src/idoscalemenuitem.c
+++ b/src/idoscalemenuitem.c
@@ -470,11 +470,9 @@ ido_scale_menu_item_button_press_event (GtkWidget *menuitem,
{
IdoScaleMenuItemPrivate *priv = GET_PRIVATE (menuitem);
GtkWidget *scale = priv->scale;
- GtkWidget *parent;
gdouble x;
// can we block emissions of "grab-notify" on parent??
- parent = gtk_widget_get_parent (GTK_WIDGET (menuitem));
translate_event_coordinates (menuitem, event->x, &x);
event->x = x;
@@ -689,11 +687,11 @@ ido_scale_menu_item_new_with_range (const gchar *label,
{
GtkWidget *adjustment = gtk_adjustment_new (value, min, max, step, 10 * step, 0);
- return g_object_new (IDO_TYPE_SCALE_MENU_ITEM,
- "label", label,
- "range-style", range_style,
- "adjustment", adjustment,
- NULL);
+ return GTK_WIDGET (g_object_new (IDO_TYPE_SCALE_MENU_ITEM,
+ "label", label,
+ "range-style", range_style,
+ "adjustment", adjustment,
+ NULL));
}
/**