gimp r27689 - trunk/app/core
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27689 - trunk/app/core
- Date: Wed, 19 Nov 2008 23:37:15 +0000 (UTC)
Author: mitch
Date: Wed Nov 19 23:37:15 2008
New Revision: 27689
URL: http://svn.gnome.org/viewvc/gimp?rev=27689&view=rev
Log:
2008-11-20 Michael Natterer <mitch gimp org>
* app/core/gimplayer.c: add read-only "mask" property.
Modified:
trunk/app/core/gimplayer.c
Modified: trunk/app/core/gimplayer.c
==============================================================================
--- trunk/app/core/gimplayer.c (original)
+++ trunk/app/core/gimplayer.c Wed Nov 19 23:37:15 2008
@@ -70,6 +70,7 @@
PROP_OPACITY,
PROP_MODE,
PROP_LOCK_ALPHA,
+ PROP_MASK,
PROP_FLOATING_SELECTION
};
@@ -297,6 +298,12 @@
FALSE,
GIMP_PARAM_READABLE));
+ g_object_class_install_property (object_class, PROP_MASK,
+ g_param_spec_object ("mask",
+ NULL, NULL,
+ GIMP_TYPE_LAYER_MASK,
+ GIMP_PARAM_READABLE));
+
g_object_class_install_property (object_class, PROP_FLOATING_SELECTION,
g_param_spec_boolean ("floating-selection",
NULL, NULL,
@@ -359,6 +366,9 @@
case PROP_LOCK_ALPHA:
g_value_set_boolean (value, gimp_layer_get_lock_alpha (layer));
break;
+ case PROP_MASK:
+ g_value_set_object (value, gimp_layer_get_mask (layer));
+ break;
case PROP_FLOATING_SELECTION:
g_value_set_boolean (value, gimp_layer_is_floating_sel (layer));
break;
@@ -1343,6 +1353,8 @@
g_signal_emit (layer, layer_signals[MASK_CHANGED], 0);
+ g_object_notify (G_OBJECT (layer), "mask");
+
return layer->mask;
}
@@ -1672,6 +1684,8 @@
}
g_signal_emit (layer, layer_signals[MASK_CHANGED], 0);
+
+ g_object_notify (G_OBJECT (layer), "mask");
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]