summaryrefslogtreecommitdiff
path: root/src/CustomComponents.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/CustomComponents.c')
-rw-r--r--src/CustomComponents.c1515
1 files changed, 760 insertions, 755 deletions
diff --git a/src/CustomComponents.c b/src/CustomComponents.c
index b9cd57e..80d8368 100644
--- a/src/CustomComponents.c
+++ b/src/CustomComponents.c
@@ -1,4 +1,4 @@
-/* CustomComponents.c generated by valac 0.34.7, the Vala compiler
+/* CustomComponents.c generated by valac 0.36.6, the Vala compiler
* generated from CustomComponents.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -69,6 +69,11 @@ typedef struct _RGBHistogramClass RGBHistogramClass;
#define RGB_HISTOGRAM_MANIPULATOR_TYPE_LOCATION_CODE (rgb_histogram_manipulator_location_code_get_type ())
#define _rgb_histogram_unref0(var) ((var == NULL) ? NULL : (var = (rgb_histogram_unref (var), NULL)))
+enum {
+ RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL,
+ RGB_HISTOGRAM_MANIPULATOR_LAST_SIGNAL
+};
+static guint rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_LAST_SIGNAL] = {0};
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
@@ -202,7 +207,7 @@ gboolean rgb_analytic_pixel_equals (RGBAnalyticPixel *self, RGBAnalyticPixel* rh
guint rgb_analytic_pixel_hash_code (RGBAnalyticPixel *self);
ThemeLoader* theme_loader_new (void);
ThemeLoader* theme_loader_construct (GType object_type);
-static void theme_loader_finalize (ThemeLoader* obj);
+static void theme_loader_finalize (ThemeLoader * obj);
GType rgb_histogram_manipulator_get_type (void) G_GNUC_CONST;
gpointer rgb_histogram_ref (gpointer instance);
void rgb_histogram_unref (gpointer instance);
@@ -251,13 +256,13 @@ gint rgb_histogram_manipulator_get_left_nub_position (RGBHistogramManipulator* s
gint rgb_histogram_manipulator_get_right_nub_position (RGBHistogramManipulator* self);
void rgb_histogram_manipulator_set_left_nub_position (RGBHistogramManipulator* self, gint user_nub_pos);
void rgb_histogram_manipulator_set_right_nub_position (RGBHistogramManipulator* self, gint user_nub_pos);
-static void rgb_histogram_manipulator_finalize (GObject* obj);
+static void rgb_histogram_manipulator_finalize (GObject * obj);
static gpointer _g_object_ref0 (gpointer self) {
#line 36 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return self ? g_object_ref (self) : NULL;
-#line 261 "CustomComponents.c"
+#line 266 "CustomComponents.c"
}
@@ -269,113 +274,113 @@ static GdkColor* _gdk_color_dup (GdkColor* self) {
memcpy (dup, self, sizeof (GdkColor));
#line 38 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return dup;
-#line 273 "CustomComponents.c"
+#line 278 "CustomComponents.c"
}
static gpointer __gdk_color_dup0 (gpointer self) {
#line 38 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return self ? _gdk_color_dup (self) : NULL;
-#line 280 "CustomComponents.c"
+#line 285 "CustomComponents.c"
}
static void theme_loader_populate_theme_params (void) {
- ThemeLoaderLightweightColor* _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
- ThemeLoaderLightweightColor* _tmp1_ = NULL;
+ ThemeLoaderLightweightColor* _tmp0_;
+ gint _tmp0__length1;
+ ThemeLoaderLightweightColor* _tmp1_;
GtkSettings* settings = NULL;
- GtkSettings* _tmp2_ = NULL;
- GtkSettings* _tmp3_ = NULL;
+ GtkSettings* _tmp2_;
+ GtkSettings* _tmp3_;
GHashTable* color_table = NULL;
- GtkSettings* _tmp4_ = NULL;
- GHashTable* _tmp5_ = NULL;
- GHashTable* _tmp6_ = NULL;
+ GtkSettings* _tmp4_;
+ GHashTable* _tmp5_;
+ GHashTable* _tmp6_;
GdkColor* base_color = NULL;
- GHashTable* _tmp7_ = NULL;
- gconstpointer _tmp8_ = NULL;
- GdkColor* _tmp9_ = NULL;
+ GHashTable* _tmp7_;
+ gconstpointer _tmp8_;
+ GdkColor* _tmp9_;
gboolean _tmp10_ = FALSE;
- GdkColor* _tmp11_ = NULL;
+ GdkColor* _tmp11_;
RGBAnalyticPixel base_color_analytic_rgb = {0};
- GdkColor* _tmp16_ = NULL;
- guint16 _tmp17_ = 0U;
- GdkColor* _tmp18_ = NULL;
- guint16 _tmp19_ = 0U;
- GdkColor* _tmp20_ = NULL;
- guint16 _tmp21_ = 0U;
+ GdkColor* _tmp16_;
+ guint16 _tmp17_;
+ GdkColor* _tmp18_;
+ guint16 _tmp19_;
+ GdkColor* _tmp20_;
+ guint16 _tmp21_;
HSVAnalyticPixel base_color_analytic_hsv = {0};
- RGBAnalyticPixel _tmp22_ = {0};
+ RGBAnalyticPixel _tmp22_;
HSVAnalyticPixel bevel_light_analytic_hsv = {0};
- HSVAnalyticPixel _tmp23_ = {0};
- gfloat _tmp24_ = 0.0F;
- HSVAnalyticPixel _tmp25_ = {0};
- gfloat _tmp26_ = 0.0F;
- gfloat _tmp27_ = 0.0F;
+ HSVAnalyticPixel _tmp23_;
+ gfloat _tmp24_;
+ HSVAnalyticPixel _tmp25_;
+ gfloat _tmp26_;
+ gfloat _tmp27_;
HSVAnalyticPixel bevel_lighter_analytic_hsv = {0};
- HSVAnalyticPixel _tmp28_ = {0};
- gfloat _tmp29_ = 0.0F;
- HSVAnalyticPixel _tmp30_ = {0};
- gfloat _tmp31_ = 0.0F;
- gfloat _tmp32_ = 0.0F;
+ HSVAnalyticPixel _tmp28_;
+ gfloat _tmp29_;
+ HSVAnalyticPixel _tmp30_;
+ gfloat _tmp31_;
+ gfloat _tmp32_;
HSVAnalyticPixel bevel_dark_analytic_hsv = {0};
- HSVAnalyticPixel _tmp33_ = {0};
- gfloat _tmp34_ = 0.0F;
- HSVAnalyticPixel _tmp35_ = {0};
- gfloat _tmp36_ = 0.0F;
- gfloat _tmp37_ = 0.0F;
+ HSVAnalyticPixel _tmp33_;
+ gfloat _tmp34_;
+ HSVAnalyticPixel _tmp35_;
+ gfloat _tmp36_;
+ gfloat _tmp37_;
HSVAnalyticPixel bevel_darker_analytic_hsv = {0};
- HSVAnalyticPixel _tmp38_ = {0};
- gfloat _tmp39_ = 0.0F;
- HSVAnalyticPixel _tmp40_ = {0};
- gfloat _tmp41_ = 0.0F;
- gfloat _tmp42_ = 0.0F;
+ HSVAnalyticPixel _tmp38_;
+ gfloat _tmp39_;
+ HSVAnalyticPixel _tmp40_;
+ gfloat _tmp41_;
+ gfloat _tmp42_;
HSVAnalyticPixel outline_analytic_hsv = {0};
- HSVAnalyticPixel _tmp43_ = {0};
- gfloat _tmp44_ = 0.0F;
- HSVAnalyticPixel _tmp45_ = {0};
- gfloat _tmp46_ = 0.0F;
- gfloat _tmp47_ = 0.0F;
+ HSVAnalyticPixel _tmp43_;
+ gfloat _tmp44_;
+ HSVAnalyticPixel _tmp45_;
+ gfloat _tmp46_;
+ gfloat _tmp47_;
RGBAnalyticPixel outline_analytic_rgb = {0};
RGBAnalyticPixel _tmp48_ = {0};
- ThemeLoaderLightweightColor* _tmp49_ = NULL;
- gint _tmp49__length1 = 0;
- RGBAnalyticPixel _tmp50_ = {0};
+ ThemeLoaderLightweightColor* _tmp49_;
+ gint _tmp49__length1;
+ RGBAnalyticPixel _tmp50_;
ThemeLoaderLightweightColor _tmp51_ = {0};
- ThemeLoaderLightweightColor _tmp52_ = {0};
+ ThemeLoaderLightweightColor _tmp52_;
RGBAnalyticPixel bevel_darker_analytic_rgb = {0};
RGBAnalyticPixel _tmp53_ = {0};
- ThemeLoaderLightweightColor* _tmp54_ = NULL;
- gint _tmp54__length1 = 0;
- RGBAnalyticPixel _tmp55_ = {0};
+ ThemeLoaderLightweightColor* _tmp54_;
+ gint _tmp54__length1;
+ RGBAnalyticPixel _tmp55_;
ThemeLoaderLightweightColor _tmp56_ = {0};
- ThemeLoaderLightweightColor _tmp57_ = {0};
+ ThemeLoaderLightweightColor _tmp57_;
RGBAnalyticPixel bevel_dark_analytic_rgb = {0};
RGBAnalyticPixel _tmp58_ = {0};
- ThemeLoaderLightweightColor* _tmp59_ = NULL;
- gint _tmp59__length1 = 0;
- RGBAnalyticPixel _tmp60_ = {0};
+ ThemeLoaderLightweightColor* _tmp59_;
+ gint _tmp59__length1;
+ RGBAnalyticPixel _tmp60_;
ThemeLoaderLightweightColor _tmp61_ = {0};
- ThemeLoaderLightweightColor _tmp62_ = {0};
- ThemeLoaderLightweightColor* _tmp63_ = NULL;
- gint _tmp63__length1 = 0;
- RGBAnalyticPixel _tmp64_ = {0};
+ ThemeLoaderLightweightColor _tmp62_;
+ ThemeLoaderLightweightColor* _tmp63_;
+ gint _tmp63__length1;
+ RGBAnalyticPixel _tmp64_;
ThemeLoaderLightweightColor _tmp65_ = {0};
- ThemeLoaderLightweightColor _tmp66_ = {0};
+ ThemeLoaderLightweightColor _tmp66_;
RGBAnalyticPixel bevel_light_analytic_rgb = {0};
RGBAnalyticPixel _tmp67_ = {0};
- ThemeLoaderLightweightColor* _tmp68_ = NULL;
- gint _tmp68__length1 = 0;
- RGBAnalyticPixel _tmp69_ = {0};
+ ThemeLoaderLightweightColor* _tmp68_;
+ gint _tmp68__length1;
+ RGBAnalyticPixel _tmp69_;
ThemeLoaderLightweightColor _tmp70_ = {0};
- ThemeLoaderLightweightColor _tmp71_ = {0};
+ ThemeLoaderLightweightColor _tmp71_;
RGBAnalyticPixel bevel_lighter_analytic_rgb = {0};
RGBAnalyticPixel _tmp72_ = {0};
- ThemeLoaderLightweightColor* _tmp73_ = NULL;
- gint _tmp73__length1 = 0;
- RGBAnalyticPixel _tmp74_ = {0};
+ ThemeLoaderLightweightColor* _tmp73_;
+ gint _tmp73__length1;
+ RGBAnalyticPixel _tmp74_;
ThemeLoaderLightweightColor _tmp75_ = {0};
- ThemeLoaderLightweightColor _tmp76_ = {0};
+ ThemeLoaderLightweightColor _tmp76_;
#line 31 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = theme_loader_theme_colors;
#line 31 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -384,7 +389,7 @@ static void theme_loader_populate_theme_params (void) {
if (_tmp0_ != NULL) {
#line 32 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return;
-#line 388 "CustomComponents.c"
+#line 393 "CustomComponents.c"
}
#line 34 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp1_ = g_new0 (ThemeLoaderLightweightColor, THEME_LOADER_NUM_SUPPORTED_INTENSITIES);
@@ -422,11 +427,11 @@ static void theme_loader_populate_theme_params (void) {
_tmp11_ = base_color;
#line 39 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp11_ == NULL) {
-#line 426 "CustomComponents.c"
+#line 431 "CustomComponents.c"
GdkColor _tmp12_ = {0};
- gboolean _tmp13_ = FALSE;
- GdkColor _tmp14_ = {0};
- GdkColor* _tmp15_ = NULL;
+ gboolean _tmp13_;
+ GdkColor _tmp14_;
+ GdkColor* _tmp15_;
#line 39 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp13_ = gdk_color_parse ("#fff", &_tmp12_);
#line 39 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -439,17 +444,17 @@ static void theme_loader_populate_theme_params (void) {
base_color = _tmp15_;
#line 39 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp10_ = !_tmp13_;
-#line 443 "CustomComponents.c"
+#line 448 "CustomComponents.c"
} else {
#line 39 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp10_ = FALSE;
-#line 447 "CustomComponents.c"
+#line 452 "CustomComponents.c"
}
#line 39 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp10_) {
#line 40 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_error ("CustomComponents.vala:40: can't parse color");
-#line 453 "CustomComponents.c"
+#line 458 "CustomComponents.c"
}
#line 42 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp16_ = base_color;
@@ -647,18 +652,18 @@ static void theme_loader_populate_theme_params (void) {
_g_hash_table_unref0 (color_table);
#line 30 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_g_object_unref0 (settings);
-#line 651 "CustomComponents.c"
+#line 656 "CustomComponents.c"
}
static void theme_loader_populate_one_theme_param (RGBAnalyticPixel* from, ThemeLoaderLightweightColor* result) {
ThemeLoaderLightweightColor into = {0};
- RGBAnalyticPixel _tmp0_ = {0};
- gfloat _tmp1_ = 0.0F;
- RGBAnalyticPixel _tmp2_ = {0};
- gfloat _tmp3_ = 0.0F;
- RGBAnalyticPixel _tmp4_ = {0};
- gfloat _tmp5_ = 0.0F;
+ RGBAnalyticPixel _tmp0_;
+ gfloat _tmp1_;
+ RGBAnalyticPixel _tmp2_;
+ gfloat _tmp3_;
+ RGBAnalyticPixel _tmp4_;
+ gfloat _tmp5_;
#line 97 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (from != NULL);
#line 98 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -685,7 +690,7 @@ static void theme_loader_populate_one_theme_param (RGBAnalyticPixel* from, Theme
*result = into;
#line 104 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return;
-#line 689 "CustomComponents.c"
+#line 694 "CustomComponents.c"
}
@@ -694,7 +699,7 @@ static guint _theme_loader_rgb_pixel_hash_func_gee_hash_data_func (gconstpointer
result = theme_loader_rgb_pixel_hash_func ((RGBAnalyticPixel*) v);
#line 114 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 698 "CustomComponents.c"
+#line 703 "CustomComponents.c"
}
@@ -703,7 +708,7 @@ static gboolean _theme_loader_rgb_pixel_equal_func_gee_equal_data_func (gconstpo
result = theme_loader_rgb_pixel_equal_func ((RGBAnalyticPixel*) a, (RGBAnalyticPixel*) b);
#line 114 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 707 "CustomComponents.c"
+#line 712 "CustomComponents.c"
}
@@ -712,37 +717,37 @@ static gint _theme_loader_hsv_pixel_compare_func_gcompare_func (gconstpointer a,
result = theme_loader_hsv_pixel_compare_func (a, b);
#line 142 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 716 "CustomComponents.c"
+#line 721 "CustomComponents.c"
}
GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
GdkPixbuf* result = NULL;
GdkPixbuf* loaded_pixbuf = NULL;
- const gchar* _tmp0_ = NULL;
- GdkPixbuf* _tmp1_ = NULL;
- GdkPixbuf* _tmp2_ = NULL;
- GdkPixbuf* _tmp3_ = NULL;
- GdkPixbuf* _tmp4_ = NULL;
+ const gchar* _tmp0_;
+ GdkPixbuf* _tmp1_;
+ GdkPixbuf* _tmp2_;
+ GdkPixbuf* _tmp3_;
+ GdkPixbuf* _tmp4_;
GeeHashSet* colors = NULL;
- GeeHashSet* _tmp5_ = NULL;
+ GeeHashSet* _tmp5_;
guchar* pixel_data = NULL;
- GdkPixbuf* _tmp6_ = NULL;
- guint8* _tmp7_ = NULL;
- gint pixel_data_length1 = 0;
- gint _pixel_data_size_ = 0;
- GeeHashSet* _tmp39_ = NULL;
- gint _tmp40_ = 0;
- gint _tmp41_ = 0;
+ GdkPixbuf* _tmp6_;
+ guint8* _tmp7_;
+ gint pixel_data_length1;
+ gint _pixel_data_size_;
+ GeeHashSet* _tmp39_;
+ gint _tmp40_;
+ gint _tmp41_;
HSVAnalyticPixel* hsv_pixels = NULL;
- HSVAnalyticPixel* _tmp42_ = NULL;
- gint hsv_pixels_length1 = 0;
- gint _hsv_pixels_size_ = 0;
+ HSVAnalyticPixel* _tmp42_;
+ gint hsv_pixels_length1;
+ gint _hsv_pixels_size_;
gint pixel_ticker = 0;
- HSVAnalyticPixel* _tmp56_ = NULL;
- gint _tmp56__length1 = 0;
- HSVAnalyticPixel* _tmp57_ = NULL;
- gint _tmp57__length1 = 0;
+ HSVAnalyticPixel* _tmp56_;
+ gint _tmp56__length1;
+ HSVAnalyticPixel* _tmp57_;
+ gint _tmp57__length1;
#line 107 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_val_if_fail (source_basename != NULL, NULL);
#line 108 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -775,32 +780,32 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
pixel_data_length1 = -1;
#line 117 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_pixel_data_size_ = pixel_data_length1;
-#line 779 "CustomComponents.c"
+#line 784 "CustomComponents.c"
{
gint j = 0;
#line 118 "/home/jens/Source/shotwell/src/CustomComponents.vala"
j = 0;
-#line 784 "CustomComponents.c"
+#line 789 "CustomComponents.c"
{
gboolean _tmp8_ = FALSE;
#line 118 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp8_ = TRUE;
#line 118 "/home/jens/Source/shotwell/src/CustomComponents.vala"
while (TRUE) {
-#line 791 "CustomComponents.c"
- gint _tmp10_ = 0;
- GdkPixbuf* _tmp11_ = NULL;
- gint _tmp12_ = 0;
- gint _tmp13_ = 0;
+#line 796 "CustomComponents.c"
+ gint _tmp10_;
+ GdkPixbuf* _tmp11_;
+ gint _tmp12_;
+ gint _tmp13_;
#line 118 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (!_tmp8_) {
-#line 798 "CustomComponents.c"
- gint _tmp9_ = 0;
+#line 803 "CustomComponents.c"
+ gint _tmp9_;
#line 118 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp9_ = j;
#line 118 "/home/jens/Source/shotwell/src/CustomComponents.vala"
j = _tmp9_ + 1;
-#line 804 "CustomComponents.c"
+#line 809 "CustomComponents.c"
}
#line 118 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp8_ = FALSE;
@@ -816,57 +821,57 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
if (!(_tmp10_ < _tmp13_)) {
#line 118 "/home/jens/Source/shotwell/src/CustomComponents.vala"
break;
-#line 820 "CustomComponents.c"
+#line 825 "CustomComponents.c"
}
{
gint i = 0;
#line 119 "/home/jens/Source/shotwell/src/CustomComponents.vala"
i = 0;
-#line 826 "CustomComponents.c"
+#line 831 "CustomComponents.c"
{
gboolean _tmp14_ = FALSE;
#line 119 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp14_ = TRUE;
#line 119 "/home/jens/Source/shotwell/src/CustomComponents.vala"
while (TRUE) {
-#line 833 "CustomComponents.c"
- gint _tmp16_ = 0;
- GdkPixbuf* _tmp17_ = NULL;
- gint _tmp18_ = 0;
- gint _tmp19_ = 0;
+#line 838 "CustomComponents.c"
+ gint _tmp16_;
+ GdkPixbuf* _tmp17_;
+ gint _tmp18_;
+ gint _tmp19_;
gint pixel_index = 0;
- gint _tmp20_ = 0;
- GdkPixbuf* _tmp21_ = NULL;
- gint _tmp22_ = 0;
- gint _tmp23_ = 0;
- gint _tmp24_ = 0;
- GdkPixbuf* _tmp25_ = NULL;
- gint _tmp26_ = 0;
- gint _tmp27_ = 0;
+ gint _tmp20_;
+ GdkPixbuf* _tmp21_;
+ gint _tmp22_;
+ gint _tmp23_;
+ gint _tmp24_;
+ GdkPixbuf* _tmp25_;
+ gint _tmp26_;
+ gint _tmp27_;
RGBAnalyticPixel pixel_color = {0};
- guchar* _tmp28_ = NULL;
- gint _tmp28__length1 = 0;
- gint _tmp29_ = 0;
- guchar _tmp30_ = '\0';
- guchar* _tmp31_ = NULL;
- gint _tmp31__length1 = 0;
- gint _tmp32_ = 0;
- guchar _tmp33_ = '\0';
- guchar* _tmp34_ = NULL;
- gint _tmp34__length1 = 0;
- gint _tmp35_ = 0;
- guchar _tmp36_ = '\0';
- GeeHashSet* _tmp37_ = NULL;
- RGBAnalyticPixel _tmp38_ = {0};
+ guchar* _tmp28_;
+ gint _tmp28__length1;
+ gint _tmp29_;
+ guchar _tmp30_;
+ guchar* _tmp31_;
+ gint _tmp31__length1;
+ gint _tmp32_;
+ guchar _tmp33_;
+ guchar* _tmp34_;
+ gint _tmp34__length1;
+ gint _tmp35_;
+ guchar _tmp36_;
+ GeeHashSet* _tmp37_;
+ RGBAnalyticPixel _tmp38_;
#line 119 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (!_tmp14_) {
-#line 864 "CustomComponents.c"
- gint _tmp15_ = 0;
+#line 869 "CustomComponents.c"
+ gint _tmp15_;
#line 119 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp15_ = i;
#line 119 "/home/jens/Source/shotwell/src/CustomComponents.vala"
i = _tmp15_ + 1;
-#line 870 "CustomComponents.c"
+#line 875 "CustomComponents.c"
}
#line 119 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp14_ = FALSE;
@@ -882,7 +887,7 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
if (!(_tmp16_ < _tmp19_)) {
#line 119 "/home/jens/Source/shotwell/src/CustomComponents.vala"
break;
-#line 886 "CustomComponents.c"
+#line 891 "CustomComponents.c"
}
#line 120 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp20_ = j;
@@ -934,7 +939,7 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
_tmp38_ = pixel_color;
#line 125 "/home/jens/Source/shotwell/src/CustomComponents.vala"
gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), &_tmp38_);
-#line 938 "CustomComponents.c"
+#line 943 "CustomComponents.c"
}
}
}
@@ -951,7 +956,7 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
if (_tmp41_ != THEME_LOADER_NUM_SUPPORTED_INTENSITIES) {
#line 133 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_error ("CustomComponents.vala:133: %s", "ThemeLoader: load_icon: pixbuf does not contain the correct number " "of unique colors");
-#line 955 "CustomComponents.c"
+#line 960 "CustomComponents.c"
}
#line 138 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp42_ = g_new0 (HSVAnalyticPixel, 6);
@@ -963,11 +968,11 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
_hsv_pixels_size_ = hsv_pixels_length1;
#line 139 "/home/jens/Source/shotwell/src/CustomComponents.vala"
pixel_ticker = 0;
-#line 967 "CustomComponents.c"
+#line 972 "CustomComponents.c"
{
GeeIterator* _rgb_pixel_it = NULL;
- GeeHashSet* _tmp43_ = NULL;
- GeeIterator* _tmp44_ = NULL;
+ GeeHashSet* _tmp43_;
+ GeeIterator* _tmp44_;
#line 140 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp43_ = colors;
#line 140 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -976,20 +981,20 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
_rgb_pixel_it = _tmp44_;
#line 140 "/home/jens/Source/shotwell/src/CustomComponents.vala"
while (TRUE) {
-#line 980 "CustomComponents.c"
- GeeIterator* _tmp45_ = NULL;
- gboolean _tmp46_ = FALSE;
+#line 985 "CustomComponents.c"
+ GeeIterator* _tmp45_;
+ gboolean _tmp46_;
RGBAnalyticPixel rgb_pixel = {0};
- GeeIterator* _tmp47_ = NULL;
- gpointer _tmp48_ = NULL;
- RGBAnalyticPixel* _tmp49_ = NULL;
- RGBAnalyticPixel _tmp50_ = {0};
- HSVAnalyticPixel* _tmp51_ = NULL;
- gint _tmp51__length1 = 0;
- gint _tmp52_ = 0;
- RGBAnalyticPixel _tmp53_ = {0};
+ GeeIterator* _tmp47_;
+ gpointer _tmp48_;
+ RGBAnalyticPixel* _tmp49_;
+ RGBAnalyticPixel _tmp50_;
+ HSVAnalyticPixel* _tmp51_;
+ gint _tmp51__length1;
+ gint _tmp52_;
+ RGBAnalyticPixel _tmp53_;
HSVAnalyticPixel _tmp54_ = {0};
- HSVAnalyticPixel _tmp55_ = {0};
+ HSVAnalyticPixel _tmp55_;
#line 140 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp45_ = _rgb_pixel_it;
#line 140 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -998,7 +1003,7 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
if (!_tmp46_) {
#line 140 "/home/jens/Source/shotwell/src/CustomComponents.vala"
break;
-#line 1002 "CustomComponents.c"
+#line 1007 "CustomComponents.c"
}
#line 140 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp47_ = _rgb_pixel_it;
@@ -1028,11 +1033,11 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
_tmp51_[_tmp52_] = _tmp54_;
#line 141 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp55_ = _tmp51_[_tmp52_];
-#line 1032 "CustomComponents.c"
+#line 1037 "CustomComponents.c"
}
#line 140 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_g_object_unref0 (_rgb_pixel_it);
-#line 1036 "CustomComponents.c"
+#line 1041 "CustomComponents.c"
}
#line 142 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp56_ = hsv_pixels;
@@ -1044,32 +1049,32 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
_tmp57__length1 = hsv_pixels_length1;
#line 142 "/home/jens/Source/shotwell/src/CustomComponents.vala"
qsort (_tmp56_, (gsize) _tmp57__length1, (gsize) sizeof (HSVAnalyticPixel), _theme_loader_hsv_pixel_compare_func_gcompare_func);
-#line 1048 "CustomComponents.c"
+#line 1053 "CustomComponents.c"
{
gint j = 0;
#line 146 "/home/jens/Source/shotwell/src/CustomComponents.vala"
j = 0;
-#line 1053 "CustomComponents.c"
+#line 1058 "CustomComponents.c"
{
gboolean _tmp58_ = FALSE;
#line 146 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp58_ = TRUE;
#line 146 "/home/jens/Source/shotwell/src/CustomComponents.vala"
while (TRUE) {
-#line 1060 "CustomComponents.c"
- gint _tmp60_ = 0;
- GdkPixbuf* _tmp61_ = NULL;
- gint _tmp62_ = 0;
- gint _tmp63_ = 0;
+#line 1065 "CustomComponents.c"
+ gint _tmp60_;
+ GdkPixbuf* _tmp61_;
+ gint _tmp62_;
+ gint _tmp63_;
#line 146 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (!_tmp58_) {
-#line 1067 "CustomComponents.c"
- gint _tmp59_ = 0;
+#line 1072 "CustomComponents.c"
+ gint _tmp59_;
#line 146 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp59_ = j;
#line 146 "/home/jens/Source/shotwell/src/CustomComponents.vala"
j = _tmp59_ + 1;
-#line 1073 "CustomComponents.c"
+#line 1078 "CustomComponents.c"
}
#line 146 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp58_ = FALSE;
@@ -1085,85 +1090,85 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
if (!(_tmp60_ < _tmp63_)) {
#line 146 "/home/jens/Source/shotwell/src/CustomComponents.vala"
break;
-#line 1089 "CustomComponents.c"
+#line 1094 "CustomComponents.c"
}
{
gint i = 0;
#line 147 "/home/jens/Source/shotwell/src/CustomComponents.vala"
i = 0;
-#line 1095 "CustomComponents.c"
+#line 1100 "CustomComponents.c"
{
gboolean _tmp64_ = FALSE;
#line 147 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp64_ = TRUE;
#line 147 "/home/jens/Source/shotwell/src/CustomComponents.vala"
while (TRUE) {
-#line 1102 "CustomComponents.c"
- gint _tmp66_ = 0;
- GdkPixbuf* _tmp67_ = NULL;
- gint _tmp68_ = 0;
- gint _tmp69_ = 0;
+#line 1107 "CustomComponents.c"
+ gint _tmp66_;
+ GdkPixbuf* _tmp67_;
+ gint _tmp68_;
+ gint _tmp69_;
gint pixel_index = 0;
- gint _tmp70_ = 0;
- GdkPixbuf* _tmp71_ = NULL;
- gint _tmp72_ = 0;
- gint _tmp73_ = 0;
- gint _tmp74_ = 0;
- GdkPixbuf* _tmp75_ = NULL;
- gint _tmp76_ = 0;
- gint _tmp77_ = 0;
+ gint _tmp70_;
+ GdkPixbuf* _tmp71_;
+ gint _tmp72_;
+ gint _tmp73_;
+ gint _tmp74_;
+ GdkPixbuf* _tmp75_;
+ gint _tmp76_;
+ gint _tmp77_;
RGBAnalyticPixel pixel_color = {0};
- guchar* _tmp78_ = NULL;
- gint _tmp78__length1 = 0;
- gint _tmp79_ = 0;
- guchar _tmp80_ = '\0';
- guchar* _tmp81_ = NULL;
- gint _tmp81__length1 = 0;
- gint _tmp82_ = 0;
- guchar _tmp83_ = '\0';
- guchar* _tmp84_ = NULL;
- gint _tmp84__length1 = 0;
- gint _tmp85_ = 0;
- guchar _tmp86_ = '\0';
+ guchar* _tmp78_;
+ gint _tmp78__length1;
+ gint _tmp79_;
+ guchar _tmp80_;
+ guchar* _tmp81_;
+ gint _tmp81__length1;
+ gint _tmp82_;
+ guchar _tmp83_;
+ guchar* _tmp84_;
+ gint _tmp84__length1;
+ gint _tmp85_;
+ guchar _tmp86_;
HSVAnalyticPixel pixel_color_hsv = {0};
- RGBAnalyticPixel _tmp87_ = {0};
+ RGBAnalyticPixel _tmp87_;
gint this_intensity = 0;
- guchar* _tmp98_ = NULL;
- gint _tmp98__length1 = 0;
- gint _tmp99_ = 0;
- ThemeLoaderLightweightColor* _tmp100_ = NULL;
- gint _tmp100__length1 = 0;
- gint _tmp101_ = 0;
- ThemeLoaderLightweightColor _tmp102_ = {0};
- guchar _tmp103_ = '\0';
- guchar _tmp104_ = '\0';
- guchar* _tmp105_ = NULL;
- gint _tmp105__length1 = 0;
- gint _tmp106_ = 0;
- ThemeLoaderLightweightColor* _tmp107_ = NULL;
- gint _tmp107__length1 = 0;
- gint _tmp108_ = 0;
- ThemeLoaderLightweightColor _tmp109_ = {0};
- guchar _tmp110_ = '\0';
- guchar _tmp111_ = '\0';
- guchar* _tmp112_ = NULL;
- gint _tmp112__length1 = 0;
- gint _tmp113_ = 0;
- ThemeLoaderLightweightColor* _tmp114_ = NULL;
- gint _tmp114__length1 = 0;
- gint _tmp115_ = 0;
- ThemeLoaderLightweightColor _tmp116_ = {0};
- guchar _tmp117_ = '\0';
- guchar _tmp118_ = '\0';
+ guchar* _tmp98_;
+ gint _tmp98__length1;
+ gint _tmp99_;
+ ThemeLoaderLightweightColor* _tmp100_;
+ gint _tmp100__length1;
+ gint _tmp101_;
+ ThemeLoaderLightweightColor _tmp102_;
+ guchar _tmp103_;
+ guchar _tmp104_;
+ guchar* _tmp105_;
+ gint _tmp105__length1;
+ gint _tmp106_;
+ ThemeLoaderLightweightColor* _tmp107_;
+ gint _tmp107__length1;
+ gint _tmp108_;
+ ThemeLoaderLightweightColor _tmp109_;
+ guchar _tmp110_;
+ guchar _tmp111_;
+ guchar* _tmp112_;
+ gint _tmp112__length1;
+ gint _tmp113_;
+ ThemeLoaderLightweightColor* _tmp114_;
+ gint _tmp114__length1;
+ gint _tmp115_;
+ ThemeLoaderLightweightColor _tmp116_;
+ guchar _tmp117_;
+ guchar _tmp118_;
#line 147 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (!_tmp64_) {
-#line 1161 "CustomComponents.c"
- gint _tmp65_ = 0;
+#line 1166 "CustomComponents.c"
+ gint _tmp65_;
#line 147 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp65_ = i;
#line 147 "/home/jens/Source/shotwell/src/CustomComponents.vala"
i = _tmp65_ + 1;
-#line 1167 "CustomComponents.c"
+#line 1172 "CustomComponents.c"
}
#line 147 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp64_ = FALSE;
@@ -1179,7 +1184,7 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
if (!(_tmp66_ < _tmp69_)) {
#line 147 "/home/jens/Source/shotwell/src/CustomComponents.vala"
break;
-#line 1183 "CustomComponents.c"
+#line 1188 "CustomComponents.c"
}
#line 148 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp70_ = j;
@@ -1231,36 +1236,36 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
hsv_analytic_pixel_init_from_rgb (&pixel_color_hsv, &_tmp87_);
#line 153 "/home/jens/Source/shotwell/src/CustomComponents.vala"
this_intensity = 0;
-#line 1235 "CustomComponents.c"
+#line 1240 "CustomComponents.c"
{
gint k = 0;
#line 154 "/home/jens/Source/shotwell/src/CustomComponents.vala"
k = 0;
-#line 1240 "CustomComponents.c"
+#line 1245 "CustomComponents.c"
{
gboolean _tmp88_ = FALSE;
#line 154 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp88_ = TRUE;
#line 154 "/home/jens/Source/shotwell/src/CustomComponents.vala"
while (TRUE) {
-#line 1247 "CustomComponents.c"
- gint _tmp90_ = 0;
- HSVAnalyticPixel* _tmp91_ = NULL;
- gint _tmp91__length1 = 0;
- gint _tmp92_ = 0;
- HSVAnalyticPixel _tmp93_ = {0};
- gfloat _tmp94_ = 0.0F;
- HSVAnalyticPixel _tmp95_ = {0};
- gfloat _tmp96_ = 0.0F;
+#line 1252 "CustomComponents.c"
+ gint _tmp90_;
+ HSVAnalyticPixel* _tmp91_;
+ gint _tmp91__length1;
+ gint _tmp92_;
+ HSVAnalyticPixel _tmp93_;
+ gfloat _tmp94_;
+ HSVAnalyticPixel _tmp95_;
+ gfloat _tmp96_;
#line 154 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (!_tmp88_) {
-#line 1258 "CustomComponents.c"
- gint _tmp89_ = 0;
+#line 1263 "CustomComponents.c"
+ gint _tmp89_;
#line 154 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp89_ = k;
#line 154 "/home/jens/Source/shotwell/src/CustomComponents.vala"
k = _tmp89_ + 1;
-#line 1264 "CustomComponents.c"
+#line 1269 "CustomComponents.c"
}
#line 154 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp88_ = FALSE;
@@ -1270,7 +1275,7 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
if (!(_tmp90_ < THEME_LOADER_NUM_SUPPORTED_INTENSITIES)) {
#line 154 "/home/jens/Source/shotwell/src/CustomComponents.vala"
break;
-#line 1274 "CustomComponents.c"
+#line 1279 "CustomComponents.c"
}
#line 155 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp91_ = hsv_pixels;
@@ -1288,15 +1293,15 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
_tmp96_ = _tmp95_.light_value;
#line 155 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp94_ == _tmp96_) {
-#line 1292 "CustomComponents.c"
- gint _tmp97_ = 0;
+#line 1297 "CustomComponents.c"
+ gint _tmp97_;
#line 156 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp97_ = k;
#line 156 "/home/jens/Source/shotwell/src/CustomComponents.vala"
this_intensity = _tmp97_;
#line 157 "/home/jens/Source/shotwell/src/CustomComponents.vala"
break;
-#line 1300 "CustomComponents.c"
+#line 1305 "CustomComponents.c"
}
}
}
@@ -1361,7 +1366,7 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
_tmp112_[_tmp113_ + 2] = _tmp117_;
#line 162 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp118_ = _tmp112_[_tmp113_ + 2];
-#line 1365 "CustomComponents.c"
+#line 1370 "CustomComponents.c"
}
}
}
@@ -1376,20 +1381,20 @@ GdkPixbuf* theme_loader_load_icon (const gchar* source_basename) {
_g_object_unref0 (colors);
#line 166 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 1380 "CustomComponents.c"
+#line 1385 "CustomComponents.c"
}
static gint theme_loader_hsv_pixel_compare_func (void* pixval1, void* pixval2) {
gint result = 0;
HSVAnalyticPixel pixel_val_1 = {0};
- void* _tmp0_ = NULL;
+ void* _tmp0_;
HSVAnalyticPixel pixel_val_2 = {0};
- void* _tmp1_ = NULL;
- HSVAnalyticPixel _tmp2_ = {0};
- gfloat _tmp3_ = 0.0F;
- HSVAnalyticPixel _tmp4_ = {0};
- gfloat _tmp5_ = 0.0F;
+ void* _tmp1_;
+ HSVAnalyticPixel _tmp2_;
+ gfloat _tmp3_;
+ HSVAnalyticPixel _tmp4_;
+ gfloat _tmp5_;
#line 170 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = pixval1;
#line 170 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -1410,15 +1415,15 @@ static gint theme_loader_hsv_pixel_compare_func (void* pixval1, void* pixval2) {
result = (gint) (255.0f * (_tmp3_ - _tmp5_));
#line 173 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 1414 "CustomComponents.c"
+#line 1419 "CustomComponents.c"
}
static gboolean theme_loader_rgb_pixel_equal_func (RGBAnalyticPixel* p1, RGBAnalyticPixel* p2) {
gboolean result = FALSE;
- RGBAnalyticPixel* _tmp0_ = NULL;
- RGBAnalyticPixel* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
+ RGBAnalyticPixel* _tmp0_;
+ RGBAnalyticPixel* _tmp1_;
+ gboolean _tmp2_;
#line 177 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = p1;
#line 177 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -1429,14 +1434,14 @@ static gboolean theme_loader_rgb_pixel_equal_func (RGBAnalyticPixel* p1, RGBAnal
result = _tmp2_;
#line 177 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 1433 "CustomComponents.c"
+#line 1438 "CustomComponents.c"
}
static guint theme_loader_rgb_pixel_hash_func (RGBAnalyticPixel* pixel_val) {
guint result = 0U;
- RGBAnalyticPixel* _tmp0_ = NULL;
- guint _tmp1_ = 0U;
+ RGBAnalyticPixel* _tmp0_;
+ guint _tmp1_;
#line 181 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = pixel_val;
#line 181 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -1445,7 +1450,7 @@ static guint theme_loader_rgb_pixel_hash_func (RGBAnalyticPixel* pixel_val) {
result = _tmp1_;
#line 181 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 1449 "CustomComponents.c"
+#line 1454 "CustomComponents.c"
}
@@ -1455,20 +1460,20 @@ ThemeLoader* theme_loader_construct (GType object_type) {
self = (ThemeLoader*) g_type_create_instance (object_type);
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return self;
-#line 1459 "CustomComponents.c"
+#line 1464 "CustomComponents.c"
}
ThemeLoader* theme_loader_new (void) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return theme_loader_construct (TYPE_THEME_LOADER);
-#line 1466 "CustomComponents.c"
+#line 1471 "CustomComponents.c"
}
static void theme_loader_lightweight_color_init (ThemeLoaderLightweightColor *self) {
- guchar _tmp0_ = '\0';
- guchar _tmp1_ = '\0';
+ guchar _tmp0_;
+ guchar _tmp1_;
#line 15 "/home/jens/Source/shotwell/src/CustomComponents.vala"
memset (self, 0, sizeof (ThemeLoaderLightweightColor));
#line 16 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -1481,7 +1486,7 @@ static void theme_loader_lightweight_color_init (ThemeLoaderLightweightColor *se
_tmp1_ = (*self).green;
#line 16 "/home/jens/Source/shotwell/src/CustomComponents.vala"
(*self).red = _tmp1_;
-#line 1485 "CustomComponents.c"
+#line 1490 "CustomComponents.c"
}
@@ -1493,14 +1498,14 @@ static ThemeLoaderLightweightColor* theme_loader_lightweight_color_dup (const Th
memcpy (dup, self, sizeof (ThemeLoaderLightweightColor));
#line 10 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return dup;
-#line 1497 "CustomComponents.c"
+#line 1502 "CustomComponents.c"
}
static void theme_loader_lightweight_color_free (ThemeLoaderLightweightColor* self) {
#line 10 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_free (self);
-#line 1504 "CustomComponents.c"
+#line 1509 "CustomComponents.c"
}
@@ -1518,7 +1523,7 @@ static GType theme_loader_lightweight_color_get_type (void) {
static void value_theme_loader_init (GValue* value) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
value->data[0].v_pointer = NULL;
-#line 1522 "CustomComponents.c"
+#line 1527 "CustomComponents.c"
}
@@ -1527,7 +1532,7 @@ static void value_theme_loader_free_value (GValue* value) {
if (value->data[0].v_pointer) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
theme_loader_unref (value->data[0].v_pointer);
-#line 1531 "CustomComponents.c"
+#line 1536 "CustomComponents.c"
}
}
@@ -1537,11 +1542,11 @@ static void value_theme_loader_copy_value (const GValue* src_value, GValue* dest
if (src_value->data[0].v_pointer) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
dest_value->data[0].v_pointer = theme_loader_ref (src_value->data[0].v_pointer);
-#line 1541 "CustomComponents.c"
+#line 1546 "CustomComponents.c"
} else {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
dest_value->data[0].v_pointer = NULL;
-#line 1545 "CustomComponents.c"
+#line 1550 "CustomComponents.c"
}
}
@@ -1549,66 +1554,66 @@ static void value_theme_loader_copy_value (const GValue* src_value, GValue* dest
static gpointer value_theme_loader_peek_pointer (const GValue* value) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return value->data[0].v_pointer;
-#line 1553 "CustomComponents.c"
+#line 1558 "CustomComponents.c"
}
static gchar* value_theme_loader_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (collect_values[0].v_pointer) {
-#line 1560 "CustomComponents.c"
- ThemeLoader* object;
+#line 1565 "CustomComponents.c"
+ ThemeLoader * object;
object = collect_values[0].v_pointer;
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (object->parent_instance.g_class == NULL) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1567 "CustomComponents.c"
+#line 1572 "CustomComponents.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1571 "CustomComponents.c"
+#line 1576 "CustomComponents.c"
}
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
value->data[0].v_pointer = theme_loader_ref (object);
-#line 1575 "CustomComponents.c"
+#line 1580 "CustomComponents.c"
} else {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
value->data[0].v_pointer = NULL;
-#line 1579 "CustomComponents.c"
+#line 1584 "CustomComponents.c"
}
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return NULL;
-#line 1583 "CustomComponents.c"
+#line 1588 "CustomComponents.c"
}
static gchar* value_theme_loader_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
- ThemeLoader** object_p;
+ ThemeLoader ** object_p;
object_p = collect_values[0].v_pointer;
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (!object_p) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1594 "CustomComponents.c"
+#line 1599 "CustomComponents.c"
}
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (!value->data[0].v_pointer) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
*object_p = NULL;
-#line 1600 "CustomComponents.c"
+#line 1605 "CustomComponents.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
*object_p = value->data[0].v_pointer;
-#line 1604 "CustomComponents.c"
+#line 1609 "CustomComponents.c"
} else {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
*object_p = theme_loader_ref (value->data[0].v_pointer);
-#line 1608 "CustomComponents.c"
+#line 1613 "CustomComponents.c"
}
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return NULL;
-#line 1612 "CustomComponents.c"
+#line 1617 "CustomComponents.c"
}
@@ -1622,7 +1627,7 @@ GParamSpec* param_spec_theme_loader (const gchar* name, const gchar* nick, const
G_PARAM_SPEC (spec)->value_type = object_type;
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return G_PARAM_SPEC (spec);
-#line 1626 "CustomComponents.c"
+#line 1631 "CustomComponents.c"
}
@@ -1631,12 +1636,12 @@ gpointer value_get_theme_loader (const GValue* value) {
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_THEME_LOADER), NULL);
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return value->data[0].v_pointer;
-#line 1635 "CustomComponents.c"
+#line 1640 "CustomComponents.c"
}
void value_set_theme_loader (GValue* value, gpointer v_object) {
- ThemeLoader* old;
+ ThemeLoader * old;
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_THEME_LOADER));
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -1651,23 +1656,23 @@ void value_set_theme_loader (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
theme_loader_ref (value->data[0].v_pointer);
-#line 1655 "CustomComponents.c"
+#line 1660 "CustomComponents.c"
} else {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
value->data[0].v_pointer = NULL;
-#line 1659 "CustomComponents.c"
+#line 1664 "CustomComponents.c"
}
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (old) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
theme_loader_unref (old);
-#line 1665 "CustomComponents.c"
+#line 1670 "CustomComponents.c"
}
}
void value_take_theme_loader (GValue* value, gpointer v_object) {
- ThemeLoader* old;
+ ThemeLoader * old;
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_THEME_LOADER));
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -1680,17 +1685,17 @@ void value_take_theme_loader (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
value->data[0].v_pointer = v_object;
-#line 1684 "CustomComponents.c"
+#line 1689 "CustomComponents.c"
} else {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
value->data[0].v_pointer = NULL;
-#line 1688 "CustomComponents.c"
+#line 1693 "CustomComponents.c"
}
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (old) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
theme_loader_unref (old);
-#line 1694 "CustomComponents.c"
+#line 1699 "CustomComponents.c"
}
}
@@ -1700,24 +1705,24 @@ static void theme_loader_class_init (ThemeLoaderClass * klass) {
theme_loader_parent_class = g_type_class_peek_parent (klass);
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
((ThemeLoaderClass *) klass)->finalize = theme_loader_finalize;
-#line 1704 "CustomComponents.c"
+#line 1709 "CustomComponents.c"
}
static void theme_loader_instance_init (ThemeLoader * self) {
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
self->ref_count = 1;
-#line 1711 "CustomComponents.c"
+#line 1716 "CustomComponents.c"
}
-static void theme_loader_finalize (ThemeLoader* obj) {
+static void theme_loader_finalize (ThemeLoader * obj) {
ThemeLoader * self;
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_THEME_LOADER, ThemeLoader);
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_signal_handlers_destroy (self);
-#line 1721 "CustomComponents.c"
+#line 1726 "CustomComponents.c"
}
@@ -1736,18 +1741,18 @@ GType theme_loader_get_type (void) {
gpointer theme_loader_ref (gpointer instance) {
- ThemeLoader* self;
+ ThemeLoader * self;
self = instance;
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_atomic_int_inc (&self->ref_count);
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return instance;
-#line 1746 "CustomComponents.c"
+#line 1751 "CustomComponents.c"
}
void theme_loader_unref (gpointer instance) {
- ThemeLoader* self;
+ ThemeLoader * self;
self = instance;
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
@@ -1755,7 +1760,7 @@ void theme_loader_unref (gpointer instance) {
THEME_LOADER_GET_CLASS (self)->finalize (self);
#line 9 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 1759 "CustomComponents.c"
+#line 1764 "CustomComponents.c"
}
}
@@ -1777,7 +1782,7 @@ static gboolean _rgb_histogram_manipulator_on_button_press_gtk_widget_button_pre
result = rgb_histogram_manipulator_on_button_press ((RGBHistogramManipulator*) self, event);
#line 240 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 1781 "CustomComponents.c"
+#line 1786 "CustomComponents.c"
}
@@ -1786,7 +1791,7 @@ static gboolean _rgb_histogram_manipulator_on_button_release_gtk_widget_button_r
result = rgb_histogram_manipulator_on_button_release ((RGBHistogramManipulator*) self, event);
#line 241 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 1790 "CustomComponents.c"
+#line 1795 "CustomComponents.c"
}
@@ -1795,15 +1800,15 @@ static gboolean _rgb_histogram_manipulator_on_button_motion_gtk_widget_motion_no
result = rgb_histogram_manipulator_on_button_motion ((RGBHistogramManipulator*) self, event);
#line 242 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 1799 "CustomComponents.c"
+#line 1804 "CustomComponents.c"
}
RGBHistogramManipulator* rgb_histogram_manipulator_construct (GType object_type) {
RGBHistogramManipulator * self = NULL;
- GtkWidget* _tmp0_ = NULL;
- GtkWidget* _tmp2_ = NULL;
- gboolean _tmp4_ = FALSE;
+ GtkWidget* _tmp0_;
+ GtkWidget* _tmp2_;
+ gboolean _tmp4_;
#line 216 "/home/jens/Source/shotwell/src/CustomComponents.vala"
self = (RGBHistogramManipulator*) g_object_new (object_type, NULL);
#line 217 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -1812,8 +1817,8 @@ RGBHistogramManipulator* rgb_histogram_manipulator_construct (GType object_type)
_tmp0_ = rgb_histogram_manipulator_dummy_slider;
#line 219 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp0_ == NULL) {
-#line 1816 "CustomComponents.c"
- GtkScale* _tmp1_ = NULL;
+#line 1821 "CustomComponents.c"
+ GtkScale* _tmp1_;
#line 220 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp1_ = (GtkScale*) gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, NULL);
#line 220 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -1822,14 +1827,14 @@ RGBHistogramManipulator* rgb_histogram_manipulator_construct (GType object_type)
_g_object_unref0 (rgb_histogram_manipulator_dummy_slider);
#line 220 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_dummy_slider = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_widget_get_type (), GtkWidget);
-#line 1826 "CustomComponents.c"
+#line 1831 "CustomComponents.c"
}
#line 222 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp2_ = rgb_histogram_manipulator_dummy_frame;
#line 222 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp2_ == NULL) {
-#line 1832 "CustomComponents.c"
- GtkFrame* _tmp3_ = NULL;
+#line 1837 "CustomComponents.c"
+ GtkFrame* _tmp3_;
#line 223 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp3_ = (GtkFrame*) gtk_frame_new (NULL);
#line 223 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -1838,18 +1843,18 @@ RGBHistogramManipulator* rgb_histogram_manipulator_construct (GType object_type)
_g_object_unref0 (rgb_histogram_manipulator_dummy_frame);
#line 223 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_dummy_frame = G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, gtk_widget_get_type (), GtkWidget);
-#line 1842 "CustomComponents.c"
+#line 1847 "CustomComponents.c"
}
#line 225 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp4_ = rgb_histogram_manipulator_paths_setup;
#line 225 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (!_tmp4_) {
-#line 1848 "CustomComponents.c"
- GtkWidgetPath* _tmp5_ = NULL;
- GtkWidgetPath* _tmp6_ = NULL;
- GtkWidgetPath* _tmp7_ = NULL;
- GtkWidgetPath* _tmp8_ = NULL;
- GtkWidgetPath* _tmp9_ = NULL;
+#line 1853 "CustomComponents.c"
+ GtkWidgetPath* _tmp5_;
+ GtkWidgetPath* _tmp6_;
+ GtkWidgetPath* _tmp7_;
+ GtkWidgetPath* _tmp8_;
+ GtkWidgetPath* _tmp9_;
#line 226 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp5_ = rgb_histogram_manipulator_slider_draw_path;
#line 226 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -1872,7 +1877,7 @@ RGBHistogramManipulator* rgb_histogram_manipulator_construct (GType object_type)
gtk_widget_path_iter_add_class (_tmp9_, 0, "default");
#line 233 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_paths_setup = TRUE;
-#line 1876 "CustomComponents.c"
+#line 1881 "CustomComponents.c"
}
#line 236 "/home/jens/Source/shotwell/src/CustomComponents.vala"
gtk_widget_add_events (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), (gint) GDK_BUTTON_PRESS_MASK);
@@ -1888,35 +1893,35 @@ RGBHistogramManipulator* rgb_histogram_manipulator_construct (GType object_type)
g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget), "motion-notify-event", (GCallback) _rgb_histogram_manipulator_on_button_motion_gtk_widget_motion_notify_event, self, 0);
#line 216 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return self;
-#line 1892 "CustomComponents.c"
+#line 1897 "CustomComponents.c"
}
RGBHistogramManipulator* rgb_histogram_manipulator_new (void) {
#line 216 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return rgb_histogram_manipulator_construct (TYPE_RGB_HISTOGRAM_MANIPULATOR);
-#line 1899 "CustomComponents.c"
+#line 1904 "CustomComponents.c"
}
static RGBHistogramManipulatorLocationCode rgb_histogram_manipulator_hit_test_point (RGBHistogramManipulator* self, gint x, gint y) {
RGBHistogramManipulatorLocationCode result = 0;
- gint _tmp0_ = 0;
+ gint _tmp0_;
gboolean _tmp1_ = FALSE;
- gint _tmp2_ = 0;
- gint _tmp3_ = 0;
+ gint _tmp2_;
+ gint _tmp3_;
gboolean _tmp6_ = FALSE;
- gint _tmp7_ = 0;
- gint _tmp8_ = 0;
- gint _tmp11_ = 0;
- gint _tmp12_ = 0;
- gint _tmp13_ = 0;
- gint _tmp14_ = 0;
- gint _tmp15_ = 0;
- gint _tmp16_ = 0;
- gint _tmp17_ = 0;
- gint _tmp18_ = 0;
- gint _tmp19_ = 0;
+ gint _tmp7_;
+ gint _tmp8_;
+ gint _tmp11_;
+ gint _tmp12_;
+ gint _tmp13_;
+ gint _tmp14_;
+ gint _tmp15_;
+ gint _tmp16_;
+ gint _tmp17_;
+ gint _tmp18_;
+ gint _tmp19_;
#line 245 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), 0);
#line 246 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -1927,7 +1932,7 @@ static RGBHistogramManipulatorLocationCode rgb_histogram_manipulator_hit_test_po
result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA;
#line 247 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 1931 "CustomComponents.c"
+#line 1936 "CustomComponents.c"
}
#line 249 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp2_ = x;
@@ -1935,20 +1940,20 @@ static RGBHistogramManipulatorLocationCode rgb_histogram_manipulator_hit_test_po
_tmp3_ = self->priv->left_nub_position;
#line 249 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp2_ > _tmp3_) {
-#line 1939 "CustomComponents.c"
- gint _tmp4_ = 0;
- gint _tmp5_ = 0;
+#line 1944 "CustomComponents.c"
+ gint _tmp4_;
+ gint _tmp5_;
#line 249 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp4_ = x;
#line 249 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp5_ = self->priv->left_nub_position;
#line 249 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp1_ = _tmp4_ < (_tmp5_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE);
-#line 1948 "CustomComponents.c"
+#line 1953 "CustomComponents.c"
} else {
#line 249 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp1_ = FALSE;
-#line 1952 "CustomComponents.c"
+#line 1957 "CustomComponents.c"
}
#line 249 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp1_) {
@@ -1956,7 +1961,7 @@ static RGBHistogramManipulatorLocationCode rgb_histogram_manipulator_hit_test_po
result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB;
#line 250 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 1960 "CustomComponents.c"
+#line 1965 "CustomComponents.c"
}
#line 252 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp7_ = x;
@@ -1964,20 +1969,20 @@ static RGBHistogramManipulatorLocationCode rgb_histogram_manipulator_hit_test_po
_tmp8_ = self->priv->right_nub_position;
#line 252 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp7_ > _tmp8_) {
-#line 1968 "CustomComponents.c"
- gint _tmp9_ = 0;
- gint _tmp10_ = 0;
+#line 1973 "CustomComponents.c"
+ gint _tmp9_;
+ gint _tmp10_;
#line 252 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp9_ = x;
#line 252 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp10_ = self->priv->right_nub_position;
#line 252 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp6_ = _tmp9_ < (_tmp10_ + RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE);
-#line 1977 "CustomComponents.c"
+#line 1982 "CustomComponents.c"
} else {
#line 252 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp6_ = FALSE;
-#line 1981 "CustomComponents.c"
+#line 1986 "CustomComponents.c"
}
#line 252 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp6_) {
@@ -1985,7 +1990,7 @@ static RGBHistogramManipulatorLocationCode rgb_histogram_manipulator_hit_test_po
result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB;
#line 253 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 1989 "CustomComponents.c"
+#line 1994 "CustomComponents.c"
}
#line 255 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp11_ = y;
@@ -1995,7 +2000,7 @@ static RGBHistogramManipulatorLocationCode rgb_histogram_manipulator_hit_test_po
result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_INSENSITIVE_AREA;
#line 256 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 1999 "CustomComponents.c"
+#line 2004 "CustomComponents.c"
}
#line 258 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp12_ = x;
@@ -2019,13 +2024,13 @@ static RGBHistogramManipulatorLocationCode rgb_histogram_manipulator_hit_test_po
result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH;
#line 260 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 2023 "CustomComponents.c"
+#line 2028 "CustomComponents.c"
} else {
#line 262 "/home/jens/Source/shotwell/src/CustomComponents.vala"
result = RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH;
#line 262 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 2029 "CustomComponents.c"
+#line 2034 "CustomComponents.c"
}
}
@@ -2033,12 +2038,12 @@ static RGBHistogramManipulatorLocationCode rgb_histogram_manipulator_hit_test_po
static gboolean rgb_histogram_manipulator_on_button_press (RGBHistogramManipulator* self, GdkEventButton* event_record) {
gboolean result = FALSE;
RGBHistogramManipulatorLocationCode loc = 0;
- GdkEventButton* _tmp0_ = NULL;
- gdouble _tmp1_ = 0.0;
- GdkEventButton* _tmp2_ = NULL;
- gdouble _tmp3_ = 0.0;
- RGBHistogramManipulatorLocationCode _tmp4_ = 0;
- RGBHistogramManipulatorLocationCode _tmp5_ = 0;
+ GdkEventButton* _tmp0_;
+ gdouble _tmp1_;
+ GdkEventButton* _tmp2_;
+ gdouble _tmp3_;
+ RGBHistogramManipulatorLocationCode _tmp4_;
+ RGBHistogramManipulatorLocationCode _tmp5_;
#line 265 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), FALSE);
#line 265 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2061,11 +2066,11 @@ static gboolean rgb_histogram_manipulator_on_button_press (RGBHistogramManipulat
switch (_tmp5_) {
#line 268 "/home/jens/Source/shotwell/src/CustomComponents.vala"
case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_NUB:
-#line 2065 "CustomComponents.c"
+#line 2070 "CustomComponents.c"
{
- GdkEventButton* _tmp6_ = NULL;
- gdouble _tmp7_ = 0.0;
- gint _tmp8_ = 0;
+ GdkEventButton* _tmp6_;
+ gdouble _tmp7_;
+ gint _tmp8_;
#line 270 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp6_ = event_record;
#line 270 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2082,15 +2087,15 @@ static gboolean rgb_histogram_manipulator_on_button_press (RGBHistogramManipulat
result = TRUE;
#line 273 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 2086 "CustomComponents.c"
+#line 2091 "CustomComponents.c"
}
#line 268 "/home/jens/Source/shotwell/src/CustomComponents.vala"
case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_NUB:
-#line 2090 "CustomComponents.c"
+#line 2095 "CustomComponents.c"
{
- GdkEventButton* _tmp9_ = NULL;
- gdouble _tmp10_ = 0.0;
- gint _tmp11_ = 0;
+ GdkEventButton* _tmp9_;
+ gdouble _tmp10_;
+ gint _tmp11_;
#line 276 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp9_ = event_record;
#line 276 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2107,17 +2112,17 @@ static gboolean rgb_histogram_manipulator_on_button_press (RGBHistogramManipulat
result = TRUE;
#line 279 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 2111 "CustomComponents.c"
+#line 2116 "CustomComponents.c"
}
#line 268 "/home/jens/Source/shotwell/src/CustomComponents.vala"
case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_LEFT_TROUGH:
-#line 2115 "CustomComponents.c"
+#line 2120 "CustomComponents.c"
{
- GdkEventButton* _tmp12_ = NULL;
- gdouble _tmp13_ = 0.0;
- gint _tmp14_ = 0;
- gint _tmp15_ = 0;
- gint _tmp16_ = 0;
+ GdkEventButton* _tmp12_;
+ gdouble _tmp13_;
+ gint _tmp14_;
+ gint _tmp15_;
+ gint _tmp16_;
#line 282 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp12_ = event_record;
#line 282 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2135,24 +2140,24 @@ static gboolean rgb_histogram_manipulator_on_button_press (RGBHistogramManipulat
#line 284 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_force_update (self);
#line 285 "/home/jens/Source/shotwell/src/CustomComponents.vala"
- g_signal_emit_by_name (self, "nub-position-changed");
+ g_signal_emit (self, rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL], 0);
#line 286 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_update_nub_extrema (self);
#line 287 "/home/jens/Source/shotwell/src/CustomComponents.vala"
result = TRUE;
#line 287 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 2146 "CustomComponents.c"
+#line 2151 "CustomComponents.c"
}
#line 268 "/home/jens/Source/shotwell/src/CustomComponents.vala"
case RGB_HISTOGRAM_MANIPULATOR_LOCATION_CODE_RIGHT_TROUGH:
-#line 2150 "CustomComponents.c"
+#line 2155 "CustomComponents.c"
{
- GdkEventButton* _tmp17_ = NULL;
- gdouble _tmp18_ = 0.0;
- gint _tmp19_ = 0;
- gint _tmp20_ = 0;
- gint _tmp21_ = 0;
+ GdkEventButton* _tmp17_;
+ gdouble _tmp18_;
+ gint _tmp19_;
+ gint _tmp20_;
+ gint _tmp21_;
#line 290 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp17_ = event_record;
#line 290 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2170,14 +2175,14 @@ static gboolean rgb_histogram_manipulator_on_button_press (RGBHistogramManipulat
#line 292 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_force_update (self);
#line 293 "/home/jens/Source/shotwell/src/CustomComponents.vala"
- g_signal_emit_by_name (self, "nub-position-changed");
+ g_signal_emit (self, rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL], 0);
#line 294 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_update_nub_extrema (self);
#line 295 "/home/jens/Source/shotwell/src/CustomComponents.vala"
result = TRUE;
#line 295 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 2181 "CustomComponents.c"
+#line 2186 "CustomComponents.c"
}
default:
{
@@ -2185,7 +2190,7 @@ static gboolean rgb_histogram_manipulator_on_button_press (RGBHistogramManipulat
result = FALSE;
#line 298 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 2189 "CustomComponents.c"
+#line 2194 "CustomComponents.c"
}
}
}
@@ -2194,7 +2199,7 @@ static gboolean rgb_histogram_manipulator_on_button_press (RGBHistogramManipulat
static gboolean rgb_histogram_manipulator_on_button_release (RGBHistogramManipulator* self, GdkEventButton* event_record) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
+ gboolean _tmp1_;
#line 302 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), FALSE);
#line 302 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2205,22 +2210,22 @@ static gboolean rgb_histogram_manipulator_on_button_release (RGBHistogramManipul
if (_tmp1_) {
#line 303 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = TRUE;
-#line 2209 "CustomComponents.c"
+#line 2214 "CustomComponents.c"
} else {
- gboolean _tmp2_ = FALSE;
+ gboolean _tmp2_;
#line 303 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp2_ = self->priv->is_right_nub_tracking;
#line 303 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = _tmp2_;
-#line 2216 "CustomComponents.c"
+#line 2221 "CustomComponents.c"
}
#line 303 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp0_) {
#line 304 "/home/jens/Source/shotwell/src/CustomComponents.vala"
- g_signal_emit_by_name (self, "nub-position-changed");
+ g_signal_emit (self, rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL], 0);
#line 305 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_update_nub_extrema (self);
-#line 2224 "CustomComponents.c"
+#line 2229 "CustomComponents.c"
}
#line 308 "/home/jens/Source/shotwell/src/CustomComponents.vala"
self->priv->is_left_nub_tracking = FALSE;
@@ -2230,15 +2235,15 @@ static gboolean rgb_histogram_manipulator_on_button_release (RGBHistogramManipul
result = FALSE;
#line 311 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 2234 "CustomComponents.c"
+#line 2239 "CustomComponents.c"
}
static gboolean rgb_histogram_manipulator_on_button_motion (RGBHistogramManipulator* self, GdkEventMotion* event_record) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
- gboolean _tmp1_ = FALSE;
- gboolean _tmp3_ = FALSE;
+ gboolean _tmp1_;
+ gboolean _tmp3_;
#line 314 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), FALSE);
#line 314 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2247,17 +2252,17 @@ static gboolean rgb_histogram_manipulator_on_button_motion (RGBHistogramManipula
_tmp1_ = self->priv->is_left_nub_tracking;
#line 315 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (!_tmp1_) {
-#line 2251 "CustomComponents.c"
- gboolean _tmp2_ = FALSE;
+#line 2256 "CustomComponents.c"
+ gboolean _tmp2_;
#line 315 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp2_ = self->priv->is_right_nub_tracking;
#line 315 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = !_tmp2_;
-#line 2257 "CustomComponents.c"
+#line 2262 "CustomComponents.c"
} else {
#line 315 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = FALSE;
-#line 2261 "CustomComponents.c"
+#line 2266 "CustomComponents.c"
}
#line 315 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp0_) {
@@ -2265,22 +2270,22 @@ static gboolean rgb_histogram_manipulator_on_button_motion (RGBHistogramManipula
result = FALSE;
#line 316 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 2269 "CustomComponents.c"
+#line 2274 "CustomComponents.c"
}
#line 318 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp3_ = self->priv->is_left_nub_tracking;
#line 318 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp3_) {
-#line 2275 "CustomComponents.c"
+#line 2280 "CustomComponents.c"
gint track_x_delta = 0;
- GdkEventMotion* _tmp4_ = NULL;
- gdouble _tmp5_ = 0.0;
- gint _tmp6_ = 0;
- gint _tmp7_ = 0;
- gint _tmp8_ = 0;
- gint _tmp9_ = 0;
- gint _tmp10_ = 0;
- gint _tmp11_ = 0;
+ GdkEventMotion* _tmp4_;
+ gdouble _tmp5_;
+ gint _tmp6_;
+ gint _tmp7_;
+ gint _tmp8_;
+ gint _tmp9_;
+ gint _tmp10_;
+ gint _tmp11_;
#line 319 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp4_ = event_record;
#line 319 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2303,17 +2308,17 @@ static gboolean rgb_histogram_manipulator_on_button_motion (RGBHistogramManipula
_tmp11_ = CLAMP (_tmp9_, 0, _tmp10_);
#line 321 "/home/jens/Source/shotwell/src/CustomComponents.vala"
self->priv->left_nub_position = _tmp11_;
-#line 2307 "CustomComponents.c"
+#line 2312 "CustomComponents.c"
} else {
gint track_x_delta = 0;
- GdkEventMotion* _tmp12_ = NULL;
- gdouble _tmp13_ = 0.0;
- gint _tmp14_ = 0;
- gint _tmp15_ = 0;
- gint _tmp16_ = 0;
- gint _tmp17_ = 0;
- gint _tmp18_ = 0;
- gint _tmp19_ = 0;
+ GdkEventMotion* _tmp12_;
+ gdouble _tmp13_;
+ gint _tmp14_;
+ gint _tmp15_;
+ gint _tmp16_;
+ gint _tmp17_;
+ gint _tmp18_;
+ gint _tmp19_;
#line 323 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp12_ = event_record;
#line 323 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2336,7 +2341,7 @@ static gboolean rgb_histogram_manipulator_on_button_motion (RGBHistogramManipula
_tmp19_ = CLAMP (_tmp17_, _tmp18_, 255);
#line 325 "/home/jens/Source/shotwell/src/CustomComponents.vala"
self->priv->right_nub_position = _tmp19_;
-#line 2340 "CustomComponents.c"
+#line 2345 "CustomComponents.c"
}
#line 328 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_force_update (self);
@@ -2344,7 +2349,7 @@ static gboolean rgb_histogram_manipulator_on_button_motion (RGBHistogramManipula
result = TRUE;
#line 329 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 2348 "CustomComponents.c"
+#line 2353 "CustomComponents.c"
}
@@ -2352,29 +2357,29 @@ static gboolean rgb_histogram_manipulator_real_draw (GtkWidget* base, cairo_t* c
RGBHistogramManipulator * self;
gboolean result = FALSE;
GtkBorder padding = {0};
- GtkStyleContext* _tmp0_ = NULL;
+ GtkStyleContext* _tmp0_;
GtkBorder _tmp1_ = {0};
GdkRectangle area = {0};
- GtkBorder _tmp2_ = {0};
- gint16 _tmp3_ = 0;
- GtkBorder _tmp4_ = {0};
- gint16 _tmp5_ = 0;
- GtkBorder _tmp6_ = {0};
- gint16 _tmp7_ = 0;
- GtkBorder _tmp8_ = {0};
- gint16 _tmp9_ = 0;
- cairo_t* _tmp10_ = NULL;
- GdkRectangle _tmp11_ = {0};
- cairo_t* _tmp12_ = NULL;
- GdkRectangle _tmp13_ = {0};
- cairo_t* _tmp14_ = NULL;
- GdkRectangle _tmp15_ = {0};
- cairo_t* _tmp16_ = NULL;
- GdkRectangle _tmp17_ = {0};
- gint _tmp18_ = 0;
- cairo_t* _tmp19_ = NULL;
- GdkRectangle _tmp20_ = {0};
- gint _tmp21_ = 0;
+ GtkBorder _tmp2_;
+ gint16 _tmp3_;
+ GtkBorder _tmp4_;
+ gint16 _tmp5_;
+ GtkBorder _tmp6_;
+ gint16 _tmp7_;
+ GtkBorder _tmp8_;
+ gint16 _tmp9_;
+ cairo_t* _tmp10_;
+ GdkRectangle _tmp11_;
+ cairo_t* _tmp12_;
+ GdkRectangle _tmp13_;
+ cairo_t* _tmp14_;
+ GdkRectangle _tmp15_;
+ cairo_t* _tmp16_;
+ GdkRectangle _tmp17_;
+ gint _tmp18_;
+ cairo_t* _tmp19_;
+ GdkRectangle _tmp20_;
+ gint _tmp21_;
#line 332 "/home/jens/Source/shotwell/src/CustomComponents.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator);
#line 332 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2449,32 +2454,32 @@ static gboolean rgb_histogram_manipulator_real_draw (GtkWidget* base, cairo_t* c
result = TRUE;
#line 347 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 2453 "CustomComponents.c"
+#line 2458 "CustomComponents.c"
}
static void rgb_histogram_manipulator_draw_histogram_frame (RGBHistogramManipulator* self, cairo_t* ctx, GdkRectangle* area) {
GdkRectangle framed_area = {0};
- GdkRectangle _tmp0_ = {0};
- gint _tmp1_ = 0;
- gint _tmp2_ = 0;
- gint _tmp3_ = 0;
- gint _tmp4_ = 0;
+ GdkRectangle _tmp0_;
+ gint _tmp1_;
+ gint _tmp2_;
+ gint _tmp3_;
+ gint _tmp4_;
GtkStyleContext* stylectx = NULL;
- GtkWidget* _tmp5_ = NULL;
- GtkStyleContext* _tmp6_ = NULL;
- GtkStyleContext* _tmp7_ = NULL;
- GtkWidgetPath* _tmp8_ = NULL;
- GtkWidgetPath* _tmp9_ = NULL;
- cairo_t* _tmp10_ = NULL;
- GdkRectangle _tmp11_ = {0};
- gint _tmp12_ = 0;
- GdkRectangle _tmp13_ = {0};
- gint _tmp14_ = 0;
- GdkRectangle _tmp15_ = {0};
- gint _tmp16_ = 0;
- GdkRectangle _tmp17_ = {0};
- gint _tmp18_ = 0;
+ GtkWidget* _tmp5_;
+ GtkStyleContext* _tmp6_;
+ GtkStyleContext* _tmp7_;
+ GtkWidgetPath* _tmp8_;
+ GtkWidgetPath* _tmp9_;
+ cairo_t* _tmp10_;
+ GdkRectangle _tmp11_;
+ gint _tmp12_;
+ GdkRectangle _tmp13_;
+ gint _tmp14_;
+ GdkRectangle _tmp15_;
+ gint _tmp16_;
+ GdkRectangle _tmp17_;
+ gint _tmp18_;
#line 350 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
#line 350 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2547,38 +2552,38 @@ static void rgb_histogram_manipulator_draw_histogram_frame (RGBHistogramManipula
gtk_style_context_restore (stylectx);
#line 350 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_g_object_unref0 (stylectx);
-#line 2551 "CustomComponents.c"
+#line 2556 "CustomComponents.c"
}
static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* self, cairo_t* ctx, GdkRectangle* area) {
- RGBHistogram* _tmp0_ = NULL;
+ RGBHistogram* _tmp0_;
GdkPixbuf* histogram_graphic = NULL;
- RGBHistogram* _tmp1_ = NULL;
- GdkPixbuf* _tmp2_ = NULL;
- GdkPixbuf* _tmp3_ = NULL;
- GdkPixbuf* _tmp4_ = NULL;
- GdkPixbuf* _tmp5_ = NULL;
+ RGBHistogram* _tmp1_;
+ GdkPixbuf* _tmp2_;
+ GdkPixbuf* _tmp3_;
+ GdkPixbuf* _tmp4_;
+ GdkPixbuf* _tmp5_;
guchar* pixel_data = NULL;
- GdkPixbuf* _tmp6_ = NULL;
- guint8* _tmp7_ = NULL;
- gint pixel_data_length1 = 0;
- gint _pixel_data_size_ = 0;
+ GdkPixbuf* _tmp6_;
+ guint8* _tmp7_;
+ gint pixel_data_length1;
+ gint _pixel_data_size_;
gint edge_blend_red = 0;
gint edge_blend_green = 0;
gint edge_blend_blue = 0;
gint body_blend_red = 0;
gint body_blend_green = 0;
gint body_blend_blue = 0;
- gint _tmp8_ = 0;
- gint _tmp80_ = 0;
- cairo_t* _tmp158_ = NULL;
- GdkPixbuf* _tmp159_ = NULL;
- GdkRectangle _tmp160_ = {0};
- gint _tmp161_ = 0;
- GdkRectangle _tmp162_ = {0};
- gint _tmp163_ = 0;
- cairo_t* _tmp164_ = NULL;
+ gint _tmp8_;
+ gint _tmp80_;
+ cairo_t* _tmp158_;
+ GdkPixbuf* _tmp159_;
+ GdkRectangle _tmp160_;
+ gint _tmp161_;
+ GdkRectangle _tmp162_;
+ gint _tmp163_;
+ cairo_t* _tmp164_;
#line 374 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
#line 374 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2591,7 +2596,7 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
if (_tmp0_ == NULL) {
#line 376 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return;
-#line 2595 "CustomComponents.c"
+#line 2600 "CustomComponents.c"
}
#line 378 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp1_ = self->priv->histogram;
@@ -2633,12 +2638,12 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
_tmp8_ = self->priv->left_nub_position;
#line 388 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp8_ > 0) {
-#line 2637 "CustomComponents.c"
+#line 2642 "CustomComponents.c"
gint edge_pixel_index = 0;
- GdkPixbuf* _tmp9_ = NULL;
- gint _tmp10_ = 0;
- gint _tmp11_ = 0;
- gint _tmp12_ = 0;
+ GdkPixbuf* _tmp9_;
+ gint _tmp10_;
+ gint _tmp11_;
+ gint _tmp12_;
#line 389 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp9_ = histogram_graphic;
#line 389 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2649,74 +2654,74 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
_tmp12_ = self->priv->left_nub_position;
#line 389 "/home/jens/Source/shotwell/src/CustomComponents.vala"
edge_pixel_index = _tmp11_ * _tmp12_;
-#line 2653 "CustomComponents.c"
+#line 2658 "CustomComponents.c"
{
gint i = 0;
#line 390 "/home/jens/Source/shotwell/src/CustomComponents.vala"
i = 0;
-#line 2658 "CustomComponents.c"
+#line 2663 "CustomComponents.c"
{
gboolean _tmp13_ = FALSE;
#line 390 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp13_ = TRUE;
#line 390 "/home/jens/Source/shotwell/src/CustomComponents.vala"
while (TRUE) {
-#line 2665 "CustomComponents.c"
- gint _tmp15_ = 0;
- GdkPixbuf* _tmp16_ = NULL;
- gint _tmp17_ = 0;
- gint _tmp18_ = 0;
+#line 2670 "CustomComponents.c"
+ gint _tmp15_;
+ GdkPixbuf* _tmp16_;
+ gint _tmp17_;
+ gint _tmp18_;
gint body_pixel_index = 0;
- gint _tmp19_ = 0;
- GdkPixbuf* _tmp20_ = NULL;
- gint _tmp21_ = 0;
- gint _tmp22_ = 0;
+ gint _tmp19_;
+ GdkPixbuf* _tmp20_;
+ gint _tmp21_;
+ gint _tmp22_;
gint row_last_pixel = 0;
- gint _tmp23_ = 0;
- GdkPixbuf* _tmp24_ = NULL;
- gint _tmp25_ = 0;
- gint _tmp26_ = 0;
- gint _tmp27_ = 0;
- guchar* _tmp55_ = NULL;
- gint _tmp55__length1 = 0;
- gint _tmp56_ = 0;
- guchar* _tmp57_ = NULL;
- gint _tmp57__length1 = 0;
- gint _tmp58_ = 0;
- guchar _tmp59_ = '\0';
- gint _tmp60_ = 0;
- guchar _tmp61_ = '\0';
- guchar* _tmp62_ = NULL;
- gint _tmp62__length1 = 0;
- gint _tmp63_ = 0;
- guchar* _tmp64_ = NULL;
- gint _tmp64__length1 = 0;
- gint _tmp65_ = 0;
- guchar _tmp66_ = '\0';
- gint _tmp67_ = 0;
- guchar _tmp68_ = '\0';
- guchar* _tmp69_ = NULL;
- gint _tmp69__length1 = 0;
- gint _tmp70_ = 0;
- guchar* _tmp71_ = NULL;
- gint _tmp71__length1 = 0;
- gint _tmp72_ = 0;
- guchar _tmp73_ = '\0';
- gint _tmp74_ = 0;
- guchar _tmp75_ = '\0';
- gint _tmp76_ = 0;
- GdkPixbuf* _tmp77_ = NULL;
- gint _tmp78_ = 0;
- gint _tmp79_ = 0;
+ gint _tmp23_;
+ GdkPixbuf* _tmp24_;
+ gint _tmp25_;
+ gint _tmp26_;
+ gint _tmp27_;
+ guchar* _tmp55_;
+ gint _tmp55__length1;
+ gint _tmp56_;
+ guchar* _tmp57_;
+ gint _tmp57__length1;
+ gint _tmp58_;
+ guchar _tmp59_;
+ gint _tmp60_;
+ guchar _tmp61_;
+ guchar* _tmp62_;
+ gint _tmp62__length1;
+ gint _tmp63_;
+ guchar* _tmp64_;
+ gint _tmp64__length1;
+ gint _tmp65_;
+ guchar _tmp66_;
+ gint _tmp67_;
+ guchar _tmp68_;
+ guchar* _tmp69_;
+ gint _tmp69__length1;
+ gint _tmp70_;
+ guchar* _tmp71_;
+ gint _tmp71__length1;
+ gint _tmp72_;
+ guchar _tmp73_;
+ gint _tmp74_;
+ guchar _tmp75_;
+ gint _tmp76_;
+ GdkPixbuf* _tmp77_;
+ gint _tmp78_;
+ gint _tmp79_;
#line 390 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (!_tmp13_) {
-#line 2714 "CustomComponents.c"
- gint _tmp14_ = 0;
+#line 2719 "CustomComponents.c"
+ gint _tmp14_;
#line 390 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp14_ = i;
#line 390 "/home/jens/Source/shotwell/src/CustomComponents.vala"
i = _tmp14_ + 1;
-#line 2720 "CustomComponents.c"
+#line 2725 "CustomComponents.c"
}
#line 390 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp13_ = FALSE;
@@ -2732,7 +2737,7 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
if (!(_tmp15_ < _tmp18_)) {
#line 390 "/home/jens/Source/shotwell/src/CustomComponents.vala"
break;
-#line 2736 "CustomComponents.c"
+#line 2741 "CustomComponents.c"
}
#line 391 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp19_ = i;
@@ -2758,40 +2763,40 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
row_last_pixel = _tmp23_ + (_tmp26_ * _tmp27_);
#line 394 "/home/jens/Source/shotwell/src/CustomComponents.vala"
while (TRUE) {
-#line 2762 "CustomComponents.c"
- gint _tmp28_ = 0;
- gint _tmp29_ = 0;
- guchar* _tmp30_ = NULL;
- gint _tmp30__length1 = 0;
- gint _tmp31_ = 0;
- guchar* _tmp32_ = NULL;
- gint _tmp32__length1 = 0;
- gint _tmp33_ = 0;
- guchar _tmp34_ = '\0';
- gint _tmp35_ = 0;
- guchar _tmp36_ = '\0';
- guchar* _tmp37_ = NULL;
- gint _tmp37__length1 = 0;
- gint _tmp38_ = 0;
- guchar* _tmp39_ = NULL;
- gint _tmp39__length1 = 0;
- gint _tmp40_ = 0;
- guchar _tmp41_ = '\0';
- gint _tmp42_ = 0;
- guchar _tmp43_ = '\0';
- guchar* _tmp44_ = NULL;
- gint _tmp44__length1 = 0;
- gint _tmp45_ = 0;
- guchar* _tmp46_ = NULL;
- gint _tmp46__length1 = 0;
- gint _tmp47_ = 0;
- guchar _tmp48_ = '\0';
- gint _tmp49_ = 0;
- guchar _tmp50_ = '\0';
- gint _tmp51_ = 0;
- GdkPixbuf* _tmp52_ = NULL;
- gint _tmp53_ = 0;
- gint _tmp54_ = 0;
+#line 2767 "CustomComponents.c"
+ gint _tmp28_;
+ gint _tmp29_;
+ guchar* _tmp30_;
+ gint _tmp30__length1;
+ gint _tmp31_;
+ guchar* _tmp32_;
+ gint _tmp32__length1;
+ gint _tmp33_;
+ guchar _tmp34_;
+ gint _tmp35_;
+ guchar _tmp36_;
+ guchar* _tmp37_;
+ gint _tmp37__length1;
+ gint _tmp38_;
+ guchar* _tmp39_;
+ gint _tmp39__length1;
+ gint _tmp40_;
+ guchar _tmp41_;
+ gint _tmp42_;
+ guchar _tmp43_;
+ guchar* _tmp44_;
+ gint _tmp44__length1;
+ gint _tmp45_;
+ guchar* _tmp46_;
+ gint _tmp46__length1;
+ gint _tmp47_;
+ guchar _tmp48_;
+ gint _tmp49_;
+ guchar _tmp50_;
+ gint _tmp51_;
+ GdkPixbuf* _tmp52_;
+ gint _tmp53_;
+ gint _tmp54_;
#line 394 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp28_ = body_pixel_index;
#line 394 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2800,7 +2805,7 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
if (!(_tmp28_ < _tmp29_)) {
#line 394 "/home/jens/Source/shotwell/src/CustomComponents.vala"
break;
-#line 2804 "CustomComponents.c"
+#line 2809 "CustomComponents.c"
}
#line 395 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp30_ = pixel_data;
@@ -2872,7 +2877,7 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
_tmp54_ = _tmp53_;
#line 402 "/home/jens/Source/shotwell/src/CustomComponents.vala"
body_pixel_index = _tmp51_ + _tmp54_;
-#line 2876 "CustomComponents.c"
+#line 2881 "CustomComponents.c"
}
#line 405 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp55_ = pixel_data;
@@ -2944,7 +2949,7 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
_tmp79_ = _tmp78_;
#line 412 "/home/jens/Source/shotwell/src/CustomComponents.vala"
edge_pixel_index = _tmp76_ + _tmp79_;
-#line 2948 "CustomComponents.c"
+#line 2953 "CustomComponents.c"
}
}
}
@@ -2965,12 +2970,12 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
_tmp80_ = self->priv->right_nub_position;
#line 423 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp80_ < 255) {
-#line 2969 "CustomComponents.c"
+#line 2974 "CustomComponents.c"
gint edge_pixel_index = 0;
- GdkPixbuf* _tmp81_ = NULL;
- gint _tmp82_ = 0;
- gint _tmp83_ = 0;
- gint _tmp84_ = 0;
+ GdkPixbuf* _tmp81_;
+ gint _tmp82_;
+ gint _tmp83_;
+ gint _tmp84_;
#line 424 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp81_ = histogram_graphic;
#line 424 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -2981,80 +2986,80 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
_tmp84_ = self->priv->right_nub_position;
#line 424 "/home/jens/Source/shotwell/src/CustomComponents.vala"
edge_pixel_index = _tmp83_ * _tmp84_;
-#line 2985 "CustomComponents.c"
+#line 2990 "CustomComponents.c"
{
gint i = 0;
#line 425 "/home/jens/Source/shotwell/src/CustomComponents.vala"
i = 0;
-#line 2990 "CustomComponents.c"
+#line 2995 "CustomComponents.c"
{
gboolean _tmp85_ = FALSE;
#line 425 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp85_ = TRUE;
#line 425 "/home/jens/Source/shotwell/src/CustomComponents.vala"
while (TRUE) {
-#line 2997 "CustomComponents.c"
- gint _tmp87_ = 0;
- GdkPixbuf* _tmp88_ = NULL;
- gint _tmp89_ = 0;
- gint _tmp90_ = 0;
+#line 3002 "CustomComponents.c"
+ gint _tmp87_;
+ GdkPixbuf* _tmp88_;
+ gint _tmp89_;
+ gint _tmp90_;
gint body_pixel_index = 0;
- gint _tmp91_ = 0;
- GdkPixbuf* _tmp92_ = NULL;
- gint _tmp93_ = 0;
- gint _tmp94_ = 0;
- GdkPixbuf* _tmp95_ = NULL;
- gint _tmp96_ = 0;
- gint _tmp97_ = 0;
+ gint _tmp91_;
+ GdkPixbuf* _tmp92_;
+ gint _tmp93_;
+ gint _tmp94_;
+ GdkPixbuf* _tmp95_;
+ gint _tmp96_;
+ gint _tmp97_;
gint row_last_pixel = 0;
- gint _tmp98_ = 0;
- GdkPixbuf* _tmp99_ = NULL;
- gint _tmp100_ = 0;
- gint _tmp101_ = 0;
- GdkPixbuf* _tmp102_ = NULL;
- gint _tmp103_ = 0;
- gint _tmp104_ = 0;
- gint _tmp105_ = 0;
- guchar* _tmp133_ = NULL;
- gint _tmp133__length1 = 0;
- gint _tmp134_ = 0;
- guchar* _tmp135_ = NULL;
- gint _tmp135__length1 = 0;
- gint _tmp136_ = 0;
- guchar _tmp137_ = '\0';
- gint _tmp138_ = 0;
- guchar _tmp139_ = '\0';
- guchar* _tmp140_ = NULL;
- gint _tmp140__length1 = 0;
- gint _tmp141_ = 0;
- guchar* _tmp142_ = NULL;
- gint _tmp142__length1 = 0;
- gint _tmp143_ = 0;
- guchar _tmp144_ = '\0';
- gint _tmp145_ = 0;
- guchar _tmp146_ = '\0';
- guchar* _tmp147_ = NULL;
- gint _tmp147__length1 = 0;
- gint _tmp148_ = 0;
- guchar* _tmp149_ = NULL;
- gint _tmp149__length1 = 0;
- gint _tmp150_ = 0;
- guchar _tmp151_ = '\0';
- gint _tmp152_ = 0;
- guchar _tmp153_ = '\0';
- gint _tmp154_ = 0;
- GdkPixbuf* _tmp155_ = NULL;
- gint _tmp156_ = 0;
- gint _tmp157_ = 0;
+ gint _tmp98_;
+ GdkPixbuf* _tmp99_;
+ gint _tmp100_;
+ gint _tmp101_;
+ GdkPixbuf* _tmp102_;
+ gint _tmp103_;
+ gint _tmp104_;
+ gint _tmp105_;
+ guchar* _tmp133_;
+ gint _tmp133__length1;
+ gint _tmp134_;
+ guchar* _tmp135_;
+ gint _tmp135__length1;
+ gint _tmp136_;
+ guchar _tmp137_;
+ gint _tmp138_;
+ guchar _tmp139_;
+ guchar* _tmp140_;
+ gint _tmp140__length1;
+ gint _tmp141_;
+ guchar* _tmp142_;
+ gint _tmp142__length1;
+ gint _tmp143_;
+ guchar _tmp144_;
+ gint _tmp145_;
+ guchar _tmp146_;
+ guchar* _tmp147_;
+ gint _tmp147__length1;
+ gint _tmp148_;
+ guchar* _tmp149_;
+ gint _tmp149__length1;
+ gint _tmp150_;
+ guchar _tmp151_;
+ gint _tmp152_;
+ guchar _tmp153_;
+ gint _tmp154_;
+ GdkPixbuf* _tmp155_;
+ gint _tmp156_;
+ gint _tmp157_;
#line 425 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (!_tmp85_) {
-#line 3052 "CustomComponents.c"
- gint _tmp86_ = 0;
+#line 3057 "CustomComponents.c"
+ gint _tmp86_;
#line 425 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp86_ = i;
#line 425 "/home/jens/Source/shotwell/src/CustomComponents.vala"
i = _tmp86_ + 1;
-#line 3058 "CustomComponents.c"
+#line 3063 "CustomComponents.c"
}
#line 425 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp85_ = FALSE;
@@ -3070,7 +3075,7 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
if (!(_tmp87_ < _tmp90_)) {
#line 425 "/home/jens/Source/shotwell/src/CustomComponents.vala"
break;
-#line 3074 "CustomComponents.c"
+#line 3079 "CustomComponents.c"
}
#line 426 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp91_ = i;
@@ -3108,40 +3113,40 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
row_last_pixel = (_tmp98_ * _tmp101_) + (_tmp104_ * _tmp105_);
#line 430 "/home/jens/Source/shotwell/src/CustomComponents.vala"
while (TRUE) {
-#line 3112 "CustomComponents.c"
- gint _tmp106_ = 0;
- gint _tmp107_ = 0;
- guchar* _tmp108_ = NULL;
- gint _tmp108__length1 = 0;
- gint _tmp109_ = 0;
- guchar* _tmp110_ = NULL;
- gint _tmp110__length1 = 0;
- gint _tmp111_ = 0;
- guchar _tmp112_ = '\0';
- gint _tmp113_ = 0;
- guchar _tmp114_ = '\0';
- guchar* _tmp115_ = NULL;
- gint _tmp115__length1 = 0;
- gint _tmp116_ = 0;
- guchar* _tmp117_ = NULL;
- gint _tmp117__length1 = 0;
- gint _tmp118_ = 0;
- guchar _tmp119_ = '\0';
- gint _tmp120_ = 0;
- guchar _tmp121_ = '\0';
- guchar* _tmp122_ = NULL;
- gint _tmp122__length1 = 0;
- gint _tmp123_ = 0;
- guchar* _tmp124_ = NULL;
- gint _tmp124__length1 = 0;
- gint _tmp125_ = 0;
- guchar _tmp126_ = '\0';
- gint _tmp127_ = 0;
- guchar _tmp128_ = '\0';
- gint _tmp129_ = 0;
- GdkPixbuf* _tmp130_ = NULL;
- gint _tmp131_ = 0;
- gint _tmp132_ = 0;
+#line 3117 "CustomComponents.c"
+ gint _tmp106_;
+ gint _tmp107_;
+ guchar* _tmp108_;
+ gint _tmp108__length1;
+ gint _tmp109_;
+ guchar* _tmp110_;
+ gint _tmp110__length1;
+ gint _tmp111_;
+ guchar _tmp112_;
+ gint _tmp113_;
+ guchar _tmp114_;
+ guchar* _tmp115_;
+ gint _tmp115__length1;
+ gint _tmp116_;
+ guchar* _tmp117_;
+ gint _tmp117__length1;
+ gint _tmp118_;
+ guchar _tmp119_;
+ gint _tmp120_;
+ guchar _tmp121_;
+ guchar* _tmp122_;
+ gint _tmp122__length1;
+ gint _tmp123_;
+ guchar* _tmp124_;
+ gint _tmp124__length1;
+ gint _tmp125_;
+ guchar _tmp126_;
+ gint _tmp127_;
+ guchar _tmp128_;
+ gint _tmp129_;
+ GdkPixbuf* _tmp130_;
+ gint _tmp131_;
+ gint _tmp132_;
#line 430 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp106_ = body_pixel_index;
#line 430 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -3150,7 +3155,7 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
if (!(_tmp106_ > _tmp107_)) {
#line 430 "/home/jens/Source/shotwell/src/CustomComponents.vala"
break;
-#line 3154 "CustomComponents.c"
+#line 3159 "CustomComponents.c"
}
#line 431 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp108_ = pixel_data;
@@ -3222,7 +3227,7 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
_tmp132_ = _tmp131_;
#line 438 "/home/jens/Source/shotwell/src/CustomComponents.vala"
body_pixel_index = _tmp129_ - _tmp132_;
-#line 3226 "CustomComponents.c"
+#line 3231 "CustomComponents.c"
}
#line 440 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp133_ = pixel_data;
@@ -3294,7 +3299,7 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
_tmp157_ = _tmp156_;
#line 447 "/home/jens/Source/shotwell/src/CustomComponents.vala"
edge_pixel_index = _tmp154_ + _tmp157_;
-#line 3298 "CustomComponents.c"
+#line 3303 "CustomComponents.c"
}
}
}
@@ -3319,24 +3324,24 @@ static void rgb_histogram_manipulator_draw_histogram (RGBHistogramManipulator* s
cairo_paint (_tmp164_);
#line 374 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_g_object_unref0 (histogram_graphic);
-#line 3323 "CustomComponents.c"
+#line 3328 "CustomComponents.c"
}
static void rgb_histogram_manipulator_draw_trough (RGBHistogramManipulator* self, cairo_t* ctx, GdkRectangle* area) {
gint trough_x = 0;
- GdkRectangle _tmp0_ = {0};
- gint _tmp1_ = 0;
+ GdkRectangle _tmp0_;
+ gint _tmp1_;
gint trough_y = 0;
- GdkRectangle _tmp2_ = {0};
- gint _tmp3_ = 0;
+ GdkRectangle _tmp2_;
+ gint _tmp3_;
GtkStyleContext* stylectx = NULL;
- GtkWidget* _tmp4_ = NULL;
- GtkStyleContext* _tmp5_ = NULL;
- GtkStyleContext* _tmp6_ = NULL;
- GtkWidgetPath* _tmp7_ = NULL;
- GtkWidgetPath* _tmp8_ = NULL;
- cairo_t* _tmp9_ = NULL;
+ GtkWidget* _tmp4_;
+ GtkStyleContext* _tmp5_;
+ GtkStyleContext* _tmp6_;
+ GtkWidgetPath* _tmp7_;
+ GtkWidgetPath* _tmp8_;
+ cairo_t* _tmp9_;
#line 455 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
#line 455 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -3383,19 +3388,19 @@ static void rgb_histogram_manipulator_draw_trough (RGBHistogramManipulator* self
gtk_style_context_restore (stylectx);
#line 455 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_g_object_unref0 (stylectx);
-#line 3387 "CustomComponents.c"
+#line 3392 "CustomComponents.c"
}
static void rgb_histogram_manipulator_draw_nub (RGBHistogramManipulator* self, cairo_t* ctx, GdkRectangle* area, gint position) {
- cairo_t* _tmp0_ = NULL;
- GdkPixbuf* _tmp1_ = NULL;
- GdkRectangle _tmp2_ = {0};
- gint _tmp3_ = 0;
- gint _tmp4_ = 0;
- GdkRectangle _tmp5_ = {0};
- gint _tmp6_ = 0;
- cairo_t* _tmp7_ = NULL;
+ cairo_t* _tmp0_;
+ GdkPixbuf* _tmp1_;
+ GdkRectangle _tmp2_;
+ gint _tmp3_;
+ gint _tmp4_;
+ GdkRectangle _tmp5_;
+ gint _tmp6_;
+ cairo_t* _tmp7_;
#line 471 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
#line 471 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -3422,13 +3427,13 @@ static void rgb_histogram_manipulator_draw_nub (RGBHistogramManipulator* self, c
_tmp7_ = ctx;
#line 473 "/home/jens/Source/shotwell/src/CustomComponents.vala"
cairo_paint (_tmp7_);
-#line 3426 "CustomComponents.c"
+#line 3431 "CustomComponents.c"
}
static void rgb_histogram_manipulator_force_update (RGBHistogramManipulator* self) {
- GdkWindow* _tmp0_ = NULL;
- GdkWindow* _tmp1_ = NULL;
+ GdkWindow* _tmp0_;
+ GdkWindow* _tmp1_;
#line 476 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
#line 477 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -3439,13 +3444,13 @@ static void rgb_histogram_manipulator_force_update (RGBHistogramManipulator* sel
_tmp1_ = gtk_widget_get_window (G_TYPE_CHECK_INSTANCE_CAST (self, gtk_widget_get_type (), GtkWidget));
#line 478 "/home/jens/Source/shotwell/src/CustomComponents.vala"
gdk_window_process_updates (_tmp1_, TRUE);
-#line 3443 "CustomComponents.c"
+#line 3448 "CustomComponents.c"
}
static void rgb_histogram_manipulator_update_nub_extrema (RGBHistogramManipulator* self) {
- gint _tmp0_ = 0;
- gint _tmp1_ = 0;
+ gint _tmp0_;
+ gint _tmp1_;
#line 481 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
#line 482 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -3456,13 +3461,13 @@ static void rgb_histogram_manipulator_update_nub_extrema (RGBHistogramManipulato
_tmp1_ = self->priv->right_nub_position;
#line 483 "/home/jens/Source/shotwell/src/CustomComponents.vala"
self->priv->left_nub_max = (_tmp1_ - RGB_HISTOGRAM_MANIPULATOR_NUB_SIZE) - 1;
-#line 3460 "CustomComponents.c"
+#line 3465 "CustomComponents.c"
}
void rgb_histogram_manipulator_update_histogram (RGBHistogramManipulator* self, GdkPixbuf* source_pixbuf) {
- GdkPixbuf* _tmp0_ = NULL;
- RGBHistogram* _tmp1_ = NULL;
+ GdkPixbuf* _tmp0_;
+ RGBHistogram* _tmp1_;
#line 488 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
#line 488 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -3477,13 +3482,13 @@ void rgb_histogram_manipulator_update_histogram (RGBHistogramManipulator* self,
self->priv->histogram = _tmp1_;
#line 490 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_force_update (self);
-#line 3481 "CustomComponents.c"
+#line 3486 "CustomComponents.c"
}
gint rgb_histogram_manipulator_get_left_nub_position (RGBHistogramManipulator* self) {
gint result = 0;
- gint _tmp0_ = 0;
+ gint _tmp0_;
#line 493 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), 0);
#line 494 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -3492,13 +3497,13 @@ gint rgb_histogram_manipulator_get_left_nub_position (RGBHistogramManipulator* s
result = _tmp0_;
#line 494 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 3496 "CustomComponents.c"
+#line 3501 "CustomComponents.c"
}
gint rgb_histogram_manipulator_get_right_nub_position (RGBHistogramManipulator* self) {
gint result = 0;
- gint _tmp0_ = 0;
+ gint _tmp0_;
#line 497 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_val_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self), 0);
#line 498 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -3507,33 +3512,33 @@ gint rgb_histogram_manipulator_get_right_nub_position (RGBHistogramManipulator*
result = _tmp0_;
#line 498 "/home/jens/Source/shotwell/src/CustomComponents.vala"
return result;
-#line 3511 "CustomComponents.c"
+#line 3516 "CustomComponents.c"
}
void rgb_histogram_manipulator_set_left_nub_position (RGBHistogramManipulator* self, gint user_nub_pos) {
gboolean _tmp0_ = FALSE;
- gint _tmp1_ = 0;
- gint _tmp3_ = 0;
- gint _tmp4_ = 0;
- gint _tmp5_ = 0;
+ gint _tmp1_;
+ gint _tmp3_;
+ gint _tmp4_;
+ gint _tmp5_;
#line 501 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
#line 502 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp1_ = user_nub_pos;
#line 502 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp1_ >= 0) {
-#line 3527 "CustomComponents.c"
- gint _tmp2_ = 0;
+#line 3532 "CustomComponents.c"
+ gint _tmp2_;
#line 502 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp2_ = user_nub_pos;
#line 502 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = _tmp2_ <= 255;
-#line 3533 "CustomComponents.c"
+#line 3538 "CustomComponents.c"
} else {
#line 502 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = FALSE;
-#line 3537 "CustomComponents.c"
+#line 3542 "CustomComponents.c"
}
#line 502 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_vala_assert (_tmp0_, "(user_nub_pos >= 0) && (user_nub_pos <= 255)");
@@ -3547,33 +3552,33 @@ void rgb_histogram_manipulator_set_left_nub_position (RGBHistogramManipulator* s
self->priv->left_nub_position = _tmp5_;
#line 504 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_update_nub_extrema (self);
-#line 3551 "CustomComponents.c"
+#line 3556 "CustomComponents.c"
}
void rgb_histogram_manipulator_set_right_nub_position (RGBHistogramManipulator* self, gint user_nub_pos) {
gboolean _tmp0_ = FALSE;
- gint _tmp1_ = 0;
- gint _tmp3_ = 0;
- gint _tmp4_ = 0;
- gint _tmp5_ = 0;
+ gint _tmp1_;
+ gint _tmp3_;
+ gint _tmp4_;
+ gint _tmp5_;
#line 507 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_return_if_fail (IS_RGB_HISTOGRAM_MANIPULATOR (self));
#line 508 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp1_ = user_nub_pos;
#line 508 "/home/jens/Source/shotwell/src/CustomComponents.vala"
if (_tmp1_ >= 0) {
-#line 3567 "CustomComponents.c"
- gint _tmp2_ = 0;
+#line 3572 "CustomComponents.c"
+ gint _tmp2_;
#line 508 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp2_ = user_nub_pos;
#line 508 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = _tmp2_ <= 255;
-#line 3573 "CustomComponents.c"
+#line 3578 "CustomComponents.c"
} else {
#line 508 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = FALSE;
-#line 3577 "CustomComponents.c"
+#line 3582 "CustomComponents.c"
}
#line 508 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_vala_assert (_tmp0_, "(user_nub_pos >= 0) && (user_nub_pos <= 255)");
@@ -3587,23 +3592,23 @@ void rgb_histogram_manipulator_set_right_nub_position (RGBHistogramManipulator*
self->priv->right_nub_position = _tmp5_;
#line 510 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_update_nub_extrema (self);
-#line 3591 "CustomComponents.c"
+#line 3596 "CustomComponents.c"
}
static void rgb_histogram_manipulator_class_init (RGBHistogramManipulatorClass * klass) {
- GtkWidgetPath* _tmp0_ = NULL;
- GtkWidgetPath* _tmp1_ = NULL;
+ GtkWidgetPath* _tmp0_;
+ GtkWidgetPath* _tmp1_;
#line 185 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_parent_class = g_type_class_peek_parent (klass);
#line 185 "/home/jens/Source/shotwell/src/CustomComponents.vala"
g_type_class_add_private (klass, sizeof (RGBHistogramManipulatorPrivate));
#line 185 "/home/jens/Source/shotwell/src/CustomComponents.vala"
- ((GtkWidgetClass *) klass)->draw = (gboolean (*)(GtkWidget*, cairo_t*)) rgb_histogram_manipulator_real_draw;
+ ((GtkWidgetClass *) klass)->draw = (gboolean (*) (GtkWidget *, cairo_t*)) rgb_histogram_manipulator_real_draw;
#line 185 "/home/jens/Source/shotwell/src/CustomComponents.vala"
G_OBJECT_CLASS (klass)->finalize = rgb_histogram_manipulator_finalize;
#line 185 "/home/jens/Source/shotwell/src/CustomComponents.vala"
- g_signal_new ("nub_position_changed", TYPE_RGB_HISTOGRAM_MANIPULATOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+ rgb_histogram_manipulator_signals[RGB_HISTOGRAM_MANIPULATOR_NUB_POSITION_CHANGED_SIGNAL] = g_signal_new ("nub-position-changed", TYPE_RGB_HISTOGRAM_MANIPULATOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 203 "/home/jens/Source/shotwell/src/CustomComponents.vala"
_tmp0_ = gtk_widget_path_new ();
#line 203 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -3612,12 +3617,12 @@ static void rgb_histogram_manipulator_class_init (RGBHistogramManipulatorClass *
_tmp1_ = gtk_widget_path_new ();
#line 204 "/home/jens/Source/shotwell/src/CustomComponents.vala"
rgb_histogram_manipulator_frame_draw_path = _tmp1_;
-#line 3616 "CustomComponents.c"
+#line 3621 "CustomComponents.c"
}
static void rgb_histogram_manipulator_instance_init (RGBHistogramManipulator * self) {
- GdkPixbuf* _tmp0_ = NULL;
+ GdkPixbuf* _tmp0_;
#line 185 "/home/jens/Source/shotwell/src/CustomComponents.vala"
self->priv = RGB_HISTOGRAM_MANIPULATOR_GET_PRIVATE (self);
#line 198 "/home/jens/Source/shotwell/src/CustomComponents.vala"
@@ -3642,11 +3647,11 @@ static void rgb_histogram_manipulator_instance_init (RGBHistogramManipulator * s
self->priv->track_start_x = 0;
#line 214 "/home/jens/Source/shotwell/src/CustomComponents.vala"
self->priv->track_nub_start_position = 0;
-#line 3646 "CustomComponents.c"
+#line 3651 "CustomComponents.c"
}
-static void rgb_histogram_manipulator_finalize (GObject* obj) {
+static void rgb_histogram_manipulator_finalize (GObject * obj) {
RGBHistogramManipulator * self;
#line 185 "/home/jens/Source/shotwell/src/CustomComponents.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_RGB_HISTOGRAM_MANIPULATOR, RGBHistogramManipulator);
@@ -3656,7 +3661,7 @@ static void rgb_histogram_manipulator_finalize (GObject* obj) {
_g_object_unref0 (self->priv->nub_pixbuf);
#line 185 "/home/jens/Source/shotwell/src/CustomComponents.vala"
G_OBJECT_CLASS (rgb_histogram_manipulator_parent_class)->finalize (obj);
-#line 3660 "CustomComponents.c"
+#line 3665 "CustomComponents.c"
}