[gimp] map-object: Fix aliasing warnings
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] map-object: Fix aliasing warnings
- Date: Thu, 21 Apr 2011 08:27:38 +0000 (UTC)
commit dcd447f5836529ab8503db7d542dabc13e2876dc
Author: Mukund Sivaraman <muks banu com>
Date: Thu Apr 21 11:08:29 2011 +0530
map-object: Fix aliasing warnings
plug-ins/map-object/map-object-ui.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/map-object/map-object-ui.c b/plug-ins/map-object/map-object-ui.c
index 1ce398c..adef1ec 100644
--- a/plug-ins/map-object/map-object-ui.c
+++ b/plug-ins/map-object/map-object-ui.c
@@ -138,8 +138,12 @@ static void
lightmenu_callback (GtkWidget *widget,
gpointer data)
{
+ int active;
+
gimp_int_combo_box_get_active (GIMP_INT_COMBO_BOX (widget),
- (gint *) &mapvals.lightsource.type);
+ &active);
+
+ mapvals.lightsource.type = active;
if (mapvals.lightsource.type == POINT_LIGHT)
{
@@ -172,8 +176,12 @@ static void
mapmenu_callback (GtkWidget *widget,
gpointer data)
{
+ int active;
+
gimp_int_combo_box_get_active (GIMP_INT_COMBO_BOX (widget),
- (gint *) &mapvals.maptype);
+ &active);
+
+ mapvals.maptype = active;
if (mapvals.livepreview)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]