summaryrefslogtreecommitdiff
path: root/src/searches/SearchBoolean.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-15 20:38:57 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-15 20:38:57 +0100
commitf1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (patch)
treea1f2ab30332a6383b0677bfcc2aec687b98851d6 /src/searches/SearchBoolean.c
parentf8ca421bdacee8851965a4b802ada1d2366bdbc1 (diff)
parentede50c561ec9811704821a9ea0f04c3d6c20b5af (diff)
Merge branch 'release/0.26.4-1'0.26.4-1
Diffstat (limited to 'src/searches/SearchBoolean.c')
-rw-r--r--src/searches/SearchBoolean.c2345
1 files changed, 1158 insertions, 1187 deletions
diff --git a/src/searches/SearchBoolean.c b/src/searches/SearchBoolean.c
index 2667236..a32204d 100644
--- a/src/searches/SearchBoolean.c
+++ b/src/searches/SearchBoolean.c
@@ -1,4 +1,4 @@
-/* SearchBoolean.c generated by valac 0.34.7, the Vala compiler
+/* SearchBoolean.c generated by valac 0.36.6, the Vala compiler
* generated from SearchBoolean.vala, do not modify */
/* Copyright 2016 Software Freedom Conservancy Inc.
@@ -405,6 +405,12 @@ typedef struct _LibraryWindow LibraryWindow;
typedef struct _LibraryWindowClass LibraryWindowClass;
typedef struct _SavedSearchTablePrivate SavedSearchTablePrivate;
typedef struct _ParamSpecSavedSearchTable ParamSpecSavedSearchTable;
+enum {
+ SAVED_SEARCH_TABLE_SEARCH_ADDED_SIGNAL,
+ SAVED_SEARCH_TABLE_SEARCH_REMOVED_SIGNAL,
+ SAVED_SEARCH_TABLE_LAST_SIGNAL
+};
+static guint saved_search_table_signals[SAVED_SEARCH_TABLE_LAST_SIGNAL] = {0};
typedef enum {
SEARCH_OPERATOR_ANY = 0,
@@ -742,10 +748,10 @@ enum {
};
SearchConditionSearchType* search_condition_search_type_as_array (int* result_length1);
void search_condition_search_type_sort_array (SearchConditionSearchType** array, int* array_length1);
-static gint __lambda11_ (void* a, void* b);
+static gint __lambda12_ (void* a, void* b);
gint utf8_cs_compare (void* a, void* b);
gchar* search_condition_search_type_display_text (SearchConditionSearchType self);
-static gint ___lambda11____compar_fn_t (void* key1, void* key2);
+static gint ___lambda12____compar_fn_t (void* key1, void* key2);
gchar* search_condition_search_type_to_string (SearchConditionSearchType self);
SearchConditionSearchType search_condition_search_type_from_string (const gchar* str);
gboolean search_condition_predicate (SearchCondition* self, MediaSource* source);
@@ -753,7 +759,7 @@ static gboolean search_condition_real_predicate (SearchCondition* self, MediaSou
SearchCondition* search_condition_construct (GType object_type);
SearchConditionSearchType search_condition_get_search_type (SearchCondition* self);
void search_condition_set_search_type (SearchCondition* self, SearchConditionSearchType value);
-static void search_condition_finalize (SearchCondition* obj);
+static void search_condition_finalize (SearchCondition * obj);
GType search_condition_text_get_type (void) G_GNUC_CONST;
GType search_condition_text_context_get_type (void) G_GNUC_CONST;
#define SEARCH_CONDITION_TEXT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_TEXT, SearchConditionTextPrivate))
@@ -793,7 +799,7 @@ Event* media_source_get_event (MediaSource* self);
gchar* data_object_get_name (DataObject* self);
gchar* media_source_get_comment (MediaSource* self);
gchar* media_source_get_basename (MediaSource* self);
-static void search_condition_text_finalize (SearchCondition* obj);
+static void search_condition_text_finalize (SearchCondition * obj);
GType search_condition_media_type_get_type (void) G_GNUC_CONST;
GType search_condition_media_type_media_type_get_type (void) G_GNUC_CONST;
GType search_condition_media_type_context_get_type (void) G_GNUC_CONST;
@@ -817,7 +823,7 @@ SearchConditionMediaTypeContext search_condition_media_type_get_context (SearchC
GType photo_file_format_get_type (void) G_GNUC_CONST;
PhotoFileFormat photo_get_master_file_format (Photo* self);
GType video_source_get_type (void) G_GNUC_CONST;
-static void search_condition_media_type_finalize (SearchCondition* obj);
+static void search_condition_media_type_finalize (SearchCondition * obj);
GType search_condition_flagged_get_type (void) G_GNUC_CONST;
GType search_condition_flagged_state_get_type (void) G_GNUC_CONST;
#define SEARCH_CONDITION_FLAGGED_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlaggedPrivate))
@@ -833,7 +839,7 @@ static gboolean search_condition_flagged_real_predicate (SearchCondition* base,
SearchConditionFlaggedState search_condition_flagged_get_state (SearchConditionFlagged* self);
GType flaggable_get_type (void) G_GNUC_CONST;
gboolean flaggable_is_flagged (Flaggable* self);
-static void search_condition_flagged_finalize (SearchCondition* obj);
+static void search_condition_flagged_finalize (SearchCondition * obj);
GType search_condition_modified_get_type (void) G_GNUC_CONST;
GType search_condition_modified_state_get_type (void) G_GNUC_CONST;
GType search_condition_modified_context_get_type (void) G_GNUC_CONST;
@@ -854,7 +860,7 @@ SearchConditionModifiedState search_condition_modified_get_state (SearchConditio
gboolean photo_has_transformations (Photo* self);
gboolean photo_has_editable (Photo* self);
SearchConditionModifiedContext search_condition_modified_get_context (SearchConditionModified* self);
-static void search_condition_modified_finalize (SearchCondition* obj);
+static void search_condition_modified_finalize (SearchCondition * obj);
GType search_condition_rating_get_type (void) G_GNUC_CONST;
GType rating_get_type (void) G_GNUC_CONST;
GType search_condition_rating_context_get_type (void) G_GNUC_CONST;
@@ -872,7 +878,7 @@ static gboolean search_condition_rating_real_predicate (SearchCondition* base, M
Rating media_source_get_rating (MediaSource* self);
SearchConditionRatingContext search_condition_rating_get_context (SearchConditionRating* self);
Rating search_condition_rating_get_rating (SearchConditionRating* self);
-static void search_condition_rating_finalize (SearchCondition* obj);
+static void search_condition_rating_finalize (SearchCondition * obj);
GType search_condition_date_get_type (void) G_GNUC_CONST;
GType search_condition_date_context_get_type (void) G_GNUC_CONST;
#define SEARCH_CONDITION_DATE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SEARCH_CONDITION_DATE, SearchConditionDatePrivate))
@@ -891,7 +897,7 @@ time_t media_source_get_exposure_time (MediaSource* self);
SearchConditionDateContext search_condition_date_get_context (SearchConditionDate* self);
GDateTime* search_condition_date_get_date_one (SearchConditionDate* self);
GDateTime* search_condition_date_get_date_two (SearchConditionDate* self);
-static void search_condition_date_finalize (SearchCondition* obj);
+static void search_condition_date_finalize (SearchCondition * obj);
gpointer alteration_ref (gpointer instance);
void alteration_unref (gpointer instance);
GParamSpec* param_spec_alteration (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
@@ -974,7 +980,7 @@ LibraryWindow* library_window_get_app (void);
void library_window_switch_to_saved_search (LibraryWindow* self, SavedSearch* search);
GeeList* saved_search_get_conditions (SavedSearch* self);
SearchOperator saved_search_get_operator (SavedSearch* self);
-static void saved_search_finalize (GObject* obj);
+static void saved_search_finalize (GObject * obj);
#define SAVED_SEARCH_TABLE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SAVED_SEARCH_TABLE, SavedSearchTablePrivate))
enum {
SAVED_SEARCH_TABLE_DUMMY_PROPERTY
@@ -992,7 +998,7 @@ GeeIterable* saved_search_table_get_saved_searches (SavedSearchTable* self);
gint saved_search_table_get_count (SavedSearchTable* self);
gchar* saved_search_table_generate_unique_name (SavedSearchTable* self);
#define RESOURCES_DEFAULT_SAVED_SEARCH_NAME _ ("Saved Search")
-static void saved_search_table_finalize (SavedSearchTable* obj);
+static void saved_search_table_finalize (SavedSearchTable * obj);
gchar* search_operator_to_string (SearchOperator self) {
@@ -1001,48 +1007,48 @@ gchar* search_operator_to_string (SearchOperator self) {
switch (self) {
#line 14 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_OPERATOR_ANY:
-#line 1005 "SearchBoolean.c"
+#line 1011 "SearchBoolean.c"
{
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 16 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = g_strdup ("ANY");
#line 16 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp0_;
#line 16 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1014 "SearchBoolean.c"
+#line 1020 "SearchBoolean.c"
}
#line 14 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_OPERATOR_ALL:
-#line 1018 "SearchBoolean.c"
+#line 1024 "SearchBoolean.c"
{
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
#line 19 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = g_strdup ("ALL");
#line 19 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 19 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1027 "SearchBoolean.c"
+#line 1033 "SearchBoolean.c"
}
#line 14 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_OPERATOR_NONE:
-#line 1031 "SearchBoolean.c"
+#line 1037 "SearchBoolean.c"
{
- gchar* _tmp2_ = NULL;
+ gchar* _tmp2_;
#line 22 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = g_strdup ("NONE");
#line 22 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp2_;
#line 22 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1040 "SearchBoolean.c"
+#line 1046 "SearchBoolean.c"
}
default:
{
#line 25 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:25: unrecognized search operator enumeration value");
-#line 1046 "SearchBoolean.c"
+#line 1052 "SearchBoolean.c"
}
}
}
@@ -1050,7 +1056,7 @@ gchar* search_operator_to_string (SearchOperator self) {
SearchOperator search_operator_from_string (const gchar* str) {
SearchOperator result = 0;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 29 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (str != NULL, 0);
#line 30 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1061,9 +1067,9 @@ SearchOperator search_operator_from_string (const gchar* str) {
result = SEARCH_OPERATOR_ANY;
#line 31 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1065 "SearchBoolean.c"
+#line 1071 "SearchBoolean.c"
} else {
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp1_;
#line 33 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = str;
#line 33 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1072,9 +1078,9 @@ SearchOperator search_operator_from_string (const gchar* str) {
result = SEARCH_OPERATOR_ALL;
#line 34 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1076 "SearchBoolean.c"
+#line 1082 "SearchBoolean.c"
} else {
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
#line 36 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = str;
#line 36 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1083,14 +1089,14 @@ SearchOperator search_operator_from_string (const gchar* str) {
result = SEARCH_OPERATOR_NONE;
#line 37 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1087 "SearchBoolean.c"
+#line 1093 "SearchBoolean.c"
} else {
- const gchar* _tmp3_ = NULL;
+ const gchar* _tmp3_;
#line 40 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = str;
#line 40 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:40: unrecognized search operator name: %s", _tmp3_);
-#line 1094 "SearchBoolean.c"
+#line 1100 "SearchBoolean.c"
}
}
}
@@ -1111,9 +1117,9 @@ GType search_operator_get_type (void) {
SearchConditionSearchType* search_condition_search_type_as_array (int* result_length1) {
SearchConditionSearchType* result = NULL;
- SearchConditionSearchType* _tmp0_ = NULL;
- SearchConditionSearchType* _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
+ SearchConditionSearchType* _tmp0_;
+ SearchConditionSearchType* _tmp1_;
+ gint _tmp1__length1;
#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = g_new0 (SearchConditionSearchType, 11);
#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1146,23 +1152,23 @@ SearchConditionSearchType* search_condition_search_type_as_array (int* result_le
if (result_length1) {
#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
*result_length1 = _tmp1__length1;
-#line 1150 "SearchBoolean.c"
+#line 1156 "SearchBoolean.c"
}
#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 64 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1156 "SearchBoolean.c"
+#line 1162 "SearchBoolean.c"
}
-static gint __lambda11_ (void* a, void* b) {
+static gint __lambda12_ (void* a, void* b) {
gint result = 0;
- void* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- void* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gint _tmp4_ = 0;
+ void* _tmp0_;
+ gchar* _tmp1_;
+ void* _tmp2_;
+ gchar* _tmp3_;
+ gint _tmp4_;
#line 71 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = a;
#line 71 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1177,24 +1183,24 @@ static gint __lambda11_ (void* a, void* b) {
result = _tmp4_;
#line 71 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1181 "SearchBoolean.c"
+#line 1187 "SearchBoolean.c"
}
-static gint ___lambda11____compar_fn_t (void* key1, void* key2) {
+static gint ___lambda12____compar_fn_t (void* key1, void* key2) {
gint result;
- result = __lambda11_ (key1, key2);
+ result = __lambda12_ (key1, key2);
#line 70 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1190 "SearchBoolean.c"
+#line 1196 "SearchBoolean.c"
}
void search_condition_search_type_sort_array (SearchConditionSearchType** array, int* array_length1) {
- SearchConditionSearchType* _tmp0_ = NULL;
- gint _tmp0__length1 = 0;
- SearchConditionSearchType* _tmp1_ = NULL;
- gint _tmp1__length1 = 0;
+ SearchConditionSearchType* _tmp0_;
+ gint _tmp0__length1;
+ SearchConditionSearchType* _tmp1_;
+ gint _tmp1__length1;
#line 70 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = *array;
#line 70 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1204,8 +1210,8 @@ void search_condition_search_type_sort_array (SearchConditionSearchType** array,
#line 70 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1__length1 = *array_length1;
#line 70 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- qsort (_tmp0_, (gsize) _tmp1__length1, (gsize) sizeof (SearchConditionSearchType), ___lambda11____compar_fn_t);
-#line 1209 "SearchBoolean.c"
+ qsort (_tmp0_, (gsize) _tmp1__length1, (gsize) sizeof (SearchConditionSearchType), ___lambda12____compar_fn_t);
+#line 1215 "SearchBoolean.c"
}
@@ -1215,152 +1221,152 @@ gchar* search_condition_search_type_to_string (SearchConditionSearchType self) {
switch (self) {
#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT:
-#line 1219 "SearchBoolean.c"
+#line 1225 "SearchBoolean.c"
{
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 79 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = g_strdup ("ANY_TEXT");
#line 79 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp0_;
#line 79 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1228 "SearchBoolean.c"
+#line 1234 "SearchBoolean.c"
}
#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_TITLE:
-#line 1232 "SearchBoolean.c"
+#line 1238 "SearchBoolean.c"
{
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
#line 82 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = g_strdup ("TITLE");
#line 82 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 82 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1241 "SearchBoolean.c"
+#line 1247 "SearchBoolean.c"
}
#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_TAG:
-#line 1245 "SearchBoolean.c"
+#line 1251 "SearchBoolean.c"
{
- gchar* _tmp2_ = NULL;
+ gchar* _tmp2_;
#line 85 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = g_strdup ("TAG");
#line 85 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp2_;
#line 85 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1254 "SearchBoolean.c"
+#line 1260 "SearchBoolean.c"
}
#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_COMMENT:
-#line 1258 "SearchBoolean.c"
+#line 1264 "SearchBoolean.c"
{
- gchar* _tmp3_ = NULL;
+ gchar* _tmp3_;
#line 88 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = g_strdup ("COMMENT");
#line 88 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp3_;
#line 88 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1267 "SearchBoolean.c"
+#line 1273 "SearchBoolean.c"
}
#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME:
-#line 1271 "SearchBoolean.c"
+#line 1277 "SearchBoolean.c"
{
- gchar* _tmp4_ = NULL;
+ gchar* _tmp4_;
#line 91 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = g_strdup ("EVENT_NAME");
#line 91 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp4_;
#line 91 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1280 "SearchBoolean.c"
+#line 1286 "SearchBoolean.c"
}
#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME:
-#line 1284 "SearchBoolean.c"
+#line 1290 "SearchBoolean.c"
{
- gchar* _tmp5_ = NULL;
+ gchar* _tmp5_;
#line 94 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = g_strdup ("FILE_NAME");
#line 94 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp5_;
#line 94 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1293 "SearchBoolean.c"
+#line 1299 "SearchBoolean.c"
}
#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE:
-#line 1297 "SearchBoolean.c"
+#line 1303 "SearchBoolean.c"
{
- gchar* _tmp6_ = NULL;
+ gchar* _tmp6_;
#line 97 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp6_ = g_strdup ("MEDIA_TYPE");
#line 97 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp6_;
#line 97 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1306 "SearchBoolean.c"
+#line 1312 "SearchBoolean.c"
}
#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE:
-#line 1310 "SearchBoolean.c"
+#line 1316 "SearchBoolean.c"
{
- gchar* _tmp7_ = NULL;
+ gchar* _tmp7_;
#line 100 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp7_ = g_strdup ("FLAG_STATE");
#line 100 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp7_;
#line 100 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1319 "SearchBoolean.c"
+#line 1325 "SearchBoolean.c"
}
#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE:
-#line 1323 "SearchBoolean.c"
+#line 1329 "SearchBoolean.c"
{
- gchar* _tmp8_ = NULL;
+ gchar* _tmp8_;
#line 103 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp8_ = g_strdup ("MODIFIED_STATE");
#line 103 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp8_;
#line 103 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1332 "SearchBoolean.c"
+#line 1338 "SearchBoolean.c"
}
#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_RATING:
-#line 1336 "SearchBoolean.c"
+#line 1342 "SearchBoolean.c"
{
- gchar* _tmp9_ = NULL;
+ gchar* _tmp9_;
#line 106 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp9_ = g_strdup ("RATING");
#line 106 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp9_;
#line 106 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1345 "SearchBoolean.c"
+#line 1351 "SearchBoolean.c"
}
#line 77 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_DATE:
-#line 1349 "SearchBoolean.c"
+#line 1355 "SearchBoolean.c"
{
- gchar* _tmp10_ = NULL;
+ gchar* _tmp10_;
#line 109 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp10_ = g_strdup ("DATE");
#line 109 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp10_;
#line 109 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1358 "SearchBoolean.c"
+#line 1364 "SearchBoolean.c"
}
default:
{
#line 112 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:112: unrecognized search type enumeration value");
-#line 1364 "SearchBoolean.c"
+#line 1370 "SearchBoolean.c"
}
}
}
@@ -1368,7 +1374,7 @@ gchar* search_condition_search_type_to_string (SearchConditionSearchType self) {
SearchConditionSearchType search_condition_search_type_from_string (const gchar* str) {
SearchConditionSearchType result = 0;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 116 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (str != NULL, 0);
#line 117 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1379,9 +1385,9 @@ SearchConditionSearchType search_condition_search_type_from_string (const gchar*
result = SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT;
#line 118 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1383 "SearchBoolean.c"
+#line 1389 "SearchBoolean.c"
} else {
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp1_;
#line 120 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = str;
#line 120 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1390,9 +1396,9 @@ SearchConditionSearchType search_condition_search_type_from_string (const gchar*
result = SEARCH_CONDITION_SEARCH_TYPE_TITLE;
#line 121 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1394 "SearchBoolean.c"
+#line 1400 "SearchBoolean.c"
} else {
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
#line 123 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = str;
#line 123 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1401,9 +1407,9 @@ SearchConditionSearchType search_condition_search_type_from_string (const gchar*
result = SEARCH_CONDITION_SEARCH_TYPE_TAG;
#line 124 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1405 "SearchBoolean.c"
+#line 1411 "SearchBoolean.c"
} else {
- const gchar* _tmp3_ = NULL;
+ const gchar* _tmp3_;
#line 126 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = str;
#line 126 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1412,9 +1418,9 @@ SearchConditionSearchType search_condition_search_type_from_string (const gchar*
result = SEARCH_CONDITION_SEARCH_TYPE_COMMENT;
#line 127 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1416 "SearchBoolean.c"
+#line 1422 "SearchBoolean.c"
} else {
- const gchar* _tmp4_ = NULL;
+ const gchar* _tmp4_;
#line 129 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = str;
#line 129 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1423,9 +1429,9 @@ SearchConditionSearchType search_condition_search_type_from_string (const gchar*
result = SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME;
#line 130 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1427 "SearchBoolean.c"
+#line 1433 "SearchBoolean.c"
} else {
- const gchar* _tmp5_ = NULL;
+ const gchar* _tmp5_;
#line 132 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = str;
#line 132 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1434,9 +1440,9 @@ SearchConditionSearchType search_condition_search_type_from_string (const gchar*
result = SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME;
#line 133 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1438 "SearchBoolean.c"
+#line 1444 "SearchBoolean.c"
} else {
- const gchar* _tmp6_ = NULL;
+ const gchar* _tmp6_;
#line 135 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp6_ = str;
#line 135 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1445,9 +1451,9 @@ SearchConditionSearchType search_condition_search_type_from_string (const gchar*
result = SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE;
#line 136 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1449 "SearchBoolean.c"
+#line 1455 "SearchBoolean.c"
} else {
- const gchar* _tmp7_ = NULL;
+ const gchar* _tmp7_;
#line 138 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp7_ = str;
#line 138 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1456,9 +1462,9 @@ SearchConditionSearchType search_condition_search_type_from_string (const gchar*
result = SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE;
#line 139 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1460 "SearchBoolean.c"
+#line 1466 "SearchBoolean.c"
} else {
- const gchar* _tmp8_ = NULL;
+ const gchar* _tmp8_;
#line 141 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp8_ = str;
#line 141 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1467,9 +1473,9 @@ SearchConditionSearchType search_condition_search_type_from_string (const gchar*
result = SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE;
#line 142 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1471 "SearchBoolean.c"
+#line 1477 "SearchBoolean.c"
} else {
- const gchar* _tmp9_ = NULL;
+ const gchar* _tmp9_;
#line 144 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp9_ = str;
#line 144 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1478,9 +1484,9 @@ SearchConditionSearchType search_condition_search_type_from_string (const gchar*
result = SEARCH_CONDITION_SEARCH_TYPE_RATING;
#line 145 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1482 "SearchBoolean.c"
+#line 1488 "SearchBoolean.c"
} else {
- const gchar* _tmp10_ = NULL;
+ const gchar* _tmp10_;
#line 147 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp10_ = str;
#line 147 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1489,14 +1495,14 @@ SearchConditionSearchType search_condition_search_type_from_string (const gchar*
result = SEARCH_CONDITION_SEARCH_TYPE_DATE;
#line 148 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1493 "SearchBoolean.c"
+#line 1499 "SearchBoolean.c"
} else {
- const gchar* _tmp11_ = NULL;
+ const gchar* _tmp11_;
#line 151 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp11_ = str;
#line 151 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:151: unrecognized search type name: %s", _tmp11_);
-#line 1500 "SearchBoolean.c"
+#line 1506 "SearchBoolean.c"
}
}
}
@@ -1517,32 +1523,26 @@ gchar* search_condition_search_type_display_text (SearchConditionSearchType self
switch (self) {
#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT:
-#line 1521 "SearchBoolean.c"
+#line 1527 "SearchBoolean.c"
{
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ gchar* _tmp0_;
#line 157 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = _ ("Any text");
+ _tmp0_ = g_strdup (_ ("Any text"));
#line 157 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp1_ = g_strdup (_tmp0_);
-#line 157 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp1_;
+ result = _tmp0_;
#line 157 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1533 "SearchBoolean.c"
+#line 1536 "SearchBoolean.c"
}
#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_TITLE:
-#line 1537 "SearchBoolean.c"
+#line 1540 "SearchBoolean.c"
{
- const gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
-#line 160 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp2_ = _ ("Title");
+ gchar* _tmp1_;
#line 160 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp3_ = g_strdup (_tmp2_);
+ _tmp1_ = g_strdup (_ ("Title"));
#line 160 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp3_;
+ result = _tmp1_;
#line 160 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
#line 1549 "SearchBoolean.c"
@@ -1551,151 +1551,124 @@ gchar* search_condition_search_type_display_text (SearchConditionSearchType self
case SEARCH_CONDITION_SEARCH_TYPE_TAG:
#line 1553 "SearchBoolean.c"
{
- const gchar* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
-#line 163 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp4_ = _ ("Tag");
+ gchar* _tmp2_;
#line 163 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = g_strdup (_tmp4_);
+ _tmp2_ = g_strdup (_ ("Tag"));
#line 163 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp5_;
+ result = _tmp2_;
#line 163 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1565 "SearchBoolean.c"
+#line 1562 "SearchBoolean.c"
}
#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_COMMENT:
-#line 1569 "SearchBoolean.c"
+#line 1566 "SearchBoolean.c"
{
- const gchar* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
-#line 166 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp6_ = _ ("Comment");
+ gchar* _tmp3_;
#line 166 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp7_ = g_strdup (_tmp6_);
+ _tmp3_ = g_strdup (_ ("Comment"));
#line 166 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp7_;
+ result = _tmp3_;
#line 166 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1581 "SearchBoolean.c"
+#line 1575 "SearchBoolean.c"
}
#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME:
-#line 1585 "SearchBoolean.c"
+#line 1579 "SearchBoolean.c"
{
- const gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
+ gchar* _tmp4_;
#line 169 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp8_ = _ ("Event name");
+ _tmp4_ = g_strdup (_ ("Event name"));
#line 169 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp9_ = g_strdup (_tmp8_);
-#line 169 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp9_;
+ result = _tmp4_;
#line 169 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1597 "SearchBoolean.c"
+#line 1588 "SearchBoolean.c"
}
#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME:
-#line 1601 "SearchBoolean.c"
+#line 1592 "SearchBoolean.c"
{
- const gchar* _tmp10_ = NULL;
- gchar* _tmp11_ = NULL;
-#line 172 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp10_ = _ ("File name");
+ gchar* _tmp5_;
#line 172 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp11_ = g_strdup (_tmp10_);
+ _tmp5_ = g_strdup (_ ("File name"));
#line 172 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp11_;
+ result = _tmp5_;
#line 172 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1613 "SearchBoolean.c"
+#line 1601 "SearchBoolean.c"
}
#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_MEDIA_TYPE:
-#line 1617 "SearchBoolean.c"
+#line 1605 "SearchBoolean.c"
{
- const gchar* _tmp12_ = NULL;
- gchar* _tmp13_ = NULL;
-#line 175 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp12_ = _ ("Media type");
+ gchar* _tmp6_;
#line 175 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp13_ = g_strdup (_tmp12_);
+ _tmp6_ = g_strdup (_ ("Media type"));
#line 175 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp13_;
+ result = _tmp6_;
#line 175 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1629 "SearchBoolean.c"
+#line 1614 "SearchBoolean.c"
}
#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_FLAG_STATE:
-#line 1633 "SearchBoolean.c"
+#line 1618 "SearchBoolean.c"
{
- const gchar* _tmp14_ = NULL;
- gchar* _tmp15_ = NULL;
-#line 178 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp14_ = _ ("Flag state");
+ gchar* _tmp7_;
#line 178 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp15_ = g_strdup (_tmp14_);
+ _tmp7_ = g_strdup (_ ("Flag state"));
#line 178 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp15_;
+ result = _tmp7_;
#line 178 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1645 "SearchBoolean.c"
+#line 1627 "SearchBoolean.c"
}
#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_MODIFIED_STATE:
-#line 1649 "SearchBoolean.c"
+#line 1631 "SearchBoolean.c"
{
- const gchar* _tmp16_ = NULL;
- gchar* _tmp17_ = NULL;
-#line 181 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp16_ = _ ("Photo state");
+ gchar* _tmp8_;
#line 181 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp17_ = g_strdup (_tmp16_);
+ _tmp8_ = g_strdup (_ ("Photo state"));
#line 181 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp17_;
+ result = _tmp8_;
#line 181 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1661 "SearchBoolean.c"
+#line 1640 "SearchBoolean.c"
}
#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_RATING:
-#line 1665 "SearchBoolean.c"
+#line 1644 "SearchBoolean.c"
{
- const gchar* _tmp18_ = NULL;
- gchar* _tmp19_ = NULL;
+ gchar* _tmp9_;
#line 184 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp18_ = _ ("Rating");
+ _tmp9_ = g_strdup (_ ("Rating"));
#line 184 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp19_ = g_strdup (_tmp18_);
-#line 184 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp19_;
+ result = _tmp9_;
#line 184 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1677 "SearchBoolean.c"
+#line 1653 "SearchBoolean.c"
}
#line 155 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_SEARCH_TYPE_DATE:
-#line 1681 "SearchBoolean.c"
+#line 1657 "SearchBoolean.c"
{
- const gchar* _tmp20_ = NULL;
- gchar* _tmp21_ = NULL;
+ gchar* _tmp10_;
#line 187 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp20_ = _ ("Date");
+ _tmp10_ = g_strdup (_ ("Date"));
#line 187 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp21_ = g_strdup (_tmp20_);
-#line 187 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- result = _tmp21_;
+ result = _tmp10_;
#line 187 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1693 "SearchBoolean.c"
+#line 1666 "SearchBoolean.c"
}
default:
{
#line 190 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:190: unrecognized search type enumeration value");
-#line 1699 "SearchBoolean.c"
+#line 1672 "SearchBoolean.c"
}
}
}
@@ -1719,7 +1692,7 @@ static gboolean search_condition_real_predicate (SearchCondition* self, MediaSou
g_critical ("Type `%s' does not implement abstract method `search_condition_predicate'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 198 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return _tmp0_;
-#line 1723 "SearchBoolean.c"
+#line 1696 "SearchBoolean.c"
}
@@ -1728,7 +1701,7 @@ gboolean search_condition_predicate (SearchCondition* self, MediaSource* source)
g_return_val_if_fail (IS_SEARCH_CONDITION (self), FALSE);
#line 198 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return SEARCH_CONDITION_GET_CLASS (self)->predicate (self, source);
-#line 1732 "SearchBoolean.c"
+#line 1705 "SearchBoolean.c"
}
@@ -1738,13 +1711,13 @@ SearchCondition* search_condition_construct (GType object_type) {
self = (SearchCondition*) g_type_create_instance (object_type);
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self;
-#line 1742 "SearchBoolean.c"
+#line 1715 "SearchBoolean.c"
}
SearchConditionSearchType search_condition_get_search_type (SearchCondition* self) {
SearchConditionSearchType result;
- SearchConditionSearchType _tmp0_ = 0;
+ SearchConditionSearchType _tmp0_;
#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION (self), 0);
#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1753,26 +1726,26 @@ SearchConditionSearchType search_condition_get_search_type (SearchCondition* sel
result = _tmp0_;
#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 1757 "SearchBoolean.c"
+#line 1730 "SearchBoolean.c"
}
void search_condition_set_search_type (SearchCondition* self, SearchConditionSearchType value) {
- SearchConditionSearchType _tmp0_ = 0;
+ SearchConditionSearchType _tmp0_;
#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION (self));
#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = value;
#line 195 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_search_type = _tmp0_;
-#line 1769 "SearchBoolean.c"
+#line 1742 "SearchBoolean.c"
}
static void value_search_condition_init (GValue* value) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = NULL;
-#line 1776 "SearchBoolean.c"
+#line 1749 "SearchBoolean.c"
}
@@ -1781,7 +1754,7 @@ static void value_search_condition_free_value (GValue* value) {
if (value->data[0].v_pointer) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
search_condition_unref (value->data[0].v_pointer);
-#line 1785 "SearchBoolean.c"
+#line 1758 "SearchBoolean.c"
}
}
@@ -1791,11 +1764,11 @@ static void value_search_condition_copy_value (const GValue* src_value, GValue*
if (src_value->data[0].v_pointer) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
dest_value->data[0].v_pointer = search_condition_ref (src_value->data[0].v_pointer);
-#line 1795 "SearchBoolean.c"
+#line 1768 "SearchBoolean.c"
} else {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
dest_value->data[0].v_pointer = NULL;
-#line 1799 "SearchBoolean.c"
+#line 1772 "SearchBoolean.c"
}
}
@@ -1803,66 +1776,66 @@ static void value_search_condition_copy_value (const GValue* src_value, GValue*
static gpointer value_search_condition_peek_pointer (const GValue* value) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return value->data[0].v_pointer;
-#line 1807 "SearchBoolean.c"
+#line 1780 "SearchBoolean.c"
}
static gchar* value_search_condition_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (collect_values[0].v_pointer) {
-#line 1814 "SearchBoolean.c"
- SearchCondition* object;
+#line 1787 "SearchBoolean.c"
+ SearchCondition * object;
object = collect_values[0].v_pointer;
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (object->parent_instance.g_class == NULL) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 1821 "SearchBoolean.c"
+#line 1794 "SearchBoolean.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.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 1825 "SearchBoolean.c"
+#line 1798 "SearchBoolean.c"
}
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = search_condition_ref (object);
-#line 1829 "SearchBoolean.c"
+#line 1802 "SearchBoolean.c"
} else {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = NULL;
-#line 1833 "SearchBoolean.c"
+#line 1806 "SearchBoolean.c"
}
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return NULL;
-#line 1837 "SearchBoolean.c"
+#line 1810 "SearchBoolean.c"
}
static gchar* value_search_condition_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
- SearchCondition** object_p;
+ SearchCondition ** object_p;
object_p = collect_values[0].v_pointer;
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (!object_p) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 1848 "SearchBoolean.c"
+#line 1821 "SearchBoolean.c"
}
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (!value->data[0].v_pointer) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
*object_p = NULL;
-#line 1854 "SearchBoolean.c"
+#line 1827 "SearchBoolean.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
*object_p = value->data[0].v_pointer;
-#line 1858 "SearchBoolean.c"
+#line 1831 "SearchBoolean.c"
} else {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
*object_p = search_condition_ref (value->data[0].v_pointer);
-#line 1862 "SearchBoolean.c"
+#line 1835 "SearchBoolean.c"
}
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return NULL;
-#line 1866 "SearchBoolean.c"
+#line 1839 "SearchBoolean.c"
}
@@ -1876,7 +1849,7 @@ GParamSpec* param_spec_search_condition (const gchar* name, const gchar* nick, c
G_PARAM_SPEC (spec)->value_type = object_type;
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return G_PARAM_SPEC (spec);
-#line 1880 "SearchBoolean.c"
+#line 1853 "SearchBoolean.c"
}
@@ -1885,12 +1858,12 @@ gpointer value_get_search_condition (const GValue* value) {
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_CONDITION), NULL);
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return value->data[0].v_pointer;
-#line 1889 "SearchBoolean.c"
+#line 1862 "SearchBoolean.c"
}
void value_set_search_condition (GValue* value, gpointer v_object) {
- SearchCondition* old;
+ SearchCondition * old;
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_CONDITION));
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1905,23 +1878,23 @@ void value_set_search_condition (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
search_condition_ref (value->data[0].v_pointer);
-#line 1909 "SearchBoolean.c"
+#line 1882 "SearchBoolean.c"
} else {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = NULL;
-#line 1913 "SearchBoolean.c"
+#line 1886 "SearchBoolean.c"
}
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (old) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
search_condition_unref (old);
-#line 1919 "SearchBoolean.c"
+#line 1892 "SearchBoolean.c"
}
}
void value_take_search_condition (GValue* value, gpointer v_object) {
- SearchCondition* old;
+ SearchCondition * old;
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SEARCH_CONDITION));
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -1934,17 +1907,17 @@ void value_take_search_condition (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = v_object;
-#line 1938 "SearchBoolean.c"
+#line 1911 "SearchBoolean.c"
} else {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = NULL;
-#line 1942 "SearchBoolean.c"
+#line 1915 "SearchBoolean.c"
}
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (old) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
search_condition_unref (old);
-#line 1948 "SearchBoolean.c"
+#line 1921 "SearchBoolean.c"
}
}
@@ -1957,8 +1930,8 @@ static void search_condition_class_init (SearchConditionClass * klass) {
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_type_class_add_private (klass, sizeof (SearchConditionPrivate));
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*)(SearchCondition*, MediaSource*)) search_condition_real_predicate;
-#line 1962 "SearchBoolean.c"
+ ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_real_predicate;
+#line 1935 "SearchBoolean.c"
}
@@ -1967,17 +1940,17 @@ static void search_condition_instance_init (SearchCondition * self) {
self->priv = SEARCH_CONDITION_GET_PRIVATE (self);
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->ref_count = 1;
-#line 1971 "SearchBoolean.c"
+#line 1944 "SearchBoolean.c"
}
-static void search_condition_finalize (SearchCondition* obj) {
+static void search_condition_finalize (SearchCondition * obj) {
SearchCondition * self;
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION, SearchCondition);
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_signal_handlers_destroy (self);
-#line 1981 "SearchBoolean.c"
+#line 1954 "SearchBoolean.c"
}
@@ -1996,18 +1969,18 @@ GType search_condition_get_type (void) {
gpointer search_condition_ref (gpointer instance) {
- SearchCondition* self;
+ SearchCondition * self;
self = instance;
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_atomic_int_inc (&self->ref_count);
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return instance;
-#line 2006 "SearchBoolean.c"
+#line 1979 "SearchBoolean.c"
}
void search_condition_unref (gpointer instance) {
- SearchCondition* self;
+ SearchCondition * self;
self = instance;
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
@@ -2015,7 +1988,7 @@ void search_condition_unref (gpointer instance) {
SEARCH_CONDITION_GET_CLASS (self)->finalize (self);
#line 47 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 2019 "SearchBoolean.c"
+#line 1992 "SearchBoolean.c"
}
}
@@ -2026,101 +1999,101 @@ gchar* search_condition_text_context_to_string (SearchConditionTextContext self)
switch (self) {
#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS:
-#line 2030 "SearchBoolean.c"
+#line 2003 "SearchBoolean.c"
{
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 215 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = g_strdup ("CONTAINS");
#line 215 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp0_;
#line 215 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2039 "SearchBoolean.c"
+#line 2012 "SearchBoolean.c"
}
#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY:
-#line 2043 "SearchBoolean.c"
+#line 2016 "SearchBoolean.c"
{
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
#line 218 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = g_strdup ("IS_EXACTLY");
#line 218 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 218 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2052 "SearchBoolean.c"
+#line 2025 "SearchBoolean.c"
}
#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH:
-#line 2056 "SearchBoolean.c"
+#line 2029 "SearchBoolean.c"
{
- gchar* _tmp2_ = NULL;
+ gchar* _tmp2_;
#line 221 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = g_strdup ("STARTS_WITH");
#line 221 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp2_;
#line 221 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2065 "SearchBoolean.c"
+#line 2038 "SearchBoolean.c"
}
#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH:
-#line 2069 "SearchBoolean.c"
+#line 2042 "SearchBoolean.c"
{
- gchar* _tmp3_ = NULL;
+ gchar* _tmp3_;
#line 224 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = g_strdup ("ENDS_WITH");
#line 224 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp3_;
#line 224 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2078 "SearchBoolean.c"
+#line 2051 "SearchBoolean.c"
}
#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN:
-#line 2082 "SearchBoolean.c"
+#line 2055 "SearchBoolean.c"
{
- gchar* _tmp4_ = NULL;
+ gchar* _tmp4_;
#line 227 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = g_strdup ("DOES_NOT_CONTAIN");
#line 227 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp4_;
#line 227 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2091 "SearchBoolean.c"
+#line 2064 "SearchBoolean.c"
}
#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET:
-#line 2095 "SearchBoolean.c"
+#line 2068 "SearchBoolean.c"
{
- gchar* _tmp5_ = NULL;
+ gchar* _tmp5_;
#line 230 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = g_strdup ("IS_NOT_SET");
#line 230 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp5_;
#line 230 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2104 "SearchBoolean.c"
+#line 2077 "SearchBoolean.c"
}
#line 213 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_IS_SET:
-#line 2108 "SearchBoolean.c"
+#line 2081 "SearchBoolean.c"
{
- gchar* _tmp6_ = NULL;
+ gchar* _tmp6_;
#line 233 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp6_ = g_strdup ("IS_SET");
#line 233 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp6_;
#line 233 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2117 "SearchBoolean.c"
+#line 2090 "SearchBoolean.c"
}
default:
{
#line 236 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:236: unrecognized text search context enumeration v" \
"alue");
-#line 2123 "SearchBoolean.c"
+#line 2096 "SearchBoolean.c"
}
}
}
@@ -2128,7 +2101,7 @@ gchar* search_condition_text_context_to_string (SearchConditionTextContext self)
SearchConditionTextContext search_condition_text_context_from_string (const gchar* str) {
SearchConditionTextContext result = 0;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 240 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (str != NULL, 0);
#line 241 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2139,9 +2112,9 @@ SearchConditionTextContext search_condition_text_context_from_string (const gcha
result = SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS;
#line 242 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2142 "SearchBoolean.c"
+#line 2115 "SearchBoolean.c"
} else {
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp1_;
#line 244 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = str;
#line 244 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2150,9 +2123,9 @@ SearchConditionTextContext search_condition_text_context_from_string (const gcha
result = SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY;
#line 245 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2153 "SearchBoolean.c"
+#line 2126 "SearchBoolean.c"
} else {
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
#line 247 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = str;
#line 247 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2161,9 +2134,9 @@ SearchConditionTextContext search_condition_text_context_from_string (const gcha
result = SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH;
#line 248 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2164 "SearchBoolean.c"
+#line 2137 "SearchBoolean.c"
} else {
- const gchar* _tmp3_ = NULL;
+ const gchar* _tmp3_;
#line 250 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = str;
#line 250 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2172,9 +2145,9 @@ SearchConditionTextContext search_condition_text_context_from_string (const gcha
result = SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH;
#line 251 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2175 "SearchBoolean.c"
+#line 2148 "SearchBoolean.c"
} else {
- const gchar* _tmp4_ = NULL;
+ const gchar* _tmp4_;
#line 253 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = str;
#line 253 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2183,9 +2156,9 @@ SearchConditionTextContext search_condition_text_context_from_string (const gcha
result = SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN;
#line 254 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2186 "SearchBoolean.c"
+#line 2159 "SearchBoolean.c"
} else {
- const gchar* _tmp5_ = NULL;
+ const gchar* _tmp5_;
#line 256 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = str;
#line 256 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2194,9 +2167,9 @@ SearchConditionTextContext search_condition_text_context_from_string (const gcha
result = SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET;
#line 257 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2197 "SearchBoolean.c"
+#line 2170 "SearchBoolean.c"
} else {
- const gchar* _tmp6_ = NULL;
+ const gchar* _tmp6_;
#line 259 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp6_ = str;
#line 259 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2205,14 +2178,14 @@ SearchConditionTextContext search_condition_text_context_from_string (const gcha
result = SEARCH_CONDITION_TEXT_CONTEXT_IS_SET;
#line 260 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2208 "SearchBoolean.c"
+#line 2181 "SearchBoolean.c"
} else {
- const gchar* _tmp7_ = NULL;
+ const gchar* _tmp7_;
#line 263 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp7_ = str;
#line 263 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:263: unrecognized text search context name: %s", _tmp7_);
-#line 2215 "SearchBoolean.c"
+#line 2188 "SearchBoolean.c"
}
}
}
@@ -2237,10 +2210,10 @@ GType search_condition_text_context_get_type (void) {
SearchConditionText* search_condition_text_construct (GType object_type, SearchConditionSearchType search_type, const gchar* text, SearchConditionTextContext context) {
SearchConditionText* self = NULL;
- SearchConditionSearchType _tmp0_ = 0;
+ SearchConditionSearchType _tmp0_;
gchar* _tmp1_ = NULL;
- const gchar* _tmp2_ = NULL;
- SearchConditionTextContext _tmp8_ = 0;
+ const gchar* _tmp2_;
+ SearchConditionTextContext _tmp8_;
#line 273 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = (SearchConditionText*) search_condition_construct (object_type);
#line 274 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2251,11 +2224,11 @@ SearchConditionText* search_condition_text_construct (GType object_type, SearchC
_tmp2_ = text;
#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp2_ != NULL) {
-#line 2254 "SearchBoolean.c"
- const gchar* _tmp3_ = NULL;
- gchar* _tmp4_ = NULL;
- gchar* _tmp5_ = NULL;
- gchar* _tmp6_ = NULL;
+#line 2227 "SearchBoolean.c"
+ const gchar* _tmp3_;
+ gchar* _tmp4_;
+ gchar* _tmp5_;
+ gchar* _tmp6_;
#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = text;
#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2270,16 +2243,16 @@ SearchConditionText* search_condition_text_construct (GType object_type, SearchC
_tmp1_ = _tmp6_;
#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (_tmp5_);
-#line 2273 "SearchBoolean.c"
+#line 2246 "SearchBoolean.c"
} else {
- gchar* _tmp7_ = NULL;
+ gchar* _tmp7_;
#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp7_ = g_strdup ("");
#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (_tmp1_);
#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = _tmp7_;
-#line 2282 "SearchBoolean.c"
+#line 2255 "SearchBoolean.c"
}
#line 275 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
search_condition_text_set_text (self, _tmp1_);
@@ -2291,40 +2264,40 @@ SearchConditionText* search_condition_text_construct (GType object_type, SearchC
_g_free0 (_tmp1_);
#line 273 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self;
-#line 2294 "SearchBoolean.c"
+#line 2267 "SearchBoolean.c"
}
SearchConditionText* search_condition_text_new (SearchConditionSearchType search_type, const gchar* text, SearchConditionTextContext context) {
#line 273 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return search_condition_text_construct (TYPE_SEARCH_CONDITION_TEXT, search_type, text, context);
-#line 2301 "SearchBoolean.c"
+#line 2274 "SearchBoolean.c"
}
static gboolean string_contains (const gchar* self, const gchar* needle) {
gboolean result = FALSE;
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
-#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
+#line 1403 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, FALSE);
-#line 1376 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1403 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
g_return_val_if_fail (needle != NULL, FALSE);
-#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp0_ = needle;
-#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
-#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
result = _tmp1_ != NULL;
-#line 1377 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
+#line 1404 "/usr/share/vala-0.36/vapi/glib-2.0.vapi"
return result;
-#line 2321 "SearchBoolean.c"
+#line 2294 "SearchBoolean.c"
}
static gboolean search_condition_text_string_match (SearchConditionText* self, const gchar* needle, const gchar* haystack) {
gboolean result = FALSE;
- SearchConditionTextContext _tmp0_ = 0;
+ SearchConditionTextContext _tmp0_;
#line 280 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_TEXT (self), FALSE);
#line 280 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2337,21 +2310,21 @@ static gboolean search_condition_text_string_match (SearchConditionText* self, c
case SEARCH_CONDITION_TEXT_CONTEXT_CONTAINS:
#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN:
-#line 2340 "SearchBoolean.c"
+#line 2313 "SearchBoolean.c"
{
gboolean _tmp1_ = FALSE;
- const gchar* _tmp2_ = NULL;
- gboolean _tmp3_ = FALSE;
+ const gchar* _tmp2_;
+ gboolean _tmp3_;
#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = haystack;
#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = is_string_empty (_tmp2_);
#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (!_tmp3_) {
-#line 2351 "SearchBoolean.c"
- const gchar* _tmp4_ = NULL;
- const gchar* _tmp5_ = NULL;
- gboolean _tmp6_ = FALSE;
+#line 2324 "SearchBoolean.c"
+ const gchar* _tmp4_;
+ const gchar* _tmp5_;
+ gboolean _tmp6_;
#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = haystack;
#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2360,69 +2333,69 @@ static gboolean search_condition_text_string_match (SearchConditionText* self, c
_tmp6_ = string_contains (_tmp4_, _tmp5_);
#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = _tmp6_;
-#line 2363 "SearchBoolean.c"
+#line 2336 "SearchBoolean.c"
} else {
#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = FALSE;
-#line 2367 "SearchBoolean.c"
+#line 2340 "SearchBoolean.c"
}
#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 284 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2373 "SearchBoolean.c"
+#line 2346 "SearchBoolean.c"
}
#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_IS_EXACTLY:
-#line 2377 "SearchBoolean.c"
+#line 2350 "SearchBoolean.c"
{
gboolean _tmp7_ = FALSE;
- const gchar* _tmp8_ = NULL;
- gboolean _tmp9_ = FALSE;
+ const gchar* _tmp8_;
+ gboolean _tmp9_;
#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp8_ = haystack;
#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp9_ = is_string_empty (_tmp8_);
#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (!_tmp9_) {
-#line 2388 "SearchBoolean.c"
- const gchar* _tmp10_ = NULL;
- const gchar* _tmp11_ = NULL;
+#line 2361 "SearchBoolean.c"
+ const gchar* _tmp10_;
+ const gchar* _tmp11_;
#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp10_ = haystack;
#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp11_ = needle;
#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp7_ = g_strcmp0 (_tmp10_, _tmp11_) == 0;
-#line 2397 "SearchBoolean.c"
+#line 2370 "SearchBoolean.c"
} else {
#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp7_ = FALSE;
-#line 2401 "SearchBoolean.c"
+#line 2374 "SearchBoolean.c"
}
#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp7_;
#line 287 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2407 "SearchBoolean.c"
+#line 2380 "SearchBoolean.c"
}
#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_STARTS_WITH:
-#line 2411 "SearchBoolean.c"
+#line 2384 "SearchBoolean.c"
{
gboolean _tmp12_ = FALSE;
- const gchar* _tmp13_ = NULL;
- gboolean _tmp14_ = FALSE;
+ const gchar* _tmp13_;
+ gboolean _tmp14_;
#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp13_ = haystack;
#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp14_ = is_string_empty (_tmp13_);
#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (!_tmp14_) {
-#line 2422 "SearchBoolean.c"
- const gchar* _tmp15_ = NULL;
- const gchar* _tmp16_ = NULL;
- gboolean _tmp17_ = FALSE;
+#line 2395 "SearchBoolean.c"
+ const gchar* _tmp15_;
+ const gchar* _tmp16_;
+ gboolean _tmp17_;
#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp15_ = haystack;
#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2431,35 +2404,35 @@ static gboolean search_condition_text_string_match (SearchConditionText* self, c
_tmp17_ = g_str_has_prefix (_tmp15_, _tmp16_);
#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp12_ = _tmp17_;
-#line 2434 "SearchBoolean.c"
+#line 2407 "SearchBoolean.c"
} else {
#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp12_ = FALSE;
-#line 2438 "SearchBoolean.c"
+#line 2411 "SearchBoolean.c"
}
#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp12_;
#line 290 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2444 "SearchBoolean.c"
+#line 2417 "SearchBoolean.c"
}
#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_ENDS_WITH:
-#line 2448 "SearchBoolean.c"
+#line 2421 "SearchBoolean.c"
{
gboolean _tmp18_ = FALSE;
- const gchar* _tmp19_ = NULL;
- gboolean _tmp20_ = FALSE;
+ const gchar* _tmp19_;
+ gboolean _tmp20_;
#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp19_ = haystack;
#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp20_ = is_string_empty (_tmp19_);
#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (!_tmp20_) {
-#line 2459 "SearchBoolean.c"
- const gchar* _tmp21_ = NULL;
- const gchar* _tmp22_ = NULL;
- gboolean _tmp23_ = FALSE;
+#line 2432 "SearchBoolean.c"
+ const gchar* _tmp21_;
+ const gchar* _tmp22_;
+ gboolean _tmp23_;
#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp21_ = haystack;
#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2468,24 +2441,24 @@ static gboolean search_condition_text_string_match (SearchConditionText* self, c
_tmp23_ = g_str_has_suffix (_tmp21_, _tmp22_);
#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp18_ = _tmp23_;
-#line 2471 "SearchBoolean.c"
+#line 2444 "SearchBoolean.c"
} else {
#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp18_ = FALSE;
-#line 2475 "SearchBoolean.c"
+#line 2448 "SearchBoolean.c"
}
#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp18_;
#line 293 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2481 "SearchBoolean.c"
+#line 2454 "SearchBoolean.c"
}
#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_IS_NOT_SET:
-#line 2485 "SearchBoolean.c"
+#line 2458 "SearchBoolean.c"
{
- const gchar* _tmp24_ = NULL;
- gboolean _tmp25_ = FALSE;
+ const gchar* _tmp24_;
+ gboolean _tmp25_;
#line 296 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp24_ = haystack;
#line 296 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2494,14 +2467,14 @@ static gboolean search_condition_text_string_match (SearchConditionText* self, c
result = _tmp25_;
#line 296 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2497 "SearchBoolean.c"
+#line 2470 "SearchBoolean.c"
}
#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_TEXT_CONTEXT_IS_SET:
-#line 2501 "SearchBoolean.c"
+#line 2474 "SearchBoolean.c"
{
- const gchar* _tmp26_ = NULL;
- gboolean _tmp27_ = FALSE;
+ const gchar* _tmp26_;
+ gboolean _tmp27_;
#line 299 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp26_ = haystack;
#line 299 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2510,25 +2483,25 @@ static gboolean search_condition_text_string_match (SearchConditionText* self, c
result = !_tmp27_;
#line 299 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2513 "SearchBoolean.c"
+#line 2486 "SearchBoolean.c"
}
default:
#line 281 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
break;
-#line 2518 "SearchBoolean.c"
+#line 2491 "SearchBoolean.c"
}
#line 302 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = FALSE;
#line 302 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 2524 "SearchBoolean.c"
+#line 2497 "SearchBoolean.c"
}
static gpointer _g_object_ref0 (gpointer self) {
#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self ? g_object_ref (self) : NULL;
-#line 2531 "SearchBoolean.c"
+#line 2504 "SearchBoolean.c"
}
@@ -2537,22 +2510,22 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
gboolean result = FALSE;
gboolean ret = FALSE;
gboolean _tmp0_ = FALSE;
- SearchConditionSearchType _tmp1_ = 0;
- SearchConditionSearchType _tmp2_ = 0;
+ SearchConditionSearchType _tmp1_;
+ SearchConditionSearchType _tmp2_;
gboolean _tmp21_ = FALSE;
- SearchConditionSearchType _tmp22_ = 0;
- SearchConditionSearchType _tmp23_ = 0;
+ SearchConditionSearchType _tmp22_;
+ SearchConditionSearchType _tmp23_;
gboolean _tmp52_ = FALSE;
- SearchConditionSearchType _tmp53_ = 0;
- SearchConditionSearchType _tmp54_ = 0;
+ SearchConditionSearchType _tmp53_;
+ SearchConditionSearchType _tmp54_;
gboolean _tmp75_ = FALSE;
- SearchConditionSearchType _tmp76_ = 0;
- SearchConditionSearchType _tmp77_ = 0;
+ SearchConditionSearchType _tmp76_;
+ SearchConditionSearchType _tmp77_;
gboolean _tmp91_ = FALSE;
- SearchConditionSearchType _tmp92_ = 0;
- SearchConditionSearchType _tmp93_ = 0;
+ SearchConditionSearchType _tmp92_;
+ SearchConditionSearchType _tmp93_;
gboolean _tmp106_ = FALSE;
- SearchConditionTextContext _tmp107_ = 0;
+ SearchConditionTextContext _tmp107_;
#line 306 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_TEXT, SearchConditionText);
#line 306 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2567,32 +2540,32 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp2_) {
#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = TRUE;
-#line 2570 "SearchBoolean.c"
+#line 2543 "SearchBoolean.c"
} else {
- SearchConditionSearchType _tmp3_ = 0;
- SearchConditionSearchType _tmp4_ = 0;
+ SearchConditionSearchType _tmp3_;
+ SearchConditionSearchType _tmp4_;
#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = _tmp3_;
#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = SEARCH_CONDITION_SEARCH_TYPE_TITLE == _tmp4_;
-#line 2580 "SearchBoolean.c"
+#line 2553 "SearchBoolean.c"
}
#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp0_) {
-#line 2584 "SearchBoolean.c"
+#line 2557 "SearchBoolean.c"
gchar* _tmp5_ = NULL;
- MediaSource* _tmp6_ = NULL;
- gchar* _tmp7_ = NULL;
- gchar* _tmp8_ = NULL;
- gboolean _tmp9_ = FALSE;
+ MediaSource* _tmp6_;
+ gchar* _tmp7_;
+ gchar* _tmp8_;
+ gboolean _tmp9_;
gchar* title = NULL;
- gchar* _tmp16_ = NULL;
- gboolean _tmp17_ = FALSE;
- const gchar* _tmp18_ = NULL;
- const gchar* _tmp19_ = NULL;
- gboolean _tmp20_ = FALSE;
+ gchar* _tmp16_;
+ gboolean _tmp17_;
+ const gchar* _tmp18_;
+ const gchar* _tmp19_;
+ gboolean _tmp20_;
#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp6_ = source;
#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2605,13 +2578,13 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_g_free0 (_tmp8_);
#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp9_) {
-#line 2608 "SearchBoolean.c"
- MediaSource* _tmp10_ = NULL;
- gchar* _tmp11_ = NULL;
- gchar* _tmp12_ = NULL;
- gchar* _tmp13_ = NULL;
- gchar* _tmp14_ = NULL;
- gchar* _tmp15_ = NULL;
+#line 2581 "SearchBoolean.c"
+ MediaSource* _tmp10_;
+ gchar* _tmp11_;
+ gchar* _tmp12_;
+ gchar* _tmp13_;
+ gchar* _tmp14_;
+ gchar* _tmp15_;
#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp10_ = source;
#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2632,13 +2605,13 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_g_free0 (_tmp14_);
#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (_tmp12_);
-#line 2635 "SearchBoolean.c"
+#line 2608 "SearchBoolean.c"
} else {
#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (_tmp5_);
#line 312 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = NULL;
-#line 2641 "SearchBoolean.c"
+#line 2614 "SearchBoolean.c"
}
#line 311 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp16_ = g_strdup (_tmp5_);
@@ -2658,7 +2631,7 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_g_free0 (title);
#line 310 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (_tmp5_);
-#line 2661 "SearchBoolean.c"
+#line 2634 "SearchBoolean.c"
}
#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp22_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
@@ -2668,26 +2641,26 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp23_) {
#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp21_ = TRUE;
-#line 2671 "SearchBoolean.c"
+#line 2644 "SearchBoolean.c"
} else {
- SearchConditionSearchType _tmp24_ = 0;
- SearchConditionSearchType _tmp25_ = 0;
+ SearchConditionSearchType _tmp24_;
+ SearchConditionSearchType _tmp25_;
#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp24_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp25_ = _tmp24_;
#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp21_ = SEARCH_CONDITION_SEARCH_TYPE_TAG == _tmp25_;
-#line 2681 "SearchBoolean.c"
+#line 2654 "SearchBoolean.c"
}
#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp21_) {
-#line 2685 "SearchBoolean.c"
+#line 2658 "SearchBoolean.c"
GeeList* tag_list = NULL;
- TagSourceCollection* _tmp26_ = NULL;
- MediaSource* _tmp27_ = NULL;
- GeeList* _tmp28_ = NULL;
- GeeList* _tmp29_ = NULL;
+ TagSourceCollection* _tmp26_;
+ MediaSource* _tmp27_;
+ GeeList* _tmp28_;
+ GeeList* _tmp29_;
#line 318 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp26_ = tag_global;
#line 318 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2700,16 +2673,16 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_tmp29_ = tag_list;
#line 319 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (NULL != _tmp29_) {
-#line 2703 "SearchBoolean.c"
+#line 2676 "SearchBoolean.c"
gchar* itag = NULL;
{
GeeList* _tag_list = NULL;
- GeeList* _tmp30_ = NULL;
- GeeList* _tmp31_ = NULL;
+ GeeList* _tmp30_;
+ GeeList* _tmp31_;
gint _tag_size = 0;
- GeeList* _tmp32_ = NULL;
- gint _tmp33_ = 0;
- gint _tmp34_ = 0;
+ GeeList* _tmp32_;
+ gint _tmp33_;
+ gint _tmp34_;
gint _tag_index = 0;
#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp30_ = tag_list;
@@ -2729,22 +2702,22 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_tag_index = -1;
#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
while (TRUE) {
-#line 2732 "SearchBoolean.c"
- gint _tmp35_ = 0;
- gint _tmp36_ = 0;
- gint _tmp37_ = 0;
+#line 2705 "SearchBoolean.c"
+ gint _tmp35_;
+ gint _tmp36_;
+ gint _tmp37_;
Tag* tag = NULL;
- GeeList* _tmp38_ = NULL;
- gint _tmp39_ = 0;
- gpointer _tmp40_ = NULL;
- Tag* _tmp41_ = NULL;
- gchar* _tmp42_ = NULL;
- gchar* _tmp43_ = NULL;
- gchar* _tmp44_ = NULL;
- gboolean _tmp45_ = FALSE;
- const gchar* _tmp46_ = NULL;
- const gchar* _tmp47_ = NULL;
- gboolean _tmp48_ = FALSE;
+ GeeList* _tmp38_;
+ gint _tmp39_;
+ gpointer _tmp40_;
+ Tag* _tmp41_;
+ gchar* _tmp42_;
+ gchar* _tmp43_;
+ gchar* _tmp44_;
+ gboolean _tmp45_;
+ const gchar* _tmp46_;
+ const gchar* _tmp47_;
+ gboolean _tmp48_;
#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp35_ = _tag_index;
#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2757,7 +2730,7 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
if (!(_tmp36_ < _tmp37_)) {
#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
break;
-#line 2760 "SearchBoolean.c"
+#line 2733 "SearchBoolean.c"
}
#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp38_ = _tag_list;
@@ -2793,19 +2766,19 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
ret = _tmp45_ | _tmp48_;
#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_object_unref0 (tag);
-#line 2796 "SearchBoolean.c"
+#line 2769 "SearchBoolean.c"
}
#line 321 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_object_unref0 (_tag_list);
-#line 2800 "SearchBoolean.c"
+#line 2773 "SearchBoolean.c"
}
#line 319 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (itag);
-#line 2804 "SearchBoolean.c"
+#line 2777 "SearchBoolean.c"
} else {
- gboolean _tmp49_ = FALSE;
- const gchar* _tmp50_ = NULL;
- gboolean _tmp51_ = FALSE;
+ gboolean _tmp49_;
+ const gchar* _tmp50_;
+ gboolean _tmp51_;
#line 326 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp49_ = ret;
#line 326 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2814,11 +2787,11 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_tmp51_ = search_condition_text_string_match (self, _tmp50_, NULL);
#line 326 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
ret = _tmp49_ | _tmp51_;
-#line 2817 "SearchBoolean.c"
+#line 2790 "SearchBoolean.c"
}
#line 317 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_object_unref0 (tag_list);
-#line 2821 "SearchBoolean.c"
+#line 2794 "SearchBoolean.c"
}
#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp53_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
@@ -2828,32 +2801,32 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp54_) {
#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp52_ = TRUE;
-#line 2831 "SearchBoolean.c"
+#line 2804 "SearchBoolean.c"
} else {
- SearchConditionSearchType _tmp55_ = 0;
- SearchConditionSearchType _tmp56_ = 0;
+ SearchConditionSearchType _tmp55_;
+ SearchConditionSearchType _tmp56_;
#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp55_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp56_ = _tmp55_;
#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp52_ = SEARCH_CONDITION_SEARCH_TYPE_EVENT_NAME == _tmp56_;
-#line 2841 "SearchBoolean.c"
+#line 2814 "SearchBoolean.c"
}
#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp52_) {
-#line 2845 "SearchBoolean.c"
+#line 2818 "SearchBoolean.c"
gchar* _tmp57_ = NULL;
- MediaSource* _tmp58_ = NULL;
- Event* _tmp59_ = NULL;
- Event* _tmp60_ = NULL;
- gboolean _tmp61_ = FALSE;
+ MediaSource* _tmp58_;
+ Event* _tmp59_;
+ Event* _tmp60_;
+ gboolean _tmp61_;
gchar* event_name = NULL;
- gchar* _tmp70_ = NULL;
- gboolean _tmp71_ = FALSE;
- const gchar* _tmp72_ = NULL;
- const gchar* _tmp73_ = NULL;
- gboolean _tmp74_ = FALSE;
+ gchar* _tmp70_;
+ gboolean _tmp71_;
+ const gchar* _tmp72_;
+ const gchar* _tmp73_;
+ gboolean _tmp74_;
#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp58_ = source;
#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2866,15 +2839,15 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_g_object_unref0 (_tmp60_);
#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp61_) {
-#line 2869 "SearchBoolean.c"
- MediaSource* _tmp62_ = NULL;
- Event* _tmp63_ = NULL;
- Event* _tmp64_ = NULL;
- gchar* _tmp65_ = NULL;
- gchar* _tmp66_ = NULL;
- gchar* _tmp67_ = NULL;
- gchar* _tmp68_ = NULL;
- gchar* _tmp69_ = NULL;
+#line 2842 "SearchBoolean.c"
+ MediaSource* _tmp62_;
+ Event* _tmp63_;
+ Event* _tmp64_;
+ gchar* _tmp65_;
+ gchar* _tmp66_;
+ gchar* _tmp67_;
+ gchar* _tmp68_;
+ gchar* _tmp69_;
#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp62_ = source;
#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2901,13 +2874,13 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_g_free0 (_tmp66_);
#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_object_unref0 (_tmp64_);
-#line 2904 "SearchBoolean.c"
+#line 2877 "SearchBoolean.c"
} else {
#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (_tmp57_);
#line 333 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp57_ = NULL;
-#line 2910 "SearchBoolean.c"
+#line 2883 "SearchBoolean.c"
}
#line 332 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp70_ = g_strdup (_tmp57_);
@@ -2927,7 +2900,7 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_g_free0 (event_name);
#line 331 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (_tmp57_);
-#line 2930 "SearchBoolean.c"
+#line 2903 "SearchBoolean.c"
}
#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp76_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
@@ -2937,25 +2910,25 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp77_) {
#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp75_ = TRUE;
-#line 2940 "SearchBoolean.c"
+#line 2913 "SearchBoolean.c"
} else {
- SearchConditionSearchType _tmp78_ = 0;
- SearchConditionSearchType _tmp79_ = 0;
+ SearchConditionSearchType _tmp78_;
+ SearchConditionSearchType _tmp79_;
#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp78_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp79_ = _tmp78_;
#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp75_ = SEARCH_CONDITION_SEARCH_TYPE_COMMENT == _tmp79_;
-#line 2950 "SearchBoolean.c"
+#line 2923 "SearchBoolean.c"
}
#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp75_) {
-#line 2954 "SearchBoolean.c"
+#line 2927 "SearchBoolean.c"
gchar* comment = NULL;
- MediaSource* _tmp80_ = NULL;
- gchar* _tmp81_ = NULL;
- const gchar* _tmp82_ = NULL;
+ MediaSource* _tmp80_;
+ gchar* _tmp81_;
+ const gchar* _tmp82_;
#line 339 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp80_ = source;
#line 339 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2966,15 +2939,15 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_tmp82_ = comment;
#line 340 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (NULL != _tmp82_) {
-#line 2969 "SearchBoolean.c"
- gboolean _tmp83_ = FALSE;
- const gchar* _tmp84_ = NULL;
- const gchar* _tmp85_ = NULL;
- gchar* _tmp86_ = NULL;
- gchar* _tmp87_ = NULL;
- gchar* _tmp88_ = NULL;
- gchar* _tmp89_ = NULL;
- gboolean _tmp90_ = FALSE;
+#line 2942 "SearchBoolean.c"
+ gboolean _tmp83_;
+ const gchar* _tmp84_;
+ const gchar* _tmp85_;
+ gchar* _tmp86_;
+ gchar* _tmp87_;
+ gchar* _tmp88_;
+ gchar* _tmp89_;
+ gboolean _tmp90_;
#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp83_ = ret;
#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -2997,11 +2970,11 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_g_free0 (_tmp89_);
#line 341 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (_tmp87_);
-#line 3000 "SearchBoolean.c"
+#line 2973 "SearchBoolean.c"
}
#line 338 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (comment);
-#line 3004 "SearchBoolean.c"
+#line 2977 "SearchBoolean.c"
}
#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp92_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
@@ -3011,31 +2984,31 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
if (SEARCH_CONDITION_SEARCH_TYPE_ANY_TEXT == _tmp93_) {
#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp91_ = TRUE;
-#line 3014 "SearchBoolean.c"
+#line 2987 "SearchBoolean.c"
} else {
- SearchConditionSearchType _tmp94_ = 0;
- SearchConditionSearchType _tmp95_ = 0;
+ SearchConditionSearchType _tmp94_;
+ SearchConditionSearchType _tmp95_;
#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp94_ = search_condition_get_search_type (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_SEARCH_CONDITION, SearchCondition));
#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp95_ = _tmp94_;
#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp91_ = SEARCH_CONDITION_SEARCH_TYPE_FILE_NAME == _tmp95_;
-#line 3024 "SearchBoolean.c"
+#line 2997 "SearchBoolean.c"
}
#line 345 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp91_) {
-#line 3028 "SearchBoolean.c"
- gboolean _tmp96_ = FALSE;
- const gchar* _tmp97_ = NULL;
- MediaSource* _tmp98_ = NULL;
- gchar* _tmp99_ = NULL;
- gchar* _tmp100_ = NULL;
- gchar* _tmp101_ = NULL;
- gchar* _tmp102_ = NULL;
- gchar* _tmp103_ = NULL;
- gchar* _tmp104_ = NULL;
- gboolean _tmp105_ = FALSE;
+#line 3001 "SearchBoolean.c"
+ gboolean _tmp96_;
+ const gchar* _tmp97_;
+ MediaSource* _tmp98_;
+ gchar* _tmp99_;
+ gchar* _tmp100_;
+ gchar* _tmp101_;
+ gchar* _tmp102_;
+ gchar* _tmp103_;
+ gchar* _tmp104_;
+ gboolean _tmp105_;
#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp96_ = ret;
#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3064,38 +3037,38 @@ static gboolean search_condition_text_real_predicate (SearchCondition* base, Med
_g_free0 (_tmp102_);
#line 346 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (_tmp100_);
-#line 3067 "SearchBoolean.c"
+#line 3040 "SearchBoolean.c"
}
#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp107_ = self->priv->_context;
#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp107_ == SEARCH_CONDITION_TEXT_CONTEXT_DOES_NOT_CONTAIN) {
-#line 3073 "SearchBoolean.c"
- gboolean _tmp108_ = FALSE;
+#line 3046 "SearchBoolean.c"
+ gboolean _tmp108_;
#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp108_ = ret;
#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp106_ = !_tmp108_;
-#line 3079 "SearchBoolean.c"
+#line 3052 "SearchBoolean.c"
} else {
- gboolean _tmp109_ = FALSE;
+ gboolean _tmp109_;
#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp109_ = ret;
#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp106_ = _tmp109_;
-#line 3086 "SearchBoolean.c"
+#line 3059 "SearchBoolean.c"
}
#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp106_;
#line 349 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3092 "SearchBoolean.c"
+#line 3065 "SearchBoolean.c"
}
const gchar* search_condition_text_get_text (SearchConditionText* self) {
const gchar* result;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_TEXT (self), NULL);
#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3104,13 +3077,13 @@ const gchar* search_condition_text_get_text (SearchConditionText* self) {
result = _tmp0_;
#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3107 "SearchBoolean.c"
+#line 3080 "SearchBoolean.c"
}
static void search_condition_text_set_text (SearchConditionText* self, const gchar* value) {
- const gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ gchar* _tmp1_;
#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_TEXT (self));
#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3121,13 +3094,13 @@ static void search_condition_text_set_text (SearchConditionText* self, const gch
_g_free0 (self->priv->_text);
#line 268 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_text = _tmp1_;
-#line 3124 "SearchBoolean.c"
+#line 3097 "SearchBoolean.c"
}
SearchConditionTextContext search_condition_text_get_context (SearchConditionText* self) {
SearchConditionTextContext result;
- SearchConditionTextContext _tmp0_ = 0;
+ SearchConditionTextContext _tmp0_;
#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_TEXT (self), 0);
#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3136,19 +3109,19 @@ SearchConditionTextContext search_condition_text_get_context (SearchConditionTex
result = _tmp0_;
#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3139 "SearchBoolean.c"
+#line 3112 "SearchBoolean.c"
}
static void search_condition_text_set_context (SearchConditionText* self, SearchConditionTextContext value) {
- SearchConditionTextContext _tmp0_ = 0;
+ SearchConditionTextContext _tmp0_;
#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_TEXT (self));
#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = value;
#line 271 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_context = _tmp0_;
-#line 3151 "SearchBoolean.c"
+#line 3124 "SearchBoolean.c"
}
@@ -3160,19 +3133,19 @@ static void search_condition_text_class_init (SearchConditionTextClass * klass)
#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_type_class_add_private (klass, sizeof (SearchConditionTextPrivate));
#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*)(SearchCondition*, MediaSource*)) search_condition_text_real_predicate;
-#line 3164 "SearchBoolean.c"
+ ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_text_real_predicate;
+#line 3137 "SearchBoolean.c"
}
static void search_condition_text_instance_init (SearchConditionText * self) {
#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv = SEARCH_CONDITION_TEXT_GET_PRIVATE (self);
-#line 3171 "SearchBoolean.c"
+#line 3144 "SearchBoolean.c"
}
-static void search_condition_text_finalize (SearchCondition* obj) {
+static void search_condition_text_finalize (SearchCondition * obj) {
SearchConditionText * self;
#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_TEXT, SearchConditionText);
@@ -3180,7 +3153,7 @@ static void search_condition_text_finalize (SearchCondition* obj) {
_g_free0 (self->priv->_text);
#line 202 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
SEARCH_CONDITION_CLASS (search_condition_text_parent_class)->finalize (obj);
-#line 3183 "SearchBoolean.c"
+#line 3156 "SearchBoolean.c"
}
@@ -3202,36 +3175,36 @@ gchar* search_condition_media_type_context_to_string (SearchConditionMediaTypeCo
switch (self) {
#line 360 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS:
-#line 3205 "SearchBoolean.c"
+#line 3178 "SearchBoolean.c"
{
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 362 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = g_strdup ("IS");
#line 362 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp0_;
#line 362 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3214 "SearchBoolean.c"
+#line 3187 "SearchBoolean.c"
}
#line 360 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT:
-#line 3218 "SearchBoolean.c"
+#line 3191 "SearchBoolean.c"
{
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
#line 365 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = g_strdup ("IS_NOT");
#line 365 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 365 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3227 "SearchBoolean.c"
+#line 3200 "SearchBoolean.c"
}
default:
{
#line 368 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:368: unrecognized media search context enumeration " \
"value");
-#line 3233 "SearchBoolean.c"
+#line 3206 "SearchBoolean.c"
}
}
}
@@ -3239,7 +3212,7 @@ gchar* search_condition_media_type_context_to_string (SearchConditionMediaTypeCo
SearchConditionMediaTypeContext search_condition_media_type_context_from_string (const gchar* str) {
SearchConditionMediaTypeContext result = 0;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 372 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (str != NULL, 0);
#line 373 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3250,9 +3223,9 @@ SearchConditionMediaTypeContext search_condition_media_type_context_from_string
result = SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS;
#line 374 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3252 "SearchBoolean.c"
+#line 3225 "SearchBoolean.c"
} else {
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp1_;
#line 376 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = str;
#line 376 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3261,14 +3234,14 @@ SearchConditionMediaTypeContext search_condition_media_type_context_from_string
result = SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT;
#line 377 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3263 "SearchBoolean.c"
+#line 3236 "SearchBoolean.c"
} else {
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
#line 380 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = str;
#line 380 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:380: unrecognized media search context name: %s", _tmp2_);
-#line 3270 "SearchBoolean.c"
+#line 3243 "SearchBoolean.c"
}
}
}
@@ -3292,49 +3265,49 @@ gchar* search_condition_media_type_media_type_to_string (SearchConditionMediaTyp
switch (self) {
#line 390 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL:
-#line 3294 "SearchBoolean.c"
+#line 3267 "SearchBoolean.c"
{
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 392 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = g_strdup ("PHOTO_ALL");
#line 392 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp0_;
#line 392 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3303 "SearchBoolean.c"
+#line 3276 "SearchBoolean.c"
}
#line 390 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW:
-#line 3307 "SearchBoolean.c"
+#line 3280 "SearchBoolean.c"
{
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
#line 395 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = g_strdup ("PHOTO_RAW");
#line 395 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 395 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3316 "SearchBoolean.c"
+#line 3289 "SearchBoolean.c"
}
#line 390 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO:
-#line 3320 "SearchBoolean.c"
+#line 3293 "SearchBoolean.c"
{
- gchar* _tmp2_ = NULL;
+ gchar* _tmp2_;
#line 398 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = g_strdup ("VIDEO");
#line 398 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp2_;
#line 398 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3329 "SearchBoolean.c"
+#line 3302 "SearchBoolean.c"
}
default:
{
#line 401 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:401: unrecognized media search type enumeration val" \
"ue");
-#line 3335 "SearchBoolean.c"
+#line 3308 "SearchBoolean.c"
}
}
}
@@ -3342,7 +3315,7 @@ gchar* search_condition_media_type_media_type_to_string (SearchConditionMediaTyp
SearchConditionMediaTypeMediaType search_condition_media_type_media_type_from_string (const gchar* str) {
SearchConditionMediaTypeMediaType result = 0;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 405 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (str != NULL, 0);
#line 406 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3353,9 +3326,9 @@ SearchConditionMediaTypeMediaType search_condition_media_type_media_type_from_st
result = SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL;
#line 407 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3354 "SearchBoolean.c"
+#line 3327 "SearchBoolean.c"
} else {
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp1_;
#line 409 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = str;
#line 409 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3364,9 +3337,9 @@ SearchConditionMediaTypeMediaType search_condition_media_type_media_type_from_st
result = SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW;
#line 410 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3365 "SearchBoolean.c"
+#line 3338 "SearchBoolean.c"
} else {
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
#line 412 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = str;
#line 412 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3375,14 +3348,14 @@ SearchConditionMediaTypeMediaType search_condition_media_type_media_type_from_st
result = SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO;
#line 413 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3376 "SearchBoolean.c"
+#line 3349 "SearchBoolean.c"
} else {
- const gchar* _tmp3_ = NULL;
+ const gchar* _tmp3_;
#line 416 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = str;
#line 416 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:416: unrecognized media search type name: %s", _tmp3_);
-#line 3383 "SearchBoolean.c"
+#line 3356 "SearchBoolean.c"
}
}
}
@@ -3403,9 +3376,9 @@ GType search_condition_media_type_media_type_get_type (void) {
SearchConditionMediaType* search_condition_media_type_construct (GType object_type, SearchConditionSearchType search_type, SearchConditionMediaTypeContext context, SearchConditionMediaTypeMediaType media_type) {
SearchConditionMediaType* self = NULL;
- SearchConditionSearchType _tmp0_ = 0;
- SearchConditionMediaTypeContext _tmp1_ = 0;
- SearchConditionMediaTypeMediaType _tmp2_ = 0;
+ SearchConditionSearchType _tmp0_;
+ SearchConditionMediaTypeContext _tmp1_;
+ SearchConditionMediaTypeMediaType _tmp2_;
#line 426 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = (SearchConditionMediaType*) search_condition_construct (object_type);
#line 427 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3422,21 +3395,21 @@ SearchConditionMediaType* search_condition_media_type_construct (GType object_ty
search_condition_media_type_set_media_type (self, _tmp2_);
#line 426 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self;
-#line 3423 "SearchBoolean.c"
+#line 3396 "SearchBoolean.c"
}
SearchConditionMediaType* search_condition_media_type_new (SearchConditionSearchType search_type, SearchConditionMediaTypeContext context, SearchConditionMediaTypeMediaType media_type) {
#line 426 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return search_condition_media_type_construct (TYPE_SEARCH_CONDITION_MEDIA_TYPE, search_type, context, media_type);
-#line 3430 "SearchBoolean.c"
+#line 3403 "SearchBoolean.c"
}
static gboolean search_condition_media_type_real_predicate (SearchCondition* base, MediaSource* source) {
SearchConditionMediaType * self;
gboolean result = FALSE;
- SearchConditionMediaTypeMediaType _tmp0_ = 0;
+ SearchConditionMediaTypeMediaType _tmp0_;
#line 433 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType);
#line 433 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3447,107 +3420,107 @@ static gboolean search_condition_media_type_real_predicate (SearchCondition* bas
switch (_tmp0_) {
#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_ALL:
-#line 3448 "SearchBoolean.c"
+#line 3421 "SearchBoolean.c"
{
- MediaSource* _tmp1_ = NULL;
+ MediaSource* _tmp1_;
#line 438 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = source;
#line 438 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, TYPE_PHOTO)) {
-#line 3455 "SearchBoolean.c"
- SearchConditionMediaTypeContext _tmp2_ = 0;
+#line 3428 "SearchBoolean.c"
+ SearchConditionMediaTypeContext _tmp2_;
#line 439 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = self->priv->_context;
#line 439 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp2_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS;
#line 439 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3463 "SearchBoolean.c"
+#line 3436 "SearchBoolean.c"
} else {
- SearchConditionMediaTypeContext _tmp3_ = 0;
+ SearchConditionMediaTypeContext _tmp3_;
#line 441 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = self->priv->_context;
#line 441 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp3_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT;
#line 441 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3472 "SearchBoolean.c"
+#line 3445 "SearchBoolean.c"
}
}
#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_PHOTO_RAW:
-#line 3477 "SearchBoolean.c"
+#line 3450 "SearchBoolean.c"
{
gboolean _tmp4_ = FALSE;
- MediaSource* _tmp5_ = NULL;
+ MediaSource* _tmp5_;
#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = source;
#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_PHOTO)) {
-#line 3485 "SearchBoolean.c"
- MediaSource* _tmp6_ = NULL;
- PhotoFileFormat _tmp7_ = 0;
+#line 3458 "SearchBoolean.c"
+ MediaSource* _tmp6_;
+ PhotoFileFormat _tmp7_;
#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp6_ = source;
#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp7_ = photo_get_master_file_format (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_PHOTO, Photo));
#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = _tmp7_ == PHOTO_FILE_FORMAT_RAW;
-#line 3494 "SearchBoolean.c"
+#line 3467 "SearchBoolean.c"
} else {
#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = FALSE;
-#line 3498 "SearchBoolean.c"
+#line 3471 "SearchBoolean.c"
}
#line 444 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp4_) {
-#line 3502 "SearchBoolean.c"
- SearchConditionMediaTypeContext _tmp8_ = 0;
+#line 3475 "SearchBoolean.c"
+ SearchConditionMediaTypeContext _tmp8_;
#line 445 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp8_ = self->priv->_context;
#line 445 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp8_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS;
#line 445 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3510 "SearchBoolean.c"
+#line 3483 "SearchBoolean.c"
} else {
- SearchConditionMediaTypeContext _tmp9_ = 0;
+ SearchConditionMediaTypeContext _tmp9_;
#line 447 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp9_ = self->priv->_context;
#line 447 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp9_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT;
#line 447 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3519 "SearchBoolean.c"
+#line 3492 "SearchBoolean.c"
}
}
#line 436 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MEDIA_TYPE_MEDIA_TYPE_VIDEO:
-#line 3524 "SearchBoolean.c"
+#line 3497 "SearchBoolean.c"
{
- MediaSource* _tmp10_ = NULL;
+ MediaSource* _tmp10_;
#line 450 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp10_ = source;
#line 450 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, TYPE_VIDEO_SOURCE)) {
-#line 3531 "SearchBoolean.c"
- SearchConditionMediaTypeContext _tmp11_ = 0;
+#line 3504 "SearchBoolean.c"
+ SearchConditionMediaTypeContext _tmp11_;
#line 451 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp11_ = self->priv->_context;
#line 451 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp11_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS;
#line 451 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3539 "SearchBoolean.c"
+#line 3512 "SearchBoolean.c"
} else {
- SearchConditionMediaTypeContext _tmp12_ = 0;
+ SearchConditionMediaTypeContext _tmp12_;
#line 453 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp12_ = self->priv->_context;
#line 453 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp12_ == SEARCH_CONDITION_MEDIA_TYPE_CONTEXT_IS_NOT;
#line 453 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3548 "SearchBoolean.c"
+#line 3521 "SearchBoolean.c"
}
}
default:
@@ -3555,7 +3528,7 @@ static gboolean search_condition_media_type_real_predicate (SearchCondition* bas
#line 456 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:456: unrecognized media search type enumeration val" \
"ue");
-#line 3555 "SearchBoolean.c"
+#line 3528 "SearchBoolean.c"
}
}
}
@@ -3563,7 +3536,7 @@ static gboolean search_condition_media_type_real_predicate (SearchCondition* bas
SearchConditionMediaTypeMediaType search_condition_media_type_get_media_type (SearchConditionMediaType* self) {
SearchConditionMediaTypeMediaType result;
- SearchConditionMediaTypeMediaType _tmp0_ = 0;
+ SearchConditionMediaTypeMediaType _tmp0_;
#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self), 0);
#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3572,25 +3545,25 @@ SearchConditionMediaTypeMediaType search_condition_media_type_get_media_type (Se
result = _tmp0_;
#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3572 "SearchBoolean.c"
+#line 3545 "SearchBoolean.c"
}
static void search_condition_media_type_set_media_type (SearchConditionMediaType* self, SearchConditionMediaTypeMediaType value) {
- SearchConditionMediaTypeMediaType _tmp0_ = 0;
+ SearchConditionMediaTypeMediaType _tmp0_;
#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self));
#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = value;
#line 421 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_media_type = _tmp0_;
-#line 3584 "SearchBoolean.c"
+#line 3557 "SearchBoolean.c"
}
SearchConditionMediaTypeContext search_condition_media_type_get_context (SearchConditionMediaType* self) {
SearchConditionMediaTypeContext result;
- SearchConditionMediaTypeContext _tmp0_ = 0;
+ SearchConditionMediaTypeContext _tmp0_;
#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self), 0);
#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3599,19 +3572,19 @@ SearchConditionMediaTypeContext search_condition_media_type_get_context (SearchC
result = _tmp0_;
#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3599 "SearchBoolean.c"
+#line 3572 "SearchBoolean.c"
}
static void search_condition_media_type_set_context (SearchConditionMediaType* self, SearchConditionMediaTypeContext value) {
- SearchConditionMediaTypeContext _tmp0_ = 0;
+ SearchConditionMediaTypeContext _tmp0_;
#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_MEDIA_TYPE (self));
#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = value;
#line 424 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_context = _tmp0_;
-#line 3611 "SearchBoolean.c"
+#line 3584 "SearchBoolean.c"
}
@@ -3623,25 +3596,25 @@ static void search_condition_media_type_class_init (SearchConditionMediaTypeClas
#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_type_class_add_private (klass, sizeof (SearchConditionMediaTypePrivate));
#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*)(SearchCondition*, MediaSource*)) search_condition_media_type_real_predicate;
-#line 3624 "SearchBoolean.c"
+ ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_media_type_real_predicate;
+#line 3597 "SearchBoolean.c"
}
static void search_condition_media_type_instance_init (SearchConditionMediaType * self) {
#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv = SEARCH_CONDITION_MEDIA_TYPE_GET_PRIVATE (self);
-#line 3631 "SearchBoolean.c"
+#line 3604 "SearchBoolean.c"
}
-static void search_condition_media_type_finalize (SearchCondition* obj) {
+static void search_condition_media_type_finalize (SearchCondition * obj) {
SearchConditionMediaType * self;
#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_MEDIA_TYPE, SearchConditionMediaType);
#line 354 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
SEARCH_CONDITION_CLASS (search_condition_media_type_parent_class)->finalize (obj);
-#line 3641 "SearchBoolean.c"
+#line 3614 "SearchBoolean.c"
}
@@ -3663,36 +3636,36 @@ gchar* search_condition_flagged_state_to_string (SearchConditionFlaggedState sel
switch (self) {
#line 468 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_FLAGGED_STATE_FLAGGED:
-#line 3663 "SearchBoolean.c"
+#line 3636 "SearchBoolean.c"
{
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 470 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = g_strdup ("FLAGGED");
#line 470 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp0_;
#line 470 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3672 "SearchBoolean.c"
+#line 3645 "SearchBoolean.c"
}
#line 468 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED:
-#line 3676 "SearchBoolean.c"
+#line 3649 "SearchBoolean.c"
{
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
#line 473 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = g_strdup ("UNFLAGGED");
#line 473 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 473 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3685 "SearchBoolean.c"
+#line 3658 "SearchBoolean.c"
}
default:
{
#line 476 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:476: unrecognized flagged search state enumeration " \
"value");
-#line 3691 "SearchBoolean.c"
+#line 3664 "SearchBoolean.c"
}
}
}
@@ -3700,7 +3673,7 @@ gchar* search_condition_flagged_state_to_string (SearchConditionFlaggedState sel
SearchConditionFlaggedState search_condition_flagged_state_from_string (const gchar* str) {
SearchConditionFlaggedState result = 0;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 480 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (str != NULL, 0);
#line 481 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3711,9 +3684,9 @@ SearchConditionFlaggedState search_condition_flagged_state_from_string (const gc
result = SEARCH_CONDITION_FLAGGED_STATE_FLAGGED;
#line 482 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3710 "SearchBoolean.c"
+#line 3683 "SearchBoolean.c"
} else {
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp1_;
#line 484 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = str;
#line 484 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3722,14 +3695,14 @@ SearchConditionFlaggedState search_condition_flagged_state_from_string (const gc
result = SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED;
#line 485 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3721 "SearchBoolean.c"
+#line 3694 "SearchBoolean.c"
} else {
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
#line 488 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = str;
#line 488 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:488: unrecognized flagged search state name: %s", _tmp2_);
-#line 3728 "SearchBoolean.c"
+#line 3701 "SearchBoolean.c"
}
}
}
@@ -3749,8 +3722,8 @@ GType search_condition_flagged_state_get_type (void) {
SearchConditionFlagged* search_condition_flagged_construct (GType object_type, SearchConditionSearchType search_type, SearchConditionFlaggedState state) {
SearchConditionFlagged* self = NULL;
- SearchConditionSearchType _tmp0_ = 0;
- SearchConditionFlaggedState _tmp1_ = 0;
+ SearchConditionSearchType _tmp0_;
+ SearchConditionFlaggedState _tmp1_;
#line 495 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = (SearchConditionFlagged*) search_condition_construct (object_type);
#line 496 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3763,21 +3736,21 @@ SearchConditionFlagged* search_condition_flagged_construct (GType object_type, S
search_condition_flagged_set_state (self, _tmp1_);
#line 495 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self;
-#line 3762 "SearchBoolean.c"
+#line 3735 "SearchBoolean.c"
}
SearchConditionFlagged* search_condition_flagged_new (SearchConditionSearchType search_type, SearchConditionFlaggedState state) {
#line 495 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return search_condition_flagged_construct (TYPE_SEARCH_CONDITION_FLAGGED, search_type, state);
-#line 3769 "SearchBoolean.c"
+#line 3742 "SearchBoolean.c"
}
static gboolean search_condition_flagged_real_predicate (SearchCondition* base, MediaSource* source) {
SearchConditionFlagged * self;
gboolean result = FALSE;
- SearchConditionFlaggedState _tmp0_ = 0;
+ SearchConditionFlaggedState _tmp0_;
#line 501 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged);
#line 501 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3786,9 +3759,9 @@ static gboolean search_condition_flagged_real_predicate (SearchCondition* base,
_tmp0_ = self->priv->_state;
#line 502 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp0_ == SEARCH_CONDITION_FLAGGED_STATE_FLAGGED) {
-#line 3785 "SearchBoolean.c"
- MediaSource* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
+#line 3758 "SearchBoolean.c"
+ MediaSource* _tmp1_;
+ gboolean _tmp2_;
#line 503 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = source;
#line 503 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3797,16 +3770,16 @@ static gboolean search_condition_flagged_real_predicate (SearchCondition* base,
result = _tmp2_;
#line 503 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3796 "SearchBoolean.c"
+#line 3769 "SearchBoolean.c"
} else {
- SearchConditionFlaggedState _tmp3_ = 0;
+ SearchConditionFlaggedState _tmp3_;
#line 504 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = self->priv->_state;
#line 504 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp3_ == SEARCH_CONDITION_FLAGGED_STATE_UNFLAGGED) {
-#line 3803 "SearchBoolean.c"
- MediaSource* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
+#line 3776 "SearchBoolean.c"
+ MediaSource* _tmp4_;
+ gboolean _tmp5_;
#line 505 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = source;
#line 505 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3815,11 +3788,11 @@ static gboolean search_condition_flagged_real_predicate (SearchCondition* base,
result = !_tmp5_;
#line 505 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3814 "SearchBoolean.c"
+#line 3787 "SearchBoolean.c"
} else {
#line 507 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:507: unrecognized flagged search state");
-#line 3818 "SearchBoolean.c"
+#line 3791 "SearchBoolean.c"
}
}
}
@@ -3827,7 +3800,7 @@ static gboolean search_condition_flagged_real_predicate (SearchCondition* base,
SearchConditionFlaggedState search_condition_flagged_get_state (SearchConditionFlagged* self) {
SearchConditionFlaggedState result;
- SearchConditionFlaggedState _tmp0_ = 0;
+ SearchConditionFlaggedState _tmp0_;
#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_FLAGGED (self), 0);
#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3836,19 +3809,19 @@ SearchConditionFlaggedState search_condition_flagged_get_state (SearchConditionF
result = _tmp0_;
#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3835 "SearchBoolean.c"
+#line 3808 "SearchBoolean.c"
}
static void search_condition_flagged_set_state (SearchConditionFlagged* self, SearchConditionFlaggedState value) {
- SearchConditionFlaggedState _tmp0_ = 0;
+ SearchConditionFlaggedState _tmp0_;
#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_FLAGGED (self));
#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = value;
#line 493 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_state = _tmp0_;
-#line 3847 "SearchBoolean.c"
+#line 3820 "SearchBoolean.c"
}
@@ -3860,25 +3833,25 @@ static void search_condition_flagged_class_init (SearchConditionFlaggedClass * k
#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_type_class_add_private (klass, sizeof (SearchConditionFlaggedPrivate));
#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*)(SearchCondition*, MediaSource*)) search_condition_flagged_real_predicate;
-#line 3860 "SearchBoolean.c"
+ ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_flagged_real_predicate;
+#line 3833 "SearchBoolean.c"
}
static void search_condition_flagged_instance_init (SearchConditionFlagged * self) {
#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv = SEARCH_CONDITION_FLAGGED_GET_PRIVATE (self);
-#line 3867 "SearchBoolean.c"
+#line 3840 "SearchBoolean.c"
}
-static void search_condition_flagged_finalize (SearchCondition* obj) {
+static void search_condition_flagged_finalize (SearchCondition * obj) {
SearchConditionFlagged * self;
#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_FLAGGED, SearchConditionFlagged);
#line 462 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
SEARCH_CONDITION_CLASS (search_condition_flagged_parent_class)->finalize (obj);
-#line 3877 "SearchBoolean.c"
+#line 3850 "SearchBoolean.c"
}
@@ -3900,36 +3873,36 @@ gchar* search_condition_modified_context_to_string (SearchConditionModifiedConte
switch (self) {
#line 520 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MODIFIED_CONTEXT_HAS:
-#line 3899 "SearchBoolean.c"
+#line 3872 "SearchBoolean.c"
{
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 522 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = g_strdup ("HAS");
#line 522 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp0_;
#line 522 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3908 "SearchBoolean.c"
+#line 3881 "SearchBoolean.c"
}
#line 520 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO:
-#line 3912 "SearchBoolean.c"
+#line 3885 "SearchBoolean.c"
{
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
#line 525 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = g_strdup ("HAS_NO");
#line 525 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 525 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3921 "SearchBoolean.c"
+#line 3894 "SearchBoolean.c"
}
default:
{
#line 528 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:528: unrecognized modified search context enumerati" \
"on value");
-#line 3927 "SearchBoolean.c"
+#line 3900 "SearchBoolean.c"
}
}
}
@@ -3937,7 +3910,7 @@ gchar* search_condition_modified_context_to_string (SearchConditionModifiedConte
SearchConditionModifiedContext search_condition_modified_context_from_string (const gchar* str) {
SearchConditionModifiedContext result = 0;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 532 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (str != NULL, 0);
#line 533 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3948,9 +3921,9 @@ SearchConditionModifiedContext search_condition_modified_context_from_string (co
result = SEARCH_CONDITION_MODIFIED_CONTEXT_HAS;
#line 534 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3946 "SearchBoolean.c"
+#line 3919 "SearchBoolean.c"
} else {
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp1_;
#line 536 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = str;
#line 536 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -3959,14 +3932,14 @@ SearchConditionModifiedContext search_condition_modified_context_from_string (co
result = SEARCH_CONDITION_MODIFIED_CONTEXT_HAS_NO;
#line 537 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3957 "SearchBoolean.c"
+#line 3930 "SearchBoolean.c"
} else {
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
#line 540 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = str;
#line 540 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:540: unrecognized modified search context name: %s", _tmp2_);
-#line 3964 "SearchBoolean.c"
+#line 3937 "SearchBoolean.c"
}
}
}
@@ -3990,49 +3963,49 @@ gchar* search_condition_modified_state_to_string (SearchConditionModifiedState s
switch (self) {
#line 550 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MODIFIED_STATE_MODIFIED:
-#line 3988 "SearchBoolean.c"
+#line 3961 "SearchBoolean.c"
{
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 552 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = g_strdup ("MODIFIED");
#line 552 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp0_;
#line 552 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 3997 "SearchBoolean.c"
+#line 3970 "SearchBoolean.c"
}
#line 550 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES:
-#line 4001 "SearchBoolean.c"
+#line 3974 "SearchBoolean.c"
{
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
#line 555 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = g_strdup ("INTERNAL_CHANGES");
#line 555 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 555 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4010 "SearchBoolean.c"
+#line 3983 "SearchBoolean.c"
}
#line 550 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES:
-#line 4014 "SearchBoolean.c"
+#line 3987 "SearchBoolean.c"
{
- gchar* _tmp2_ = NULL;
+ gchar* _tmp2_;
#line 558 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = g_strdup ("EXTERNAL_CHANGES");
#line 558 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp2_;
#line 558 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4023 "SearchBoolean.c"
+#line 3996 "SearchBoolean.c"
}
default:
{
#line 561 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:561: unrecognized modified search state enumeration" \
" value");
-#line 4029 "SearchBoolean.c"
+#line 4002 "SearchBoolean.c"
}
}
}
@@ -4040,7 +4013,7 @@ gchar* search_condition_modified_state_to_string (SearchConditionModifiedState s
SearchConditionModifiedState search_condition_modified_state_from_string (const gchar* str) {
SearchConditionModifiedState result = 0;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 565 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (str != NULL, 0);
#line 566 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4051,9 +4024,9 @@ SearchConditionModifiedState search_condition_modified_state_from_string (const
result = SEARCH_CONDITION_MODIFIED_STATE_MODIFIED;
#line 567 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4048 "SearchBoolean.c"
+#line 4021 "SearchBoolean.c"
} else {
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp1_;
#line 569 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = str;
#line 569 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4062,9 +4035,9 @@ SearchConditionModifiedState search_condition_modified_state_from_string (const
result = SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES;
#line 570 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4059 "SearchBoolean.c"
+#line 4032 "SearchBoolean.c"
} else {
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
#line 572 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = str;
#line 572 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4073,14 +4046,14 @@ SearchConditionModifiedState search_condition_modified_state_from_string (const
result = SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES;
#line 573 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4070 "SearchBoolean.c"
+#line 4043 "SearchBoolean.c"
} else {
- const gchar* _tmp3_ = NULL;
+ const gchar* _tmp3_;
#line 576 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = str;
#line 576 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:576: unrecognized modified search state name: %s", _tmp3_);
-#line 4077 "SearchBoolean.c"
+#line 4050 "SearchBoolean.c"
}
}
}
@@ -4101,9 +4074,9 @@ GType search_condition_modified_state_get_type (void) {
SearchConditionModified* search_condition_modified_construct (GType object_type, SearchConditionSearchType search_type, SearchConditionModifiedContext context, SearchConditionModifiedState state) {
SearchConditionModified* self = NULL;
- SearchConditionSearchType _tmp0_ = 0;
- SearchConditionModifiedContext _tmp1_ = 0;
- SearchConditionModifiedState _tmp2_ = 0;
+ SearchConditionSearchType _tmp0_;
+ SearchConditionModifiedContext _tmp1_;
+ SearchConditionModifiedState _tmp2_;
#line 586 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = (SearchConditionModified*) search_condition_construct (object_type);
#line 587 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4120,14 +4093,14 @@ SearchConditionModified* search_condition_modified_construct (GType object_type,
search_condition_modified_set_state (self, _tmp2_);
#line 586 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self;
-#line 4117 "SearchBoolean.c"
+#line 4090 "SearchBoolean.c"
}
SearchConditionModified* search_condition_modified_new (SearchConditionSearchType search_type, SearchConditionModifiedContext context, SearchConditionModifiedState state) {
#line 586 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return search_condition_modified_construct (TYPE_SEARCH_CONDITION_MODIFIED, search_type, context, state);
-#line 4124 "SearchBoolean.c"
+#line 4097 "SearchBoolean.c"
}
@@ -4135,12 +4108,12 @@ static gboolean search_condition_modified_real_predicate (SearchCondition* base,
SearchConditionModified * self;
gboolean result = FALSE;
Photo* photo = NULL;
- MediaSource* _tmp0_ = NULL;
- Photo* _tmp1_ = NULL;
- Photo* _tmp2_ = NULL;
+ MediaSource* _tmp0_;
+ Photo* _tmp1_;
+ Photo* _tmp2_;
gboolean match = FALSE;
- SearchConditionModifiedState _tmp3_ = 0;
- gboolean _tmp15_ = FALSE;
+ SearchConditionModifiedState _tmp3_;
+ gboolean _tmp15_;
#line 593 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified);
#line 593 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4161,16 +4134,16 @@ static gboolean search_condition_modified_real_predicate (SearchCondition* base,
_g_object_unref0 (photo);
#line 597 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4158 "SearchBoolean.c"
+#line 4131 "SearchBoolean.c"
}
#line 600 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = self->priv->_state;
#line 600 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp3_ == SEARCH_CONDITION_MODIFIED_STATE_MODIFIED) {
-#line 4164 "SearchBoolean.c"
+#line 4137 "SearchBoolean.c"
gboolean _tmp4_ = FALSE;
- Photo* _tmp5_ = NULL;
- gboolean _tmp6_ = FALSE;
+ Photo* _tmp5_;
+ gboolean _tmp6_;
#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = photo;
#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4179,57 +4152,57 @@ static gboolean search_condition_modified_real_predicate (SearchCondition* base,
if (_tmp6_) {
#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = TRUE;
-#line 4176 "SearchBoolean.c"
+#line 4149 "SearchBoolean.c"
} else {
- Photo* _tmp7_ = NULL;
- gboolean _tmp8_ = FALSE;
+ Photo* _tmp7_;
+ gboolean _tmp8_;
#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp7_ = photo;
#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp8_ = photo_has_editable (_tmp7_);
#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = _tmp8_;
-#line 4186 "SearchBoolean.c"
+#line 4159 "SearchBoolean.c"
}
#line 601 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
match = _tmp4_;
-#line 4190 "SearchBoolean.c"
+#line 4163 "SearchBoolean.c"
} else {
- SearchConditionModifiedState _tmp9_ = 0;
+ SearchConditionModifiedState _tmp9_;
#line 602 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp9_ = self->priv->_state;
#line 602 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp9_ == SEARCH_CONDITION_MODIFIED_STATE_INTERNAL_CHANGES) {
-#line 4197 "SearchBoolean.c"
- Photo* _tmp10_ = NULL;
- gboolean _tmp11_ = FALSE;
+#line 4170 "SearchBoolean.c"
+ Photo* _tmp10_;
+ gboolean _tmp11_;
#line 603 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp10_ = photo;
#line 603 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp11_ = photo_has_transformations (_tmp10_);
#line 603 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
match = _tmp11_;
-#line 4206 "SearchBoolean.c"
+#line 4179 "SearchBoolean.c"
} else {
- SearchConditionModifiedState _tmp12_ = 0;
+ SearchConditionModifiedState _tmp12_;
#line 604 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp12_ = self->priv->_state;
#line 604 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp12_ == SEARCH_CONDITION_MODIFIED_STATE_EXTERNAL_CHANGES) {
-#line 4213 "SearchBoolean.c"
- Photo* _tmp13_ = NULL;
- gboolean _tmp14_ = FALSE;
+#line 4186 "SearchBoolean.c"
+ Photo* _tmp13_;
+ gboolean _tmp14_;
#line 605 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp13_ = photo;
#line 605 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp14_ = photo_has_editable (_tmp13_);
#line 605 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
match = _tmp14_;
-#line 4222 "SearchBoolean.c"
+#line 4195 "SearchBoolean.c"
} else {
#line 607 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:607: unrecognized modified search state");
-#line 4226 "SearchBoolean.c"
+#line 4199 "SearchBoolean.c"
}
}
}
@@ -4237,8 +4210,8 @@ static gboolean search_condition_modified_real_predicate (SearchCondition* base,
_tmp15_ = match;
#line 609 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp15_) {
-#line 4234 "SearchBoolean.c"
- SearchConditionModifiedContext _tmp16_ = 0;
+#line 4207 "SearchBoolean.c"
+ SearchConditionModifiedContext _tmp16_;
#line 610 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp16_ = self->priv->_context;
#line 610 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4247,9 +4220,9 @@ static gboolean search_condition_modified_real_predicate (SearchCondition* base,
_g_object_unref0 (photo);
#line 610 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4244 "SearchBoolean.c"
+#line 4217 "SearchBoolean.c"
} else {
- SearchConditionModifiedContext _tmp17_ = 0;
+ SearchConditionModifiedContext _tmp17_;
#line 612 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp17_ = self->priv->_context;
#line 612 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4258,17 +4231,17 @@ static gboolean search_condition_modified_real_predicate (SearchCondition* base,
_g_object_unref0 (photo);
#line 612 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4255 "SearchBoolean.c"
+#line 4228 "SearchBoolean.c"
}
#line 593 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_object_unref0 (photo);
-#line 4259 "SearchBoolean.c"
+#line 4232 "SearchBoolean.c"
}
SearchConditionModifiedState search_condition_modified_get_state (SearchConditionModified* self) {
SearchConditionModifiedState result;
- SearchConditionModifiedState _tmp0_ = 0;
+ SearchConditionModifiedState _tmp0_;
#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_MODIFIED (self), 0);
#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4277,25 +4250,25 @@ SearchConditionModifiedState search_condition_modified_get_state (SearchConditio
result = _tmp0_;
#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4274 "SearchBoolean.c"
+#line 4247 "SearchBoolean.c"
}
static void search_condition_modified_set_state (SearchConditionModified* self, SearchConditionModifiedState value) {
- SearchConditionModifiedState _tmp0_ = 0;
+ SearchConditionModifiedState _tmp0_;
#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_MODIFIED (self));
#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = value;
#line 581 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_state = _tmp0_;
-#line 4286 "SearchBoolean.c"
+#line 4259 "SearchBoolean.c"
}
SearchConditionModifiedContext search_condition_modified_get_context (SearchConditionModified* self) {
SearchConditionModifiedContext result;
- SearchConditionModifiedContext _tmp0_ = 0;
+ SearchConditionModifiedContext _tmp0_;
#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_MODIFIED (self), 0);
#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4304,19 +4277,19 @@ SearchConditionModifiedContext search_condition_modified_get_context (SearchCond
result = _tmp0_;
#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4301 "SearchBoolean.c"
+#line 4274 "SearchBoolean.c"
}
static void search_condition_modified_set_context (SearchConditionModified* self, SearchConditionModifiedContext value) {
- SearchConditionModifiedContext _tmp0_ = 0;
+ SearchConditionModifiedContext _tmp0_;
#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_MODIFIED (self));
#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = value;
#line 584 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_context = _tmp0_;
-#line 4313 "SearchBoolean.c"
+#line 4286 "SearchBoolean.c"
}
@@ -4328,25 +4301,25 @@ static void search_condition_modified_class_init (SearchConditionModifiedClass *
#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_type_class_add_private (klass, sizeof (SearchConditionModifiedPrivate));
#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*)(SearchCondition*, MediaSource*)) search_condition_modified_real_predicate;
-#line 4326 "SearchBoolean.c"
+ ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_modified_real_predicate;
+#line 4299 "SearchBoolean.c"
}
static void search_condition_modified_instance_init (SearchConditionModified * self) {
#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv = SEARCH_CONDITION_MODIFIED_GET_PRIVATE (self);
-#line 4333 "SearchBoolean.c"
+#line 4306 "SearchBoolean.c"
}
-static void search_condition_modified_finalize (SearchCondition* obj) {
+static void search_condition_modified_finalize (SearchCondition * obj) {
SearchConditionModified * self;
#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_MODIFIED, SearchConditionModified);
#line 513 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
SEARCH_CONDITION_CLASS (search_condition_modified_parent_class)->finalize (obj);
-#line 4343 "SearchBoolean.c"
+#line 4316 "SearchBoolean.c"
}
@@ -4368,49 +4341,49 @@ gchar* search_condition_rating_context_to_string (SearchConditionRatingContext s
switch (self) {
#line 625 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER:
-#line 4365 "SearchBoolean.c"
+#line 4338 "SearchBoolean.c"
{
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 627 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = g_strdup ("AND_HIGHER");
#line 627 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp0_;
#line 627 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4374 "SearchBoolean.c"
+#line 4347 "SearchBoolean.c"
}
#line 625 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_RATING_CONTEXT_ONLY:
-#line 4378 "SearchBoolean.c"
+#line 4351 "SearchBoolean.c"
{
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
#line 630 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = g_strdup ("ONLY");
#line 630 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 630 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4387 "SearchBoolean.c"
+#line 4360 "SearchBoolean.c"
}
#line 625 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER:
-#line 4391 "SearchBoolean.c"
+#line 4364 "SearchBoolean.c"
{
- gchar* _tmp2_ = NULL;
+ gchar* _tmp2_;
#line 633 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = g_strdup ("AND_LOWER");
#line 633 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp2_;
#line 633 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4400 "SearchBoolean.c"
+#line 4373 "SearchBoolean.c"
}
default:
{
#line 636 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:636: unrecognized rating search context enumeration" \
" value");
-#line 4406 "SearchBoolean.c"
+#line 4379 "SearchBoolean.c"
}
}
}
@@ -4418,7 +4391,7 @@ gchar* search_condition_rating_context_to_string (SearchConditionRatingContext s
SearchConditionRatingContext search_condition_rating_context_from_string (const gchar* str) {
SearchConditionRatingContext result = 0;
- const gchar* _tmp0_ = NULL;
+ const gchar* _tmp0_;
#line 640 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (str != NULL, 0);
#line 641 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4429,9 +4402,9 @@ SearchConditionRatingContext search_condition_rating_context_from_string (const
result = SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER;
#line 642 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4425 "SearchBoolean.c"
+#line 4398 "SearchBoolean.c"
} else {
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp1_;
#line 644 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = str;
#line 644 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4440,9 +4413,9 @@ SearchConditionRatingContext search_condition_rating_context_from_string (const
result = SEARCH_CONDITION_RATING_CONTEXT_ONLY;
#line 645 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4436 "SearchBoolean.c"
+#line 4409 "SearchBoolean.c"
} else {
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
#line 647 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = str;
#line 647 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4451,14 +4424,14 @@ SearchConditionRatingContext search_condition_rating_context_from_string (const
result = SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER;
#line 648 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4447 "SearchBoolean.c"
+#line 4420 "SearchBoolean.c"
} else {
- const gchar* _tmp3_ = NULL;
+ const gchar* _tmp3_;
#line 651 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = str;
#line 651 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:651: unrecognized rating search context name: %s", _tmp3_);
-#line 4454 "SearchBoolean.c"
+#line 4427 "SearchBoolean.c"
}
}
}
@@ -4479,9 +4452,9 @@ GType search_condition_rating_context_get_type (void) {
SearchConditionRating* search_condition_rating_construct (GType object_type, SearchConditionSearchType search_type, Rating rating, SearchConditionRatingContext context) {
SearchConditionRating* self = NULL;
- SearchConditionSearchType _tmp0_ = 0;
- Rating _tmp1_ = 0;
- SearchConditionRatingContext _tmp2_ = 0;
+ SearchConditionSearchType _tmp0_;
+ Rating _tmp1_;
+ SearchConditionRatingContext _tmp2_;
#line 661 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = (SearchConditionRating*) search_condition_construct (object_type);
#line 662 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4498,14 +4471,14 @@ SearchConditionRating* search_condition_rating_construct (GType object_type, Sea
search_condition_rating_set_context (self, _tmp2_);
#line 661 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self;
-#line 4494 "SearchBoolean.c"
+#line 4467 "SearchBoolean.c"
}
SearchConditionRating* search_condition_rating_new (SearchConditionSearchType search_type, Rating rating, SearchConditionRatingContext context) {
#line 661 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return search_condition_rating_construct (TYPE_SEARCH_CONDITION_RATING, search_type, rating, context);
-#line 4501 "SearchBoolean.c"
+#line 4474 "SearchBoolean.c"
}
@@ -4513,9 +4486,9 @@ static gboolean search_condition_rating_real_predicate (SearchCondition* base, M
SearchConditionRating * self;
gboolean result = FALSE;
Rating source_rating = 0;
- MediaSource* _tmp0_ = NULL;
- Rating _tmp1_ = 0;
- SearchConditionRatingContext _tmp2_ = 0;
+ MediaSource* _tmp0_;
+ Rating _tmp1_;
+ SearchConditionRatingContext _tmp2_;
#line 668 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_RATING, SearchConditionRating);
#line 668 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4530,9 +4503,9 @@ static gboolean search_condition_rating_real_predicate (SearchCondition* base, M
_tmp2_ = self->priv->_context;
#line 670 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp2_ == SEARCH_CONDITION_RATING_CONTEXT_AND_HIGHER) {
-#line 4526 "SearchBoolean.c"
- Rating _tmp3_ = 0;
- Rating _tmp4_ = 0;
+#line 4499 "SearchBoolean.c"
+ Rating _tmp3_;
+ Rating _tmp4_;
#line 671 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = source_rating;
#line 671 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4541,16 +4514,16 @@ static gboolean search_condition_rating_real_predicate (SearchCondition* base, M
result = _tmp3_ >= _tmp4_;
#line 671 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4537 "SearchBoolean.c"
+#line 4510 "SearchBoolean.c"
} else {
- SearchConditionRatingContext _tmp5_ = 0;
+ SearchConditionRatingContext _tmp5_;
#line 672 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = self->priv->_context;
#line 672 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp5_ == SEARCH_CONDITION_RATING_CONTEXT_ONLY) {
-#line 4544 "SearchBoolean.c"
- Rating _tmp6_ = 0;
- Rating _tmp7_ = 0;
+#line 4517 "SearchBoolean.c"
+ Rating _tmp6_;
+ Rating _tmp7_;
#line 673 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp6_ = source_rating;
#line 673 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4559,16 +4532,16 @@ static gboolean search_condition_rating_real_predicate (SearchCondition* base, M
result = _tmp6_ == _tmp7_;
#line 673 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4555 "SearchBoolean.c"
+#line 4528 "SearchBoolean.c"
} else {
- SearchConditionRatingContext _tmp8_ = 0;
+ SearchConditionRatingContext _tmp8_;
#line 674 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp8_ = self->priv->_context;
#line 674 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp8_ == SEARCH_CONDITION_RATING_CONTEXT_AND_LOWER) {
-#line 4562 "SearchBoolean.c"
- Rating _tmp9_ = 0;
- Rating _tmp10_ = 0;
+#line 4535 "SearchBoolean.c"
+ Rating _tmp9_;
+ Rating _tmp10_;
#line 675 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp9_ = source_rating;
#line 675 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4577,11 +4550,11 @@ static gboolean search_condition_rating_real_predicate (SearchCondition* base, M
result = _tmp9_ <= _tmp10_;
#line 675 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4573 "SearchBoolean.c"
+#line 4546 "SearchBoolean.c"
} else {
#line 677 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:677: unknown rating search context");
-#line 4577 "SearchBoolean.c"
+#line 4550 "SearchBoolean.c"
}
}
}
@@ -4590,7 +4563,7 @@ static gboolean search_condition_rating_real_predicate (SearchCondition* base, M
Rating search_condition_rating_get_rating (SearchConditionRating* self) {
Rating result;
- Rating _tmp0_ = 0;
+ Rating _tmp0_;
#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_RATING (self), 0);
#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4599,25 +4572,25 @@ Rating search_condition_rating_get_rating (SearchConditionRating* self) {
result = _tmp0_;
#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4595 "SearchBoolean.c"
+#line 4568 "SearchBoolean.c"
}
static void search_condition_rating_set_rating (SearchConditionRating* self, Rating value) {
- Rating _tmp0_ = 0;
+ Rating _tmp0_;
#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_RATING (self));
#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = value;
#line 656 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_rating = _tmp0_;
-#line 4607 "SearchBoolean.c"
+#line 4580 "SearchBoolean.c"
}
SearchConditionRatingContext search_condition_rating_get_context (SearchConditionRating* self) {
SearchConditionRatingContext result;
- SearchConditionRatingContext _tmp0_ = 0;
+ SearchConditionRatingContext _tmp0_;
#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_RATING (self), 0);
#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4626,19 +4599,19 @@ SearchConditionRatingContext search_condition_rating_get_context (SearchConditio
result = _tmp0_;
#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4622 "SearchBoolean.c"
+#line 4595 "SearchBoolean.c"
}
static void search_condition_rating_set_context (SearchConditionRating* self, SearchConditionRatingContext value) {
- SearchConditionRatingContext _tmp0_ = 0;
+ SearchConditionRatingContext _tmp0_;
#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_RATING (self));
#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = value;
#line 659 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_context = _tmp0_;
-#line 4634 "SearchBoolean.c"
+#line 4607 "SearchBoolean.c"
}
@@ -4650,25 +4623,25 @@ static void search_condition_rating_class_init (SearchConditionRatingClass * kla
#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_type_class_add_private (klass, sizeof (SearchConditionRatingPrivate));
#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*)(SearchCondition*, MediaSource*)) search_condition_rating_real_predicate;
-#line 4647 "SearchBoolean.c"
+ ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_rating_real_predicate;
+#line 4620 "SearchBoolean.c"
}
static void search_condition_rating_instance_init (SearchConditionRating * self) {
#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv = SEARCH_CONDITION_RATING_GET_PRIVATE (self);
-#line 4654 "SearchBoolean.c"
+#line 4627 "SearchBoolean.c"
}
-static void search_condition_rating_finalize (SearchCondition* obj) {
+static void search_condition_rating_finalize (SearchCondition * obj) {
SearchConditionRating * self;
#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_RATING, SearchConditionRating);
#line 618 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
SEARCH_CONDITION_CLASS (search_condition_rating_parent_class)->finalize (obj);
-#line 4664 "SearchBoolean.c"
+#line 4637 "SearchBoolean.c"
}
@@ -4690,75 +4663,75 @@ gchar* search_condition_date_context_to_string (SearchConditionDateContext self)
switch (self) {
#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_DATE_CONTEXT_EXACT:
-#line 4686 "SearchBoolean.c"
+#line 4659 "SearchBoolean.c"
{
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 694 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = g_strdup ("EXACT");
#line 694 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp0_;
#line 694 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4695 "SearchBoolean.c"
+#line 4668 "SearchBoolean.c"
}
#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_DATE_CONTEXT_AFTER:
-#line 4699 "SearchBoolean.c"
+#line 4672 "SearchBoolean.c"
{
- gchar* _tmp1_ = NULL;
+ gchar* _tmp1_;
#line 697 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = g_strdup ("AFTER");
#line 697 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp1_;
#line 697 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4708 "SearchBoolean.c"
+#line 4681 "SearchBoolean.c"
}
#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_DATE_CONTEXT_BEFORE:
-#line 4712 "SearchBoolean.c"
+#line 4685 "SearchBoolean.c"
{
- gchar* _tmp2_ = NULL;
+ gchar* _tmp2_;
#line 700 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = g_strdup ("BEFORE");
#line 700 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp2_;
#line 700 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4721 "SearchBoolean.c"
+#line 4694 "SearchBoolean.c"
}
#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_DATE_CONTEXT_BETWEEN:
-#line 4725 "SearchBoolean.c"
+#line 4698 "SearchBoolean.c"
{
- gchar* _tmp3_ = NULL;
+ gchar* _tmp3_;
#line 703 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = g_strdup ("BETWEEN");
#line 703 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp3_;
#line 703 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4734 "SearchBoolean.c"
+#line 4707 "SearchBoolean.c"
}
#line 692 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET:
-#line 4738 "SearchBoolean.c"
+#line 4711 "SearchBoolean.c"
{
- gchar* _tmp4_ = NULL;
+ gchar* _tmp4_;
#line 706 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = g_strdup ("IS_NOT_SET");
#line 706 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp4_;
#line 706 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4747 "SearchBoolean.c"
+#line 4720 "SearchBoolean.c"
}
default:
{
#line 709 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:709: unrecognized date search context enumeration v" \
"alue");
-#line 4753 "SearchBoolean.c"
+#line 4726 "SearchBoolean.c"
}
}
}
@@ -4766,8 +4739,8 @@ gchar* search_condition_date_context_to_string (SearchConditionDateContext self)
SearchConditionDateContext search_condition_date_context_from_string (const gchar* str) {
SearchConditionDateContext result = 0;
- const gchar* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
+ const gchar* _tmp0_;
+ const gchar* _tmp1_;
#line 713 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (str != NULL, 0);
#line 714 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4778,7 +4751,7 @@ SearchConditionDateContext search_condition_date_context_from_string (const gcha
result = SEARCH_CONDITION_DATE_CONTEXT_EXACT;
#line 715 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4773 "SearchBoolean.c"
+#line 4746 "SearchBoolean.c"
}
#line 717 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = str;
@@ -4788,9 +4761,9 @@ SearchConditionDateContext search_condition_date_context_from_string (const gcha
result = SEARCH_CONDITION_DATE_CONTEXT_AFTER;
#line 718 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4783 "SearchBoolean.c"
+#line 4756 "SearchBoolean.c"
} else {
- const gchar* _tmp2_ = NULL;
+ const gchar* _tmp2_;
#line 720 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = str;
#line 720 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4799,9 +4772,9 @@ SearchConditionDateContext search_condition_date_context_from_string (const gcha
result = SEARCH_CONDITION_DATE_CONTEXT_BEFORE;
#line 721 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4794 "SearchBoolean.c"
+#line 4767 "SearchBoolean.c"
} else {
- const gchar* _tmp3_ = NULL;
+ const gchar* _tmp3_;
#line 723 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = str;
#line 723 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4810,9 +4783,9 @@ SearchConditionDateContext search_condition_date_context_from_string (const gcha
result = SEARCH_CONDITION_DATE_CONTEXT_BETWEEN;
#line 724 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4805 "SearchBoolean.c"
+#line 4778 "SearchBoolean.c"
} else {
- const gchar* _tmp4_ = NULL;
+ const gchar* _tmp4_;
#line 726 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = str;
#line 726 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4821,14 +4794,14 @@ SearchConditionDateContext search_condition_date_context_from_string (const gcha
result = SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET;
#line 727 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4816 "SearchBoolean.c"
+#line 4789 "SearchBoolean.c"
} else {
- const gchar* _tmp5_ = NULL;
+ const gchar* _tmp5_;
#line 730 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = str;
#line 730 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:730: unrecognized date search context name: %s", _tmp5_);
-#line 4823 "SearchBoolean.c"
+#line 4796 "SearchBoolean.c"
}
}
}
@@ -4850,10 +4823,10 @@ GType search_condition_date_context_get_type (void) {
SearchConditionDate* search_condition_date_construct (GType object_type, SearchConditionSearchType search_type, SearchConditionDateContext context, GDateTime* date_one, GDateTime* date_two) {
SearchConditionDate* self = NULL;
- SearchConditionSearchType _tmp0_ = 0;
- SearchConditionDateContext _tmp1_ = 0;
+ SearchConditionSearchType _tmp0_;
+ SearchConditionDateContext _tmp1_;
gboolean _tmp2_ = FALSE;
- SearchConditionDateContext _tmp3_ = 0;
+ SearchConditionDateContext _tmp3_;
#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (date_one != NULL, NULL);
#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4874,11 +4847,11 @@ SearchConditionDate* search_condition_date_construct (GType object_type, SearchC
if (_tmp3_ != SEARCH_CONDITION_DATE_CONTEXT_BETWEEN) {
#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = TRUE;
-#line 4869 "SearchBoolean.c"
+#line 4842 "SearchBoolean.c"
} else {
- GDateTime* _tmp4_ = NULL;
- GDateTime* _tmp5_ = NULL;
- gint _tmp6_ = 0;
+ GDateTime* _tmp4_;
+ GDateTime* _tmp5_;
+ gint _tmp6_;
#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = date_two;
#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4887,13 +4860,13 @@ SearchConditionDate* search_condition_date_construct (GType object_type, SearchC
_tmp6_ = g_date_time_compare (_tmp4_, _tmp5_);
#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = _tmp6_ >= 1;
-#line 4882 "SearchBoolean.c"
+#line 4855 "SearchBoolean.c"
}
#line 745 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp2_) {
-#line 4886 "SearchBoolean.c"
- GDateTime* _tmp7_ = NULL;
- GDateTime* _tmp8_ = NULL;
+#line 4859 "SearchBoolean.c"
+ GDateTime* _tmp7_;
+ GDateTime* _tmp8_;
#line 746 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp7_ = date_one;
#line 746 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4902,10 +4875,10 @@ SearchConditionDate* search_condition_date_construct (GType object_type, SearchC
_tmp8_ = date_two;
#line 747 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
search_condition_date_set_date_two (self, _tmp8_);
-#line 4897 "SearchBoolean.c"
+#line 4870 "SearchBoolean.c"
} else {
- GDateTime* _tmp9_ = NULL;
- GDateTime* _tmp10_ = NULL;
+ GDateTime* _tmp9_;
+ GDateTime* _tmp10_;
#line 749 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp9_ = date_two;
#line 749 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4914,18 +4887,18 @@ SearchConditionDate* search_condition_date_construct (GType object_type, SearchC
_tmp10_ = date_one;
#line 750 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
search_condition_date_set_date_two (self, _tmp10_);
-#line 4909 "SearchBoolean.c"
+#line 4882 "SearchBoolean.c"
}
#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self;
-#line 4913 "SearchBoolean.c"
+#line 4886 "SearchBoolean.c"
}
SearchConditionDate* search_condition_date_new (SearchConditionSearchType search_type, SearchConditionDateContext context, GDateTime* date_one, GDateTime* date_two) {
#line 741 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return search_condition_date_construct (TYPE_SEARCH_CONDITION_DATE, search_type, context, date_one, date_two);
-#line 4920 "SearchBoolean.c"
+#line 4893 "SearchBoolean.c"
}
@@ -4933,13 +4906,13 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
SearchConditionDate * self;
gboolean result = FALSE;
time_t exposure_time = 0;
- MediaSource* _tmp0_ = NULL;
- time_t _tmp1_ = 0;
- time_t _tmp2_ = 0;
+ MediaSource* _tmp0_;
+ time_t _tmp1_;
+ time_t _tmp2_;
GDateTime* dt = NULL;
- time_t _tmp4_ = 0;
- GDateTime* _tmp5_ = NULL;
- SearchConditionDateContext _tmp6_ = 0;
+ time_t _tmp4_;
+ GDateTime* _tmp5_;
+ SearchConditionDateContext _tmp6_;
#line 756 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SEARCH_CONDITION_DATE, SearchConditionDate);
#line 756 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4954,15 +4927,15 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
_tmp2_ = exposure_time;
#line 758 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp2_ == ((time_t) 0)) {
-#line 4949 "SearchBoolean.c"
- SearchConditionDateContext _tmp3_ = 0;
+#line 4922 "SearchBoolean.c"
+ SearchConditionDateContext _tmp3_;
#line 759 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = self->priv->_context;
#line 759 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp3_ == SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET;
#line 759 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 4957 "SearchBoolean.c"
+#line 4930 "SearchBoolean.c"
}
#line 761 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = exposure_time;
@@ -4976,15 +4949,15 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
switch (_tmp6_) {
#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_DATE_CONTEXT_EXACT:
-#line 4971 "SearchBoolean.c"
+#line 4944 "SearchBoolean.c"
{
GDateTime* second = NULL;
- GDateTime* _tmp7_ = NULL;
- GDateTime* _tmp8_ = NULL;
+ GDateTime* _tmp7_;
+ GDateTime* _tmp8_;
gboolean _tmp9_ = FALSE;
- GDateTime* _tmp10_ = NULL;
- GDateTime* _tmp11_ = NULL;
- gint _tmp12_ = 0;
+ GDateTime* _tmp10_;
+ GDateTime* _tmp11_;
+ gint _tmp12_;
#line 764 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp7_ = self->priv->_date_one;
#line 764 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -4999,10 +4972,10 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
_tmp12_ = g_date_time_compare (_tmp10_, _tmp11_);
#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp12_ >= 0) {
-#line 4994 "SearchBoolean.c"
- GDateTime* _tmp13_ = NULL;
- GDateTime* _tmp14_ = NULL;
- gint _tmp15_ = 0;
+#line 4967 "SearchBoolean.c"
+ GDateTime* _tmp13_;
+ GDateTime* _tmp14_;
+ gint _tmp15_;
#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp13_ = dt;
#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5011,11 +4984,11 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
_tmp15_ = g_date_time_compare (_tmp13_, _tmp14_);
#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp9_ = _tmp15_ < 0;
-#line 5006 "SearchBoolean.c"
+#line 4979 "SearchBoolean.c"
} else {
#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp9_ = FALSE;
-#line 5010 "SearchBoolean.c"
+#line 4983 "SearchBoolean.c"
}
#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp9_;
@@ -5025,15 +4998,15 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
_g_date_time_unref0 (dt);
#line 765 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5020 "SearchBoolean.c"
+#line 4993 "SearchBoolean.c"
}
#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_DATE_CONTEXT_AFTER:
-#line 5024 "SearchBoolean.c"
+#line 4997 "SearchBoolean.c"
{
- GDateTime* _tmp16_ = NULL;
- GDateTime* _tmp17_ = NULL;
- gint _tmp18_ = 0;
+ GDateTime* _tmp16_;
+ GDateTime* _tmp17_;
+ gint _tmp18_;
#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp16_ = dt;
#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5046,15 +5019,15 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
_g_date_time_unref0 (dt);
#line 768 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5041 "SearchBoolean.c"
+#line 5014 "SearchBoolean.c"
}
#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_DATE_CONTEXT_BEFORE:
-#line 5045 "SearchBoolean.c"
+#line 5018 "SearchBoolean.c"
{
- GDateTime* _tmp19_ = NULL;
- GDateTime* _tmp20_ = NULL;
- gint _tmp21_ = 0;
+ GDateTime* _tmp19_;
+ GDateTime* _tmp20_;
+ gint _tmp21_;
#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp19_ = dt;
#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5067,19 +5040,19 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
_g_date_time_unref0 (dt);
#line 771 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5062 "SearchBoolean.c"
+#line 5035 "SearchBoolean.c"
}
#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_DATE_CONTEXT_BETWEEN:
-#line 5066 "SearchBoolean.c"
+#line 5039 "SearchBoolean.c"
{
GDateTime* second = NULL;
- GDateTime* _tmp22_ = NULL;
- GDateTime* _tmp23_ = NULL;
+ GDateTime* _tmp22_;
+ GDateTime* _tmp23_;
gboolean _tmp24_ = FALSE;
- GDateTime* _tmp25_ = NULL;
- GDateTime* _tmp26_ = NULL;
- gint _tmp27_ = 0;
+ GDateTime* _tmp25_;
+ GDateTime* _tmp26_;
+ gint _tmp27_;
#line 774 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp22_ = self->priv->_date_two;
#line 774 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5094,10 +5067,10 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
_tmp27_ = g_date_time_compare (_tmp25_, _tmp26_);
#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp27_ >= 0) {
-#line 5089 "SearchBoolean.c"
- GDateTime* _tmp28_ = NULL;
- GDateTime* _tmp29_ = NULL;
- gint _tmp30_ = 0;
+#line 5062 "SearchBoolean.c"
+ GDateTime* _tmp28_;
+ GDateTime* _tmp29_;
+ gint _tmp30_;
#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp28_ = dt;
#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5106,11 +5079,11 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
_tmp30_ = g_date_time_compare (_tmp28_, _tmp29_);
#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp24_ = _tmp30_ < 0;
-#line 5101 "SearchBoolean.c"
+#line 5074 "SearchBoolean.c"
} else {
#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp24_ = FALSE;
-#line 5105 "SearchBoolean.c"
+#line 5078 "SearchBoolean.c"
}
#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = _tmp24_;
@@ -5120,11 +5093,11 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
_g_date_time_unref0 (dt);
#line 775 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5115 "SearchBoolean.c"
+#line 5088 "SearchBoolean.c"
}
#line 762 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
case SEARCH_CONDITION_DATE_CONTEXT_IS_NOT_SET:
-#line 5119 "SearchBoolean.c"
+#line 5092 "SearchBoolean.c"
{
#line 778 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = FALSE;
@@ -5132,25 +5105,25 @@ static gboolean search_condition_date_real_predicate (SearchCondition* base, Med
_g_date_time_unref0 (dt);
#line 778 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5127 "SearchBoolean.c"
+#line 5100 "SearchBoolean.c"
}
default:
{
#line 781 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_error ("SearchBoolean.vala:781: unrecognized date search context enumeration v" \
"alue");
-#line 5133 "SearchBoolean.c"
+#line 5106 "SearchBoolean.c"
}
}
#line 756 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_date_time_unref0 (dt);
-#line 5138 "SearchBoolean.c"
+#line 5111 "SearchBoolean.c"
}
GDateTime* search_condition_date_get_date_one (SearchConditionDate* self) {
GDateTime* result;
- GDateTime* _tmp0_ = NULL;
+ GDateTime* _tmp0_;
#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_DATE (self), NULL);
#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5159,20 +5132,20 @@ GDateTime* search_condition_date_get_date_one (SearchConditionDate* self) {
result = _tmp0_;
#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5153 "SearchBoolean.c"
+#line 5126 "SearchBoolean.c"
}
static gpointer _g_date_time_ref0 (gpointer self) {
#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self ? g_date_time_ref (self) : NULL;
-#line 5160 "SearchBoolean.c"
+#line 5133 "SearchBoolean.c"
}
static void search_condition_date_set_date_one (SearchConditionDate* self, GDateTime* value) {
- GDateTime* _tmp0_ = NULL;
- GDateTime* _tmp1_ = NULL;
+ GDateTime* _tmp0_;
+ GDateTime* _tmp1_;
#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_DATE (self));
#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5183,13 +5156,13 @@ static void search_condition_date_set_date_one (SearchConditionDate* self, GDate
_g_date_time_unref0 (self->priv->_date_one);
#line 735 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_date_one = _tmp1_;
-#line 5177 "SearchBoolean.c"
+#line 5150 "SearchBoolean.c"
}
GDateTime* search_condition_date_get_date_two (SearchConditionDate* self) {
GDateTime* result;
- GDateTime* _tmp0_ = NULL;
+ GDateTime* _tmp0_;
#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_DATE (self), NULL);
#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5198,13 +5171,13 @@ GDateTime* search_condition_date_get_date_two (SearchConditionDate* self) {
result = _tmp0_;
#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5192 "SearchBoolean.c"
+#line 5165 "SearchBoolean.c"
}
static void search_condition_date_set_date_two (SearchConditionDate* self, GDateTime* value) {
- GDateTime* _tmp0_ = NULL;
- GDateTime* _tmp1_ = NULL;
+ GDateTime* _tmp0_;
+ GDateTime* _tmp1_;
#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_DATE (self));
#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5215,13 +5188,13 @@ static void search_condition_date_set_date_two (SearchConditionDate* self, GDate
_g_date_time_unref0 (self->priv->_date_two);
#line 736 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_date_two = _tmp1_;
-#line 5209 "SearchBoolean.c"
+#line 5182 "SearchBoolean.c"
}
SearchConditionDateContext search_condition_date_get_context (SearchConditionDate* self) {
SearchConditionDateContext result;
- SearchConditionDateContext _tmp0_ = 0;
+ SearchConditionDateContext _tmp0_;
#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SEARCH_CONDITION_DATE (self), 0);
#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5230,19 +5203,19 @@ SearchConditionDateContext search_condition_date_get_context (SearchConditionDat
result = _tmp0_;
#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5224 "SearchBoolean.c"
+#line 5197 "SearchBoolean.c"
}
static void search_condition_date_set_context (SearchConditionDate* self, SearchConditionDateContext value) {
- SearchConditionDateContext _tmp0_ = 0;
+ SearchConditionDateContext _tmp0_;
#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SEARCH_CONDITION_DATE (self));
#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = value;
#line 739 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv->_context = _tmp0_;
-#line 5236 "SearchBoolean.c"
+#line 5209 "SearchBoolean.c"
}
@@ -5254,19 +5227,19 @@ static void search_condition_date_class_init (SearchConditionDateClass * klass)
#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_type_class_add_private (klass, sizeof (SearchConditionDatePrivate));
#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((SearchConditionClass *) klass)->predicate = (gboolean (*)(SearchCondition*, MediaSource*)) search_condition_date_real_predicate;
-#line 5249 "SearchBoolean.c"
+ ((SearchConditionClass *) klass)->predicate = (gboolean (*) (SearchCondition *, MediaSource*)) search_condition_date_real_predicate;
+#line 5222 "SearchBoolean.c"
}
static void search_condition_date_instance_init (SearchConditionDate * self) {
#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv = SEARCH_CONDITION_DATE_GET_PRIVATE (self);
-#line 5256 "SearchBoolean.c"
+#line 5229 "SearchBoolean.c"
}
-static void search_condition_date_finalize (SearchCondition* obj) {
+static void search_condition_date_finalize (SearchCondition * obj) {
SearchConditionDate * self;
#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SEARCH_CONDITION_DATE, SearchConditionDate);
@@ -5276,7 +5249,7 @@ static void search_condition_date_finalize (SearchCondition* obj) {
_g_date_time_unref0 (self->priv->_date_two);
#line 683 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
SEARCH_CONDITION_CLASS (search_condition_date_parent_class)->finalize (obj);
-#line 5270 "SearchBoolean.c"
+#line 5243 "SearchBoolean.c"
}
@@ -5295,15 +5268,15 @@ GType search_condition_date_get_type (void) {
static gpointer _saved_search_row_ref0 (gpointer self) {
#line 797 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self ? saved_search_row_ref (self) : NULL;
-#line 5289 "SearchBoolean.c"
+#line 5262 "SearchBoolean.c"
}
SavedSearch* saved_search_construct (GType object_type, SavedSearchRow* row, gint64 object_id) {
SavedSearch * self = NULL;
- gint64 _tmp0_ = 0LL;
- SavedSearchRow* _tmp1_ = NULL;
- SavedSearchRow* _tmp2_ = NULL;
+ gint64 _tmp0_;
+ SavedSearchRow* _tmp1_;
+ SavedSearchRow* _tmp2_;
#line 794 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SAVED_SEARCH_ROW (row), NULL);
#line 795 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5320,23 +5293,23 @@ SavedSearch* saved_search_construct (GType object_type, SavedSearchRow* row, gin
self->priv->row = _tmp2_;
#line 794 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self;
-#line 5314 "SearchBoolean.c"
+#line 5287 "SearchBoolean.c"
}
SavedSearch* saved_search_new (SavedSearchRow* row, gint64 object_id) {
#line 794 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return saved_search_construct (TYPE_SAVED_SEARCH, row, object_id);
-#line 5321 "SearchBoolean.c"
+#line 5294 "SearchBoolean.c"
}
static gchar* saved_search_real_get_name (DataObject* base) {
SavedSearch * self;
gchar* result = NULL;
- SavedSearchRow* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
+ SavedSearchRow* _tmp0_;
+ const gchar* _tmp1_;
+ gchar* _tmp2_;
#line 800 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch);
#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5349,17 +5322,17 @@ static gchar* saved_search_real_get_name (DataObject* base) {
result = _tmp2_;
#line 801 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5343 "SearchBoolean.c"
+#line 5316 "SearchBoolean.c"
}
static gchar* saved_search_real_to_string (DataObject* base) {
SavedSearch * self;
gchar* result = NULL;
- gchar* _tmp0_ = NULL;
- gchar* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
+ gchar* _tmp0_;
+ gchar* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
#line 804 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch);
#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5376,14 +5349,14 @@ static gchar* saved_search_real_to_string (DataObject* base) {
result = _tmp3_;
#line 805 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5370 "SearchBoolean.c"
+#line 5343 "SearchBoolean.c"
}
static gchar* saved_search_real_get_typename (DataSource* base) {
SavedSearch * self;
gchar* result = NULL;
- gchar* _tmp0_ = NULL;
+ gchar* _tmp0_;
#line 808 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch);
#line 809 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5392,13 +5365,13 @@ static gchar* saved_search_real_get_typename (DataSource* base) {
result = _tmp0_;
#line 809 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5386 "SearchBoolean.c"
+#line 5359 "SearchBoolean.c"
}
void saved_search_get_saved_search_id (SavedSearch* self, SavedSearchID* result) {
- SavedSearchRow* _tmp0_ = NULL;
- SavedSearchID _tmp1_ = {0};
+ SavedSearchRow* _tmp0_;
+ SavedSearchID _tmp1_;
#line 812 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SAVED_SEARCH (self));
#line 813 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5409,7 +5382,7 @@ void saved_search_get_saved_search_id (SavedSearch* self, SavedSearchID* result)
*result = _tmp1_;
#line 813 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return;
-#line 5403 "SearchBoolean.c"
+#line 5376 "SearchBoolean.c"
}
@@ -5417,7 +5390,7 @@ static gint64 saved_search_real_get_instance_id (DataSource* base) {
SavedSearch * self;
gint64 result = 0LL;
SavedSearchID _tmp0_ = {0};
- gint64 _tmp1_ = 0LL;
+ gint64 _tmp1_;
#line 816 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_SAVED_SEARCH, SavedSearch);
#line 817 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5428,19 +5401,19 @@ static gint64 saved_search_real_get_instance_id (DataSource* base) {
result = _tmp1_;
#line 817 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5422 "SearchBoolean.c"
+#line 5395 "SearchBoolean.c"
}
gint saved_search_compare_names (void* a, void* b) {
gint result = 0;
SavedSearch* asearch = NULL;
- void* _tmp0_ = NULL;
+ void* _tmp0_;
SavedSearch* bsearch = NULL;
- void* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- gint _tmp4_ = 0;
+ void* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ gint _tmp4_;
#line 821 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = a;
#line 821 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5459,7 +5432,7 @@ gint saved_search_compare_names (void* a, void* b) {
result = _tmp4_;
#line 824 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5453 "SearchBoolean.c"
+#line 5426 "SearchBoolean.c"
}
@@ -5467,8 +5440,8 @@ gboolean saved_search_predicate (SavedSearch* self, MediaSource* source) {
gboolean result = FALSE;
gboolean ret = FALSE;
gboolean _tmp0_ = FALSE;
- SavedSearchRow* _tmp1_ = NULL;
- SearchOperator _tmp2_ = 0;
+ SavedSearchRow* _tmp1_;
+ SearchOperator _tmp2_;
#line 827 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SAVED_SEARCH (self), FALSE);
#line 827 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5481,37 +5454,37 @@ gboolean saved_search_predicate (SavedSearch* self, MediaSource* source) {
if (SEARCH_OPERATOR_ALL == _tmp2_) {
#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = TRUE;
-#line 5475 "SearchBoolean.c"
+#line 5448 "SearchBoolean.c"
} else {
- SavedSearchRow* _tmp3_ = NULL;
- SearchOperator _tmp4_ = 0;
+ SavedSearchRow* _tmp3_;
+ SearchOperator _tmp4_;
#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = self->priv->row;
#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = _tmp3_->operator;
#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = SEARCH_OPERATOR_NONE == _tmp4_;
-#line 5485 "SearchBoolean.c"
+#line 5458 "SearchBoolean.c"
}
#line 829 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp0_) {
#line 830 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
ret = TRUE;
-#line 5491 "SearchBoolean.c"
+#line 5464 "SearchBoolean.c"
} else {
#line 832 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
ret = FALSE;
-#line 5495 "SearchBoolean.c"
+#line 5468 "SearchBoolean.c"
}
{
GeeList* _c_list = NULL;
- SavedSearchRow* _tmp5_ = NULL;
- GeeList* _tmp6_ = NULL;
- GeeList* _tmp7_ = NULL;
+ SavedSearchRow* _tmp5_;
+ GeeList* _tmp6_;
+ GeeList* _tmp7_;
gint _c_size = 0;
- GeeList* _tmp8_ = NULL;
- gint _tmp9_ = 0;
- gint _tmp10_ = 0;
+ GeeList* _tmp8_;
+ gint _tmp9_;
+ gint _tmp10_;
gint _c_index = 0;
#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = self->priv->row;
@@ -5533,16 +5506,16 @@ gboolean saved_search_predicate (SavedSearch* self, MediaSource* source) {
_c_index = -1;
#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
while (TRUE) {
-#line 5527 "SearchBoolean.c"
- gint _tmp11_ = 0;
- gint _tmp12_ = 0;
- gint _tmp13_ = 0;
+#line 5500 "SearchBoolean.c"
+ gint _tmp11_;
+ gint _tmp12_;
+ gint _tmp13_;
SearchCondition* c = NULL;
- GeeList* _tmp14_ = NULL;
- gint _tmp15_ = 0;
- gpointer _tmp16_ = NULL;
- SavedSearchRow* _tmp17_ = NULL;
- SearchOperator _tmp18_ = 0;
+ GeeList* _tmp14_;
+ gint _tmp15_;
+ gpointer _tmp16_;
+ SavedSearchRow* _tmp17_;
+ SearchOperator _tmp18_;
#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp11_ = _c_index;
#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5555,7 +5528,7 @@ gboolean saved_search_predicate (SavedSearch* self, MediaSource* source) {
if (!(_tmp12_ < _tmp13_)) {
#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
break;
-#line 5549 "SearchBoolean.c"
+#line 5522 "SearchBoolean.c"
}
#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp14_ = _c_list;
@@ -5571,11 +5544,11 @@ gboolean saved_search_predicate (SavedSearch* self, MediaSource* source) {
_tmp18_ = _tmp17_->operator;
#line 835 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (SEARCH_OPERATOR_ALL == _tmp18_) {
-#line 5565 "SearchBoolean.c"
- gboolean _tmp19_ = FALSE;
- SearchCondition* _tmp20_ = NULL;
- MediaSource* _tmp21_ = NULL;
- gboolean _tmp22_ = FALSE;
+#line 5538 "SearchBoolean.c"
+ gboolean _tmp19_;
+ SearchCondition* _tmp20_;
+ MediaSource* _tmp21_;
+ gboolean _tmp22_;
#line 836 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp19_ = ret;
#line 836 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5586,21 +5559,21 @@ gboolean saved_search_predicate (SavedSearch* self, MediaSource* source) {
_tmp22_ = search_condition_predicate (_tmp20_, _tmp21_);
#line 836 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
ret = _tmp19_ & _tmp22_;
-#line 5580 "SearchBoolean.c"
+#line 5553 "SearchBoolean.c"
} else {
- SavedSearchRow* _tmp23_ = NULL;
- SearchOperator _tmp24_ = 0;
+ SavedSearchRow* _tmp23_;
+ SearchOperator _tmp24_;
#line 837 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp23_ = self->priv->row;
#line 837 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp24_ = _tmp23_->operator;
#line 837 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (SEARCH_OPERATOR_ANY == _tmp24_) {
-#line 5590 "SearchBoolean.c"
- gboolean _tmp25_ = FALSE;
- SearchCondition* _tmp26_ = NULL;
- MediaSource* _tmp27_ = NULL;
- gboolean _tmp28_ = FALSE;
+#line 5563 "SearchBoolean.c"
+ gboolean _tmp25_;
+ SearchCondition* _tmp26_;
+ MediaSource* _tmp27_;
+ gboolean _tmp28_;
#line 838 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp25_ = ret;
#line 838 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5611,21 +5584,21 @@ gboolean saved_search_predicate (SavedSearch* self, MediaSource* source) {
_tmp28_ = search_condition_predicate (_tmp26_, _tmp27_);
#line 838 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
ret = _tmp25_ | _tmp28_;
-#line 5605 "SearchBoolean.c"
+#line 5578 "SearchBoolean.c"
} else {
- SavedSearchRow* _tmp29_ = NULL;
- SearchOperator _tmp30_ = 0;
+ SavedSearchRow* _tmp29_;
+ SearchOperator _tmp30_;
#line 839 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp29_ = self->priv->row;
#line 839 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp30_ = _tmp29_->operator;
#line 839 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (SEARCH_OPERATOR_NONE == _tmp30_) {
-#line 5615 "SearchBoolean.c"
- gboolean _tmp31_ = FALSE;
- SearchCondition* _tmp32_ = NULL;
- MediaSource* _tmp33_ = NULL;
- gboolean _tmp34_ = FALSE;
+#line 5588 "SearchBoolean.c"
+ gboolean _tmp31_;
+ SearchCondition* _tmp32_;
+ MediaSource* _tmp33_;
+ gboolean _tmp34_;
#line 840 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp31_ = ret;
#line 840 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5636,43 +5609,43 @@ gboolean saved_search_predicate (SavedSearch* self, MediaSource* source) {
_tmp34_ = search_condition_predicate (_tmp32_, _tmp33_);
#line 840 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
ret = _tmp31_ & (!_tmp34_);
-#line 5630 "SearchBoolean.c"
+#line 5603 "SearchBoolean.c"
}
}
}
#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_search_condition_unref0 (c);
-#line 5636 "SearchBoolean.c"
+#line 5609 "SearchBoolean.c"
}
#line 834 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_object_unref0 (_c_list);
-#line 5640 "SearchBoolean.c"
+#line 5613 "SearchBoolean.c"
}
#line 842 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
result = ret;
#line 842 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5646 "SearchBoolean.c"
+#line 5619 "SearchBoolean.c"
}
void saved_search_reconstitute (SavedSearch* self) {
- SavedSearchTable* _tmp8_ = NULL;
- SavedSearchTable* _tmp9_ = NULL;
- gchar* _tmp10_ = NULL;
- gchar* _tmp11_ = NULL;
+ SavedSearchTable* _tmp8_;
+ SavedSearchTable* _tmp9_;
+ gchar* _tmp10_;
+ gchar* _tmp11_;
GError * _inner_error_ = NULL;
#line 845 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SAVED_SEARCH (self));
-#line 5658 "SearchBoolean.c"
+#line 5631 "SearchBoolean.c"
{
SavedSearchID _tmp0_ = {0};
- SavedSearchDBTable* _tmp1_ = NULL;
- SavedSearchDBTable* _tmp2_ = NULL;
- SavedSearchRow* _tmp3_ = NULL;
+ SavedSearchDBTable* _tmp1_;
+ SavedSearchDBTable* _tmp2_;
+ SavedSearchRow* _tmp3_;
SavedSearchID _tmp4_ = {0};
- SavedSearchID _tmp5_ = {0};
- SavedSearchRow* _tmp6_ = NULL;
+ SavedSearchID _tmp5_;
+ SavedSearchRow* _tmp6_;
#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = saved_search_db_table_get_instance ();
#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5691,8 +5664,8 @@ void saved_search_reconstitute (SavedSearch* self) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5685 "SearchBoolean.c"
- goto __catch77_database_error;
+#line 5658 "SearchBoolean.c"
+ goto __catch78_database_error;
}
#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -5700,19 +5673,19 @@ void saved_search_reconstitute (SavedSearch* self) {
g_clear_error (&_inner_error_);
#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return;
-#line 5694 "SearchBoolean.c"
+#line 5667 "SearchBoolean.c"
}
#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp6_ = self->priv->row;
#line 847 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp6_->search_id = _tmp0_;
-#line 5700 "SearchBoolean.c"
+#line 5673 "SearchBoolean.c"
}
- goto __finally77;
- __catch77_database_error:
+ goto __finally78;
+ __catch78_database_error:
{
GError* err = NULL;
- GError* _tmp7_ = NULL;
+ GError* _tmp7_;
#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
err = _inner_error_;
#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5723,9 +5696,9 @@ void saved_search_reconstitute (SavedSearch* self) {
app_window_database_error (_tmp7_);
#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_error_free0 (err);
-#line 5717 "SearchBoolean.c"
+#line 5690 "SearchBoolean.c"
}
- __finally77:
+ __finally78:
#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5734,7 +5707,7 @@ void saved_search_reconstitute (SavedSearch* self) {
g_clear_error (&_inner_error_);
#line 846 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return;
-#line 5728 "SearchBoolean.c"
+#line 5701 "SearchBoolean.c"
}
#line 852 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp8_ = saved_search_table_get_instance ();
@@ -5752,28 +5725,28 @@ void saved_search_reconstitute (SavedSearch* self) {
g_debug ("SearchBoolean.vala:853: Reconstituted %s", _tmp11_);
#line 853 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (_tmp11_);
-#line 5746 "SearchBoolean.c"
+#line 5719 "SearchBoolean.c"
}
gboolean saved_search_rename (SavedSearch* self, const gchar* new_name) {
gboolean result = FALSE;
- const gchar* _tmp0_ = NULL;
- gboolean _tmp1_ = FALSE;
- SavedSearchTable* _tmp2_ = NULL;
- SavedSearchTable* _tmp3_ = NULL;
- const gchar* _tmp4_ = NULL;
- gboolean _tmp5_ = FALSE;
- gboolean _tmp6_ = FALSE;
- SavedSearchTable* _tmp15_ = NULL;
- SavedSearchTable* _tmp16_ = NULL;
- SavedSearchRow* _tmp17_ = NULL;
- const gchar* _tmp18_ = NULL;
- gchar* _tmp19_ = NULL;
- SavedSearchTable* _tmp20_ = NULL;
- SavedSearchTable* _tmp21_ = NULL;
- LibraryWindow* _tmp22_ = NULL;
- LibraryWindow* _tmp23_ = NULL;
+ const gchar* _tmp0_;
+ gboolean _tmp1_;
+ SavedSearchTable* _tmp2_;
+ SavedSearchTable* _tmp3_;
+ const gchar* _tmp4_;
+ gboolean _tmp5_;
+ gboolean _tmp6_;
+ SavedSearchTable* _tmp15_;
+ SavedSearchTable* _tmp16_;
+ SavedSearchRow* _tmp17_;
+ const gchar* _tmp18_;
+ gchar* _tmp19_;
+ SavedSearchTable* _tmp20_;
+ SavedSearchTable* _tmp21_;
+ LibraryWindow* _tmp22_;
+ LibraryWindow* _tmp23_;
GError * _inner_error_ = NULL;
#line 857 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SAVED_SEARCH (self), FALSE);
@@ -5789,7 +5762,7 @@ gboolean saved_search_rename (SavedSearch* self, const gchar* new_name) {
result = FALSE;
#line 859 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5783 "SearchBoolean.c"
+#line 5756 "SearchBoolean.c"
}
#line 861 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = saved_search_table_get_instance ();
@@ -5809,14 +5782,14 @@ gboolean saved_search_rename (SavedSearch* self, const gchar* new_name) {
result = FALSE;
#line 862 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5803 "SearchBoolean.c"
+#line 5776 "SearchBoolean.c"
}
{
- SavedSearchDBTable* _tmp7_ = NULL;
- SavedSearchDBTable* _tmp8_ = NULL;
- SavedSearchRow* _tmp9_ = NULL;
- SavedSearchID _tmp10_ = {0};
- const gchar* _tmp11_ = NULL;
+ SavedSearchDBTable* _tmp7_;
+ SavedSearchDBTable* _tmp8_;
+ SavedSearchRow* _tmp9_;
+ SavedSearchID _tmp10_;
+ const gchar* _tmp11_;
#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp7_ = saved_search_db_table_get_instance ();
#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5833,12 +5806,12 @@ gboolean saved_search_rename (SavedSearch* self, const gchar* new_name) {
_database_table_unref0 (_tmp8_);
#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5827 "SearchBoolean.c"
+#line 5800 "SearchBoolean.c"
gboolean _tmp12_ = FALSE;
#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 5831 "SearchBoolean.c"
- goto __catch78_database_error;
+#line 5804 "SearchBoolean.c"
+ goto __catch79_database_error;
}
#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -5846,14 +5819,14 @@ gboolean saved_search_rename (SavedSearch* self, const gchar* new_name) {
g_clear_error (&_inner_error_);
#line 865 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return _tmp12_;
-#line 5840 "SearchBoolean.c"
+#line 5813 "SearchBoolean.c"
}
}
- goto __finally78;
- __catch78_database_error:
+ goto __finally79;
+ __catch79_database_error:
{
GError* err = NULL;
- GError* _tmp13_ = NULL;
+ GError* _tmp13_;
#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
err = _inner_error_;
#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5868,12 +5841,12 @@ gboolean saved_search_rename (SavedSearch* self, const gchar* new_name) {
_g_error_free0 (err);
#line 868 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5862 "SearchBoolean.c"
+#line 5835 "SearchBoolean.c"
}
- __finally78:
+ __finally79:
#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
-#line 5867 "SearchBoolean.c"
+#line 5840 "SearchBoolean.c"
gboolean _tmp14_ = FALSE;
#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -5881,7 +5854,7 @@ gboolean saved_search_rename (SavedSearch* self, const gchar* new_name) {
g_clear_error (&_inner_error_);
#line 864 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return _tmp14_;
-#line 5875 "SearchBoolean.c"
+#line 5848 "SearchBoolean.c"
}
#line 871 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp15_ = saved_search_table_get_instance ();
@@ -5921,16 +5894,16 @@ gboolean saved_search_rename (SavedSearch* self, const gchar* new_name) {
result = TRUE;
#line 876 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5915 "SearchBoolean.c"
+#line 5888 "SearchBoolean.c"
}
GeeList* saved_search_get_conditions (SavedSearch* self) {
GeeList* result = NULL;
- SavedSearchRow* _tmp0_ = NULL;
- GeeList* _tmp1_ = NULL;
- GeeList* _tmp2_ = NULL;
- GeeList* _tmp3_ = NULL;
+ SavedSearchRow* _tmp0_;
+ GeeList* _tmp1_;
+ GeeList* _tmp2_;
+ GeeList* _tmp3_;
#line 879 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SAVED_SEARCH (self), NULL);
#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5945,14 +5918,14 @@ GeeList* saved_search_get_conditions (SavedSearch* self) {
result = _tmp3_;
#line 880 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5939 "SearchBoolean.c"
+#line 5912 "SearchBoolean.c"
}
SearchOperator saved_search_get_operator (SavedSearch* self) {
SearchOperator result = 0;
- SavedSearchRow* _tmp0_ = NULL;
- SearchOperator _tmp1_ = 0;
+ SavedSearchRow* _tmp0_;
+ SearchOperator _tmp1_;
#line 883 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SAVED_SEARCH (self), 0);
#line 884 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -5963,7 +5936,7 @@ SearchOperator saved_search_get_operator (SavedSearch* self) {
result = _tmp1_;
#line 884 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 5957 "SearchBoolean.c"
+#line 5930 "SearchBoolean.c"
}
@@ -5973,27 +5946,27 @@ static void saved_search_class_init (SavedSearchClass * klass) {
#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_type_class_add_private (klass, sizeof (SavedSearchPrivate));
#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((DataObjectClass *) klass)->get_name = (gchar* (*)(DataObject*)) saved_search_real_get_name;
+ ((DataObjectClass *) klass)->get_name = (gchar* (*) (DataObject *)) saved_search_real_get_name;
#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((DataObjectClass *) klass)->to_string = (gchar* (*)(DataObject*)) saved_search_real_to_string;
+ ((DataObjectClass *) klass)->to_string = (gchar* (*) (DataObject *)) saved_search_real_to_string;
#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((DataSourceClass *) klass)->get_typename = (gchar* (*)(DataSource*)) saved_search_real_get_typename;
+ ((DataSourceClass *) klass)->get_typename = (gchar* (*) (DataSource *)) saved_search_real_get_typename;
#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- ((DataSourceClass *) klass)->get_instance_id = (gint64 (*)(DataSource*)) saved_search_real_get_instance_id;
+ ((DataSourceClass *) klass)->get_instance_id = (gint64 (*) (DataSource *)) saved_search_real_get_instance_id;
#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
G_OBJECT_CLASS (klass)->finalize = saved_search_finalize;
-#line 5976 "SearchBoolean.c"
+#line 5949 "SearchBoolean.c"
}
static void saved_search_instance_init (SavedSearch * self) {
#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv = SAVED_SEARCH_GET_PRIVATE (self);
-#line 5983 "SearchBoolean.c"
+#line 5956 "SearchBoolean.c"
}
-static void saved_search_finalize (GObject* obj) {
+static void saved_search_finalize (GObject * obj) {
SavedSearch * self;
#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH, SavedSearch);
@@ -6001,7 +5974,7 @@ static void saved_search_finalize (GObject* obj) {
_saved_search_row_unref0 (self->priv->row);
#line 788 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
G_OBJECT_CLASS (saved_search_parent_class)->finalize (obj);
-#line 5995 "SearchBoolean.c"
+#line 5968 "SearchBoolean.c"
}
@@ -6022,13 +5995,13 @@ static SavedSearchTable* saved_search_table_construct (GType object_type) {
GError * _inner_error_ = NULL;
#line 897 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = (SavedSearchTable*) g_type_create_instance (object_type);
-#line 6016 "SearchBoolean.c"
+#line 5989 "SearchBoolean.c"
{
GeeList* _tmp0_ = NULL;
- SavedSearchDBTable* _tmp1_ = NULL;
- SavedSearchDBTable* _tmp2_ = NULL;
- GeeList* _tmp3_ = NULL;
- GeeList* _tmp4_ = NULL;
+ SavedSearchDBTable* _tmp1_;
+ SavedSearchDBTable* _tmp2_;
+ GeeList* _tmp3_;
+ GeeList* _tmp4_;
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = saved_search_db_table_get_instance ();
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6045,8 +6018,8 @@ static SavedSearchTable* saved_search_table_construct (GType object_type) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6039 "SearchBoolean.c"
- goto __catch79_database_error;
+#line 6012 "SearchBoolean.c"
+ goto __catch80_database_error;
}
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -6054,20 +6027,18 @@ static SavedSearchTable* saved_search_table_construct (GType object_type) {
g_clear_error (&_inner_error_);
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return NULL;
-#line 6048 "SearchBoolean.c"
+#line 6021 "SearchBoolean.c"
}
{
GeeList* _row_list = NULL;
- GeeList* _tmp5_ = NULL;
+ GeeList* _tmp5_;
gint _row_size = 0;
- GeeList* _tmp6_ = NULL;
- gint _tmp7_ = 0;
- gint _tmp8_ = 0;
+ GeeList* _tmp6_;
+ gint _tmp7_;
+ gint _tmp8_;
gint _row_index = 0;
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp5_ = _tmp0_;
-#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- _tmp0_ = NULL;
+ _tmp5_ = _g_object_ref0 (_tmp0_);
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_row_list = _tmp5_;
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6082,17 +6053,17 @@ static SavedSearchTable* saved_search_table_construct (GType object_type) {
_row_index = -1;
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
while (TRUE) {
-#line 6076 "SearchBoolean.c"
- gint _tmp9_ = 0;
- gint _tmp10_ = 0;
- gint _tmp11_ = 0;
+#line 6047 "SearchBoolean.c"
+ gint _tmp9_;
+ gint _tmp10_;
+ gint _tmp11_;
SavedSearchRow* row = NULL;
- GeeList* _tmp12_ = NULL;
- gint _tmp13_ = 0;
- gpointer _tmp14_ = NULL;
- SavedSearchRow* _tmp15_ = NULL;
- SavedSearch* _tmp16_ = NULL;
- SavedSearch* _tmp17_ = NULL;
+ GeeList* _tmp12_;
+ gint _tmp13_;
+ gpointer _tmp14_;
+ SavedSearchRow* _tmp15_;
+ SavedSearch* _tmp16_;
+ SavedSearch* _tmp17_;
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp9_ = _row_index;
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6105,7 +6076,7 @@ static SavedSearchTable* saved_search_table_construct (GType object_type) {
if (!(_tmp10_ < _tmp11_)) {
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
break;
-#line 6099 "SearchBoolean.c"
+#line 6070 "SearchBoolean.c"
}
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp12_ = _row_list;
@@ -6127,21 +6098,21 @@ static SavedSearchTable* saved_search_table_construct (GType object_type) {
_g_object_unref0 (_tmp17_);
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_saved_search_row_unref0 (row);
-#line 6121 "SearchBoolean.c"
+#line 6092 "SearchBoolean.c"
}
#line 900 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_object_unref0 (_row_list);
-#line 6125 "SearchBoolean.c"
+#line 6096 "SearchBoolean.c"
}
#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_object_unref0 (_tmp0_);
-#line 6129 "SearchBoolean.c"
+#line 6100 "SearchBoolean.c"
}
- goto __finally79;
- __catch79_database_error:
+ goto __finally80;
+ __catch80_database_error:
{
GError* err = NULL;
- GError* _tmp18_ = NULL;
+ GError* _tmp18_;
#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
err = _inner_error_;
#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6152,9 +6123,9 @@ static SavedSearchTable* saved_search_table_construct (GType object_type) {
app_window_database_error (_tmp18_);
#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_error_free0 (err);
-#line 6146 "SearchBoolean.c"
+#line 6117 "SearchBoolean.c"
}
- __finally79:
+ __finally80:
#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6163,46 +6134,46 @@ static SavedSearchTable* saved_search_table_construct (GType object_type) {
g_clear_error (&_inner_error_);
#line 899 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return NULL;
-#line 6157 "SearchBoolean.c"
+#line 6128 "SearchBoolean.c"
}
#line 897 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self;
-#line 6161 "SearchBoolean.c"
+#line 6132 "SearchBoolean.c"
}
static SavedSearchTable* saved_search_table_new (void) {
#line 897 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return saved_search_table_construct (TYPE_SAVED_SEARCH_TABLE);
-#line 6168 "SearchBoolean.c"
+#line 6139 "SearchBoolean.c"
}
static gpointer _saved_search_table_ref0 (gpointer self) {
#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return self ? saved_search_table_ref (self) : NULL;
-#line 6175 "SearchBoolean.c"
+#line 6146 "SearchBoolean.c"
}
SavedSearchTable* saved_search_table_get_instance (void) {
SavedSearchTable* result = NULL;
- SavedSearchTable* _tmp0_ = NULL;
- SavedSearchTable* _tmp2_ = NULL;
- SavedSearchTable* _tmp3_ = NULL;
+ SavedSearchTable* _tmp0_;
+ SavedSearchTable* _tmp2_;
+ SavedSearchTable* _tmp3_;
#line 909 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = saved_search_table_instance;
#line 909 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_tmp0_ == NULL) {
-#line 6188 "SearchBoolean.c"
- SavedSearchTable* _tmp1_ = NULL;
+#line 6159 "SearchBoolean.c"
+ SavedSearchTable* _tmp1_;
#line 910 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = saved_search_table_new ();
#line 910 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_saved_search_table_unref0 (saved_search_table_instance);
#line 910 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
saved_search_table_instance = _tmp1_;
-#line 6196 "SearchBoolean.c"
+#line 6167 "SearchBoolean.c"
}
#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp2_ = saved_search_table_instance;
@@ -6212,15 +6183,15 @@ SavedSearchTable* saved_search_table_get_instance (void) {
result = _tmp3_;
#line 912 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 6206 "SearchBoolean.c"
+#line 6177 "SearchBoolean.c"
}
GeeCollection* saved_search_table_get_all (SavedSearchTable* self) {
GeeCollection* result = NULL;
- GeeHashMap* _tmp0_ = NULL;
- GeeCollection* _tmp1_ = NULL;
- GeeCollection* _tmp2_ = NULL;
+ GeeHashMap* _tmp0_;
+ GeeCollection* _tmp1_;
+ GeeCollection* _tmp2_;
#line 915 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL);
#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6233,17 +6204,17 @@ GeeCollection* saved_search_table_get_all (SavedSearchTable* self) {
result = _tmp2_;
#line 916 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 6227 "SearchBoolean.c"
+#line 6198 "SearchBoolean.c"
}
SavedSearch* saved_search_table_create (SavedSearchTable* self, const gchar* name, SearchOperator operator, GeeArrayList* conditions) {
SavedSearch* result = NULL;
SavedSearch* search = NULL;
- SavedSearch* _tmp10_ = NULL;
- LibraryWindow* _tmp11_ = NULL;
- LibraryWindow* _tmp12_ = NULL;
- SavedSearch* _tmp13_ = NULL;
+ SavedSearch* _tmp10_;
+ LibraryWindow* _tmp11_;
+ LibraryWindow* _tmp12_;
+ SavedSearch* _tmp13_;
GError * _inner_error_ = NULL;
#line 921 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL);
@@ -6253,17 +6224,17 @@ SavedSearch* saved_search_table_create (SavedSearchTable* self, const gchar* nam
g_return_val_if_fail (GEE_IS_ARRAY_LIST (conditions), NULL);
#line 923 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
search = NULL;
-#line 6247 "SearchBoolean.c"
+#line 6218 "SearchBoolean.c"
{
SavedSearchRow* _tmp0_ = NULL;
- SavedSearchDBTable* _tmp1_ = NULL;
- SavedSearchDBTable* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
- SearchOperator _tmp4_ = 0;
- GeeArrayList* _tmp5_ = NULL;
- SavedSearchRow* _tmp6_ = NULL;
- SavedSearchRow* _tmp7_ = NULL;
- SavedSearch* _tmp8_ = NULL;
+ SavedSearchDBTable* _tmp1_;
+ SavedSearchDBTable* _tmp2_;
+ const gchar* _tmp3_;
+ SearchOperator _tmp4_;
+ GeeArrayList* _tmp5_;
+ SavedSearchRow* _tmp6_;
+ SavedSearchRow* _tmp7_;
+ SavedSearch* _tmp8_;
#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = saved_search_db_table_get_instance ();
#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6286,8 +6257,8 @@ SavedSearch* saved_search_table_create (SavedSearchTable* self, const gchar* nam
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6280 "SearchBoolean.c"
- goto __catch80_database_error;
+#line 6251 "SearchBoolean.c"
+ goto __catch81_database_error;
}
#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_object_unref0 (search);
@@ -6297,7 +6268,7 @@ SavedSearch* saved_search_table_create (SavedSearchTable* self, const gchar* nam
g_clear_error (&_inner_error_);
#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return NULL;
-#line 6291 "SearchBoolean.c"
+#line 6262 "SearchBoolean.c"
}
#line 926 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp8_ = saved_search_new (_tmp0_, DATA_OBJECT_INVALID_OBJECT_ID);
@@ -6307,13 +6278,13 @@ SavedSearch* saved_search_table_create (SavedSearchTable* self, const gchar* nam
search = _tmp8_;
#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_saved_search_row_unref0 (_tmp0_);
-#line 6301 "SearchBoolean.c"
+#line 6272 "SearchBoolean.c"
}
- goto __finally80;
- __catch80_database_error:
+ goto __finally81;
+ __catch81_database_error:
{
GError* err = NULL;
- GError* _tmp9_ = NULL;
+ GError* _tmp9_;
#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
err = _inner_error_;
#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6324,9 +6295,9 @@ SavedSearch* saved_search_table_create (SavedSearchTable* self, const gchar* nam
app_window_database_error (_tmp9_);
#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_error_free0 (err);
-#line 6318 "SearchBoolean.c"
+#line 6289 "SearchBoolean.c"
}
- __finally80:
+ __finally81:
#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6337,7 +6308,7 @@ SavedSearch* saved_search_table_create (SavedSearchTable* self, const gchar* nam
g_clear_error (&_inner_error_);
#line 925 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return NULL;
-#line 6331 "SearchBoolean.c"
+#line 6302 "SearchBoolean.c"
}
#line 932 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp10_ = search;
@@ -6357,22 +6328,22 @@ SavedSearch* saved_search_table_create (SavedSearchTable* self, const gchar* nam
result = search;
#line 934 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 6351 "SearchBoolean.c"
+#line 6322 "SearchBoolean.c"
}
void saved_search_table_remove (SavedSearchTable* self, SavedSearch* search) {
- SavedSearch* _tmp5_ = NULL;
+ SavedSearch* _tmp5_;
GError * _inner_error_ = NULL;
#line 938 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SAVED_SEARCH_TABLE (self));
#line 938 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SAVED_SEARCH (search));
-#line 6362 "SearchBoolean.c"
+#line 6333 "SearchBoolean.c"
{
- SavedSearchDBTable* _tmp0_ = NULL;
- SavedSearchDBTable* _tmp1_ = NULL;
- SavedSearch* _tmp2_ = NULL;
+ SavedSearchDBTable* _tmp0_;
+ SavedSearchDBTable* _tmp1_;
+ SavedSearch* _tmp2_;
SavedSearchID _tmp3_ = {0};
#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = saved_search_db_table_get_instance ();
@@ -6390,8 +6361,8 @@ void saved_search_table_remove (SavedSearchTable* self, SavedSearch* search) {
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (_inner_error_->domain == DATABASE_ERROR) {
-#line 6384 "SearchBoolean.c"
- goto __catch81_database_error;
+#line 6355 "SearchBoolean.c"
+ goto __catch82_database_error;
}
#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
@@ -6399,14 +6370,14 @@ void saved_search_table_remove (SavedSearchTable* self, SavedSearch* search) {
g_clear_error (&_inner_error_);
#line 940 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return;
-#line 6393 "SearchBoolean.c"
+#line 6364 "SearchBoolean.c"
}
}
- goto __finally81;
- __catch81_database_error:
+ goto __finally82;
+ __catch82_database_error:
{
GError* err = NULL;
- GError* _tmp4_ = NULL;
+ GError* _tmp4_;
#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
err = _inner_error_;
#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6417,9 +6388,9 @@ void saved_search_table_remove (SavedSearchTable* self, SavedSearch* search) {
app_window_database_error (_tmp4_);
#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_error_free0 (err);
-#line 6411 "SearchBoolean.c"
+#line 6382 "SearchBoolean.c"
}
- __finally81:
+ __finally82:
#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6428,23 +6399,23 @@ void saved_search_table_remove (SavedSearchTable* self, SavedSearch* search) {
g_clear_error (&_inner_error_);
#line 939 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return;
-#line 6422 "SearchBoolean.c"
+#line 6393 "SearchBoolean.c"
}
#line 945 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = search;
#line 945 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
saved_search_table_remove_from_map (self, _tmp5_);
-#line 6428 "SearchBoolean.c"
+#line 6399 "SearchBoolean.c"
}
void saved_search_table_add_to_map (SavedSearchTable* self, SavedSearch* search) {
- GeeHashMap* _tmp0_ = NULL;
- SavedSearch* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- SavedSearch* _tmp4_ = NULL;
- SavedSearch* _tmp5_ = NULL;
+ GeeHashMap* _tmp0_;
+ SavedSearch* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ SavedSearch* _tmp4_;
+ SavedSearch* _tmp5_;
#line 948 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SAVED_SEARCH_TABLE (self));
#line 948 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6466,17 +6437,17 @@ void saved_search_table_add_to_map (SavedSearchTable* self, SavedSearch* search)
#line 950 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp5_ = search;
#line 950 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_signal_emit_by_name (self, "search-added", _tmp5_);
-#line 6461 "SearchBoolean.c"
+ g_signal_emit (self, saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_ADDED_SIGNAL], 0, _tmp5_);
+#line 6432 "SearchBoolean.c"
}
void saved_search_table_remove_from_map (SavedSearchTable* self, SavedSearch* search) {
- GeeHashMap* _tmp0_ = NULL;
- SavedSearch* _tmp1_ = NULL;
- gchar* _tmp2_ = NULL;
- gchar* _tmp3_ = NULL;
- SavedSearch* _tmp4_ = NULL;
+ GeeHashMap* _tmp0_;
+ SavedSearch* _tmp1_;
+ gchar* _tmp2_;
+ gchar* _tmp3_;
+ SavedSearch* _tmp4_;
#line 953 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (IS_SAVED_SEARCH_TABLE (self));
#line 953 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6496,16 +6467,16 @@ void saved_search_table_remove_from_map (SavedSearchTable* self, SavedSearch* se
#line 955 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp4_ = search;
#line 955 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_signal_emit_by_name (self, "search-removed", _tmp4_);
-#line 6491 "SearchBoolean.c"
+ g_signal_emit (self, saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_REMOVED_SIGNAL], 0, _tmp4_);
+#line 6462 "SearchBoolean.c"
}
GeeIterable* saved_search_table_get_saved_searches (SavedSearchTable* self) {
GeeIterable* result = NULL;
- GeeHashMap* _tmp0_ = NULL;
- GeeCollection* _tmp1_ = NULL;
- GeeCollection* _tmp2_ = NULL;
+ GeeHashMap* _tmp0_;
+ GeeCollection* _tmp1_;
+ GeeCollection* _tmp2_;
#line 958 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL);
#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6518,15 +6489,15 @@ GeeIterable* saved_search_table_get_saved_searches (SavedSearchTable* self) {
result = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, GEE_TYPE_ITERABLE, GeeIterable);
#line 959 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 6512 "SearchBoolean.c"
+#line 6483 "SearchBoolean.c"
}
gint saved_search_table_get_count (SavedSearchTable* self) {
gint result = 0;
- GeeHashMap* _tmp0_ = NULL;
- gint _tmp1_ = 0;
- gint _tmp2_ = 0;
+ GeeHashMap* _tmp0_;
+ gint _tmp1_;
+ gint _tmp2_;
#line 962 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), 0);
#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6539,15 +6510,15 @@ gint saved_search_table_get_count (SavedSearchTable* self) {
result = _tmp2_;
#line 963 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 6533 "SearchBoolean.c"
+#line 6504 "SearchBoolean.c"
}
gboolean saved_search_table_exists (SavedSearchTable* self, const gchar* search_name) {
gboolean result = FALSE;
- GeeHashMap* _tmp0_ = NULL;
- const gchar* _tmp1_ = NULL;
- gboolean _tmp2_ = FALSE;
+ GeeHashMap* _tmp0_;
+ const gchar* _tmp1_;
+ gboolean _tmp2_;
#line 966 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), FALSE);
#line 966 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6562,43 +6533,43 @@ gboolean saved_search_table_exists (SavedSearchTable* self, const gchar* search_
result = _tmp2_;
#line 967 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 6556 "SearchBoolean.c"
+#line 6527 "SearchBoolean.c"
}
gchar* saved_search_table_generate_unique_name (SavedSearchTable* self) {
gchar* result = NULL;
- gchar* _tmp7_ = NULL;
+ gchar* _tmp7_;
#line 971 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_val_if_fail (IS_SAVED_SEARCH_TABLE (self), NULL);
-#line 6565 "SearchBoolean.c"
+#line 6536 "SearchBoolean.c"
{
gint ctr = 0;
#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
ctr = 1;
-#line 6570 "SearchBoolean.c"
+#line 6541 "SearchBoolean.c"
{
gboolean _tmp0_ = FALSE;
#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = TRUE;
#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
while (TRUE) {
-#line 6577 "SearchBoolean.c"
- gint _tmp2_ = 0;
+#line 6548 "SearchBoolean.c"
+ gint _tmp2_;
gchar* name = NULL;
- gint _tmp3_ = 0;
- gchar* _tmp4_ = NULL;
- const gchar* _tmp5_ = NULL;
- gboolean _tmp6_ = FALSE;
+ gint _tmp3_;
+ gchar* _tmp4_;
+ const gchar* _tmp5_;
+ gboolean _tmp6_;
#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (!_tmp0_) {
-#line 6586 "SearchBoolean.c"
- gint _tmp1_ = 0;
+#line 6557 "SearchBoolean.c"
+ gint _tmp1_;
#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp1_ = ctr;
#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
ctr = _tmp1_ + 1;
-#line 6592 "SearchBoolean.c"
+#line 6563 "SearchBoolean.c"
}
#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp0_ = FALSE;
@@ -6608,7 +6579,7 @@ gchar* saved_search_table_generate_unique_name (SavedSearchTable* self) {
if (!(_tmp2_ < G_MAXINT)) {
#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
break;
-#line 6602 "SearchBoolean.c"
+#line 6573 "SearchBoolean.c"
}
#line 973 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_tmp3_ = ctr;
@@ -6626,11 +6597,11 @@ gchar* saved_search_table_generate_unique_name (SavedSearchTable* self) {
result = name;
#line 976 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 6620 "SearchBoolean.c"
+#line 6591 "SearchBoolean.c"
}
#line 972 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_free0 (name);
-#line 6624 "SearchBoolean.c"
+#line 6595 "SearchBoolean.c"
}
}
}
@@ -6640,14 +6611,14 @@ gchar* saved_search_table_generate_unique_name (SavedSearchTable* self) {
result = _tmp7_;
#line 978 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return result;
-#line 6634 "SearchBoolean.c"
+#line 6605 "SearchBoolean.c"
}
static void value_saved_search_table_init (GValue* value) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = NULL;
-#line 6641 "SearchBoolean.c"
+#line 6612 "SearchBoolean.c"
}
@@ -6656,7 +6627,7 @@ static void value_saved_search_table_free_value (GValue* value) {
if (value->data[0].v_pointer) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
saved_search_table_unref (value->data[0].v_pointer);
-#line 6650 "SearchBoolean.c"
+#line 6621 "SearchBoolean.c"
}
}
@@ -6666,11 +6637,11 @@ static void value_saved_search_table_copy_value (const GValue* src_value, GValue
if (src_value->data[0].v_pointer) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
dest_value->data[0].v_pointer = saved_search_table_ref (src_value->data[0].v_pointer);
-#line 6660 "SearchBoolean.c"
+#line 6631 "SearchBoolean.c"
} else {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
dest_value->data[0].v_pointer = NULL;
-#line 6664 "SearchBoolean.c"
+#line 6635 "SearchBoolean.c"
}
}
@@ -6678,66 +6649,66 @@ static void value_saved_search_table_copy_value (const GValue* src_value, GValue
static gpointer value_saved_search_table_peek_pointer (const GValue* value) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return value->data[0].v_pointer;
-#line 6672 "SearchBoolean.c"
+#line 6643 "SearchBoolean.c"
}
static gchar* value_saved_search_table_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (collect_values[0].v_pointer) {
-#line 6679 "SearchBoolean.c"
- SavedSearchTable* object;
+#line 6650 "SearchBoolean.c"
+ SavedSearchTable * object;
object = collect_values[0].v_pointer;
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (object->parent_instance.g_class == NULL) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
-#line 6686 "SearchBoolean.c"
+#line 6657 "SearchBoolean.c"
} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.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 6690 "SearchBoolean.c"
+#line 6661 "SearchBoolean.c"
}
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = saved_search_table_ref (object);
-#line 6694 "SearchBoolean.c"
+#line 6665 "SearchBoolean.c"
} else {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = NULL;
-#line 6698 "SearchBoolean.c"
+#line 6669 "SearchBoolean.c"
}
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return NULL;
-#line 6702 "SearchBoolean.c"
+#line 6673 "SearchBoolean.c"
}
static gchar* value_saved_search_table_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
- SavedSearchTable** object_p;
+ SavedSearchTable ** object_p;
object_p = collect_values[0].v_pointer;
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (!object_p) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
-#line 6713 "SearchBoolean.c"
+#line 6684 "SearchBoolean.c"
}
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (!value->data[0].v_pointer) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
*object_p = NULL;
-#line 6719 "SearchBoolean.c"
+#line 6690 "SearchBoolean.c"
} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
*object_p = value->data[0].v_pointer;
-#line 6723 "SearchBoolean.c"
+#line 6694 "SearchBoolean.c"
} else {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
*object_p = saved_search_table_ref (value->data[0].v_pointer);
-#line 6727 "SearchBoolean.c"
+#line 6698 "SearchBoolean.c"
}
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return NULL;
-#line 6731 "SearchBoolean.c"
+#line 6702 "SearchBoolean.c"
}
@@ -6751,7 +6722,7 @@ GParamSpec* param_spec_saved_search_table (const gchar* name, const gchar* nick,
G_PARAM_SPEC (spec)->value_type = object_type;
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return G_PARAM_SPEC (spec);
-#line 6745 "SearchBoolean.c"
+#line 6716 "SearchBoolean.c"
}
@@ -6760,12 +6731,12 @@ gpointer value_get_saved_search_table (const GValue* value) {
g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_TABLE), NULL);
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return value->data[0].v_pointer;
-#line 6754 "SearchBoolean.c"
+#line 6725 "SearchBoolean.c"
}
void value_set_saved_search_table (GValue* value, gpointer v_object) {
- SavedSearchTable* old;
+ SavedSearchTable * old;
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_TABLE));
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6780,23 +6751,23 @@ void value_set_saved_search_table (GValue* value, gpointer v_object) {
value->data[0].v_pointer = v_object;
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
saved_search_table_ref (value->data[0].v_pointer);
-#line 6774 "SearchBoolean.c"
+#line 6745 "SearchBoolean.c"
} else {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = NULL;
-#line 6778 "SearchBoolean.c"
+#line 6749 "SearchBoolean.c"
}
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (old) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
saved_search_table_unref (old);
-#line 6784 "SearchBoolean.c"
+#line 6755 "SearchBoolean.c"
}
}
void value_take_saved_search_table (GValue* value, gpointer v_object) {
- SavedSearchTable* old;
+ SavedSearchTable * old;
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SAVED_SEARCH_TABLE));
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6809,17 +6780,17 @@ void value_take_saved_search_table (GValue* value, gpointer v_object) {
g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = v_object;
-#line 6803 "SearchBoolean.c"
+#line 6774 "SearchBoolean.c"
} else {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
value->data[0].v_pointer = NULL;
-#line 6807 "SearchBoolean.c"
+#line 6778 "SearchBoolean.c"
}
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (old) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
saved_search_table_unref (old);
-#line 6813 "SearchBoolean.c"
+#line 6784 "SearchBoolean.c"
}
}
@@ -6832,15 +6803,15 @@ static void saved_search_table_class_init (SavedSearchTableClass * klass) {
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_type_class_add_private (klass, sizeof (SavedSearchTablePrivate));
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_signal_new ("search_added", TYPE_SAVED_SEARCH_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH);
+ saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_ADDED_SIGNAL] = g_signal_new ("search-added", TYPE_SAVED_SEARCH_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH);
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
- g_signal_new ("search_removed", TYPE_SAVED_SEARCH_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH);
-#line 6829 "SearchBoolean.c"
+ saved_search_table_signals[SAVED_SEARCH_TABLE_SEARCH_REMOVED_SIGNAL] = g_signal_new ("search-removed", TYPE_SAVED_SEARCH_TABLE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_SAVED_SEARCH);
+#line 6800 "SearchBoolean.c"
}
static void saved_search_table_instance_init (SavedSearchTable * self) {
- GeeHashMap* _tmp0_ = NULL;
+ GeeHashMap* _tmp0_;
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->priv = SAVED_SEARCH_TABLE_GET_PRIVATE (self);
#line 892 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
@@ -6849,11 +6820,11 @@ static void saved_search_table_instance_init (SavedSearchTable * self) {
self->priv->search_map = _tmp0_;
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self->ref_count = 1;
-#line 6843 "SearchBoolean.c"
+#line 6814 "SearchBoolean.c"
}
-static void saved_search_table_finalize (SavedSearchTable* obj) {
+static void saved_search_table_finalize (SavedSearchTable * obj) {
SavedSearchTable * self;
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SAVED_SEARCH_TABLE, SavedSearchTable);
@@ -6861,7 +6832,7 @@ static void saved_search_table_finalize (SavedSearchTable* obj) {
g_signal_handlers_destroy (self);
#line 892 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
_g_object_unref0 (self->priv->search_map);
-#line 6855 "SearchBoolean.c"
+#line 6826 "SearchBoolean.c"
}
@@ -6880,18 +6851,18 @@ GType saved_search_table_get_type (void) {
gpointer saved_search_table_ref (gpointer instance) {
- SavedSearchTable* self;
+ SavedSearchTable * self;
self = instance;
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_atomic_int_inc (&self->ref_count);
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
return instance;
-#line 6880 "SearchBoolean.c"
+#line 6851 "SearchBoolean.c"
}
void saved_search_table_unref (gpointer instance) {
- SavedSearchTable* self;
+ SavedSearchTable * self;
self = instance;
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
if (g_atomic_int_dec_and_test (&self->ref_count)) {
@@ -6899,7 +6870,7 @@ void saved_search_table_unref (gpointer instance) {
SAVED_SEARCH_TABLE_GET_CLASS (self)->finalize (self);
#line 890 "/home/jens/Source/shotwell/src/searches/SearchBoolean.vala"
g_type_free_instance ((GTypeInstance *) self);
-#line 6893 "SearchBoolean.c"
+#line 6864 "SearchBoolean.c"
}
}