~noskcaj/ubuntu/utopic/libfm/merge2

« back to all changes in this revision

Viewing changes to src/actions/condition.c

  • Committer: Package Import Robot
  • Author(s): Julien Lavergne
  • Date: 2014-08-31 15:37:58 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20140831153758-wt976vqf1zopdkcm
Tags: 1.2.2.1-0ubuntu1
* New upstream release.
* debian/patches:
 - 02-disable-Werror.patch: Refreshed.
* debian/libfm-dev.install:
 - Add libfm-extra.pc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* condition.c generated by valac 0.22.1, the Vala compiler
 
1
/* condition.c generated by valac 0.16.1, the Vala compiler
2
2
 * generated from condition.vala, do not modify */
3
3
 
4
4
/*      condition.vala*/
118
118
 
119
119
static gchar string_get (const gchar* self, glong index) {
120
120
        gchar result = '\0';
121
 
        glong _tmp0_ = 0L;
122
 
        gchar _tmp1_ = '\0';
 
121
        glong _tmp0_;
 
122
        gchar _tmp1_;
123
123
        g_return_val_if_fail (self != NULL, '\0');
124
124
        _tmp0_ = index;
125
125
        _tmp1_ = ((gchar*) self)[_tmp0_];
130
130
 
131
131
FmFileActionCondition* fm_file_action_condition_new (GKeyFile* kf, const gchar* group) {
132
132
        FmFileActionCondition* self;
133
 
        GKeyFile* _tmp0_ = NULL;
134
 
        const gchar* _tmp1_ = NULL;
 
133
        GKeyFile* _tmp0_;
 
134
        const gchar* _tmp1_;
135
135
        gint _tmp2_ = 0;
136
136
        gchar** _tmp3_ = NULL;
137
 
        GKeyFile* _tmp4_ = NULL;
138
 
        const gchar* _tmp5_ = NULL;
 
137
        GKeyFile* _tmp4_;
 
138
        const gchar* _tmp5_;
139
139
        gint _tmp6_ = 0;
140
140
        gchar** _tmp7_ = NULL;
141
 
        GKeyFile* _tmp8_ = NULL;
142
 
        const gchar* _tmp9_ = NULL;
 
141
        GKeyFile* _tmp8_;
 
142
        const gchar* _tmp9_;
143
143
        gchar* _tmp10_ = NULL;
144
 
        GKeyFile* _tmp11_ = NULL;
145
 
        const gchar* _tmp12_ = NULL;
 
144
        GKeyFile* _tmp11_;
 
145
        const gchar* _tmp12_;
146
146
        gchar* _tmp13_ = NULL;
147
 
        GKeyFile* _tmp14_ = NULL;
148
 
        const gchar* _tmp15_ = NULL;
 
147
        GKeyFile* _tmp14_;
 
148
        const gchar* _tmp15_;
149
149
        gchar* _tmp16_ = NULL;
150
 
        GKeyFile* _tmp17_ = NULL;
151
 
        const gchar* _tmp18_ = NULL;
 
150
        GKeyFile* _tmp17_;
 
151
        const gchar* _tmp18_;
152
152
        gchar* _tmp19_ = NULL;
153
 
        GKeyFile* _tmp20_ = NULL;
154
 
        const gchar* _tmp21_ = NULL;
 
153
        GKeyFile* _tmp20_;
 
154
        const gchar* _tmp21_;
155
155
        gint _tmp22_ = 0;
156
156
        gchar** _tmp23_ = NULL;
157
 
        GKeyFile* _tmp24_ = NULL;
158
 
        const gchar* _tmp25_ = NULL;
 
157
        GKeyFile* _tmp24_;
 
158
        const gchar* _tmp25_;
159
159
        gint _tmp26_ = 0;
160
160
        gchar** _tmp27_ = NULL;
161
 
        GKeyFile* _tmp28_ = NULL;
162
 
        const gchar* _tmp29_ = NULL;
 
161
        GKeyFile* _tmp28_;
 
162
        const gchar* _tmp29_;
163
163
        gboolean _tmp30_ = FALSE;
164
 
        gchar* selection_count_str = NULL;
165
 
        GKeyFile* _tmp31_ = NULL;
166
 
        const gchar* _tmp32_ = NULL;
 
164
        GKeyFile* _tmp31_;
 
165
        const gchar* _tmp32_;
167
166
        gchar* _tmp33_ = NULL;
168
 
        const gchar* _tmp34_ = NULL;
169
 
        GKeyFile* _tmp40_ = NULL;
170
 
        const gchar* _tmp41_ = NULL;
 
167
        gchar* selection_count_str;
 
168
        const gchar* _tmp34_;
 
169
        GKeyFile* _tmp40_;
 
170
        const gchar* _tmp41_;
171
171
        gint _tmp42_ = 0;
172
172
        gchar** _tmp43_ = NULL;
173
 
        GKeyFile* _tmp44_ = NULL;
174
 
        const gchar* _tmp45_ = NULL;
 
173
        GKeyFile* _tmp44_;
 
174
        const gchar* _tmp45_;
175
175
        gint _tmp46_ = 0;
176
176
        gchar** _tmp47_ = NULL;
177
 
        gchar** caps = NULL;
178
 
        GKeyFile* _tmp48_ = NULL;
179
 
        const gchar* _tmp49_ = NULL;
 
177
        GKeyFile* _tmp48_;
 
178
        const gchar* _tmp49_;
180
179
        gint _tmp50_ = 0;
181
180
        gchar** _tmp51_ = NULL;
182
 
        gint caps_length1 = 0;
183
 
        gint _caps_size_ = 0;
184
 
        gchar** _tmp52_ = NULL;
185
 
        gint _tmp52__length1 = 0;
 
181
        gchar** caps;
 
182
        gint caps_length1;
 
183
        gint _caps_size_;
 
184
        gchar** _tmp52_;
 
185
        gint _tmp52__length1;
186
186
        g_return_val_if_fail (kf != NULL, NULL);
187
187
        g_return_val_if_fail (group != NULL, NULL);
188
188
        self = g_slice_new0 (FmFileActionCondition);
241
241
        selection_count_str = _tmp33_;
242
242
        _tmp34_ = selection_count_str;
243
243
        if (_tmp34_ != NULL) {
244
 
                const gchar* _tmp35_ = NULL;
 
244
                const gchar* _tmp35_;
245
245
                gchar _tmp36_ = '\0';
246
246
                _tmp35_ = selection_count_str;
247
247
                _tmp36_ = string_get (_tmp35_, (glong) 0);
250
250
                        case '>':
251
251
                        case '=':
252
252
                        {
253
 
                                const gchar* _tmp37_ = NULL;
 
253
                                const gchar* _tmp37_;
254
254
                                gchar _tmp38_ = '\0';
255
 
                                gchar tmp = '\0';
 
255
                                gchar tmp;
256
256
                                static const char s[] = "%c%d";
257
 
                                const gchar* _tmp39_ = NULL;
 
257
                                const gchar* _tmp39_;
258
258
                                _tmp37_ = selection_count_str;
259
259
                                _tmp38_ = string_get (_tmp37_, (glong) 0);
260
260
                                self->selection_count_cmp = _tmp38_;
305
305
                        const gchar* cap = NULL;
306
306
                        cap = cap_collection[cap_it];
307
307
                        {
308
 
                                FILE* _tmp53_ = NULL;
309
 
                                const gchar* _tmp54_ = NULL;
 
308
                                FILE* _tmp53_;
 
309
                                const gchar* _tmp54_;
310
310
                                _tmp53_ = stdin;
311
311
                                _tmp54_ = cap;
312
312
                                fprintf (_tmp53_, "%s\n", _tmp54_);
321
321
 
322
322
static inline gboolean fm_file_action_condition_match_try_exec (FmFileActionCondition* self, GList* files) {
323
323
        gboolean result = FALSE;
324
 
        const gchar* _tmp0_ = NULL;
 
324
        const gchar* _tmp0_;
325
325
        g_return_val_if_fail (self != NULL, FALSE);
326
326
        _tmp0_ = self->try_exec;
327
327
        if (_tmp0_ != NULL) {
328
 
                gchar* exec_path = NULL;
329
 
                const gchar* _tmp1_ = NULL;
330
 
                GList* _tmp2_ = NULL;
 
328
                const gchar* _tmp1_;
 
329
                GList* _tmp2_;
331
330
                gchar* _tmp3_ = NULL;
332
 
                gchar* _tmp4_ = NULL;
 
331
                gchar* _tmp4_;
333
332
                gchar* _tmp5_ = NULL;
334
 
                gchar* _tmp6_ = NULL;
335
 
                const gchar* _tmp7_ = NULL;
 
333
                gchar* _tmp6_;
 
334
                gchar* exec_path;
 
335
                const gchar* _tmp7_;
336
336
                gboolean _tmp8_ = FALSE;
337
337
                _tmp1_ = self->try_exec;
338
338
                _tmp2_ = files;
358
358
 
359
359
static inline gboolean fm_file_action_condition_match_show_if_registered (FmFileActionCondition* self, GList* files) {
360
360
        gboolean result = FALSE;
361
 
        const gchar* _tmp0_ = NULL;
 
361
        const gchar* _tmp0_;
362
362
        GError * _inner_error_ = NULL;
363
363
        g_return_val_if_fail (self != NULL, FALSE);
364
364
        _tmp0_ = self->show_if_registered;
365
365
        if (_tmp0_ != NULL) {
366
 
                gchar* service = NULL;
367
 
                const gchar* _tmp1_ = NULL;
368
 
                GList* _tmp2_ = NULL;
 
366
                const gchar* _tmp1_;
 
367
                GList* _tmp2_;
369
368
                gchar* _tmp3_ = NULL;
 
369
                gchar* service;
370
370
                _tmp1_ = self->show_if_registered;
371
371
                _tmp2_ = files;
372
372
                _tmp3_ = fm_file_action_parameters_expand (_tmp1_, _tmp2_, FALSE, NULL);
373
373
                service = _tmp3_;
374
374
                {
375
 
                        GDBusConnection* con = NULL;
376
375
                        GDBusConnection* _tmp4_ = NULL;
377
 
                        GVariant* _result_ = NULL;
378
 
                        GDBusConnection* _tmp5_ = NULL;
379
 
                        const gchar* _tmp6_ = NULL;
380
 
                        GVariant* _tmp7_ = NULL;
381
 
                        GVariant* _tmp8_ = NULL;
382
 
                        GVariantType* _tmp9_ = NULL;
383
 
                        GVariantType* _tmp10_ = NULL;
 
376
                        GDBusConnection* con;
 
377
                        GDBusConnection* _tmp5_;
 
378
                        const gchar* _tmp6_;
 
379
                        GVariant* _tmp7_;
 
380
                        GVariant* _tmp8_;
 
381
                        GVariantType* _tmp9_;
 
382
                        GVariantType* _tmp10_;
384
383
                        GVariant* _tmp11_ = NULL;
385
 
                        GVariant* _tmp12_ = NULL;
 
384
                        GVariant* _tmp12_;
 
385
                        GVariant* _result_;
386
386
                        gboolean name_has_owner = FALSE;
387
 
                        GVariant* _tmp13_ = NULL;
388
 
                        gboolean _tmp14_ = FALSE;
 
387
                        GVariant* _tmp13_;
 
388
                        gboolean _tmp14_;
389
389
                        _tmp4_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_);
390
390
                        con = _tmp4_;
391
391
                        if (_inner_error_ != NULL) {
400
400
                        _tmp5_ = con;
401
401
                        _tmp6_ = service;
402
402
                        _tmp7_ = g_variant_new ("(s)", _tmp6_, NULL);
403
 
                        g_variant_ref_sink (_tmp7_);
404
 
                        _tmp8_ = _tmp7_;
 
403
                        _tmp8_ = g_variant_ref_sink (_tmp7_);
405
404
                        _tmp9_ = g_variant_type_new ("(b)");
406
405
                        _tmp10_ = _tmp9_;
407
406
                        _tmp11_ = g_dbus_connection_call_sync (_tmp5_, "org.freedesktop.DBus", "/org/freedesktop/DBus", "org.freedesktop.DBus", "NameHasOwner", _tmp8_, _tmp10_, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &_inner_error_);
456
455
 
457
456
static inline gboolean fm_file_action_condition_match_show_if_true (FmFileActionCondition* self, GList* files) {
458
457
        gboolean result = FALSE;
459
 
        const gchar* _tmp0_ = NULL;
 
458
        const gchar* _tmp0_;
460
459
        g_return_val_if_fail (self != NULL, FALSE);
461
460
        _tmp0_ = self->show_if_true;
462
461
        if (_tmp0_ != NULL) {
463
 
                gchar* cmd = NULL;
464
 
                const gchar* _tmp1_ = NULL;
465
 
                GList* _tmp2_ = NULL;
 
462
                const gchar* _tmp1_;
 
463
                GList* _tmp2_;
466
464
                gchar* _tmp3_ = NULL;
 
465
                gchar* cmd;
467
466
                gint exit_status = 0;
468
 
                const gchar* _tmp4_ = NULL;
 
467
                const gchar* _tmp4_;
469
468
                gint _tmp5_ = 0;
470
 
                gint _tmp6_ = 0;
 
469
                gint _tmp6_;
471
470
                _tmp1_ = self->show_if_true;
472
471
                _tmp2_ = files;
473
472
                _tmp3_ = fm_file_action_parameters_expand (_tmp1_, _tmp2_, FALSE, NULL);
498
497
 
499
498
static inline gboolean fm_file_action_condition_match_show_if_running (FmFileActionCondition* self, GList* files) {
500
499
        gboolean result = FALSE;
501
 
        const gchar* _tmp0_ = NULL;
 
500
        const gchar* _tmp0_;
502
501
        GError * _inner_error_ = NULL;
503
502
        g_return_val_if_fail (self != NULL, FALSE);
504
503
        _tmp0_ = self->show_if_running;
505
504
        if (_tmp0_ != NULL) {
506
 
                gchar* process_name = NULL;
507
 
                const gchar* _tmp1_ = NULL;
508
 
                GList* _tmp2_ = NULL;
 
505
                const gchar* _tmp1_;
 
506
                GList* _tmp2_;
509
507
                gchar* _tmp3_ = NULL;
510
 
                gchar* pgrep = NULL;
 
508
                gchar* process_name;
511
509
                gchar* _tmp4_ = NULL;
512
 
                gboolean running = FALSE;
513
 
                const gchar* _tmp5_ = NULL;
514
 
                gboolean _tmp17_ = FALSE;
 
510
                gchar* pgrep;
 
511
                gboolean running;
 
512
                const gchar* _tmp5_;
 
513
                gboolean _tmp17_;
515
514
                _tmp1_ = self->show_if_running;
516
515
                _tmp2_ = files;
517
516
                _tmp3_ = fm_file_action_parameters_expand (_tmp1_, _tmp2_, FALSE, NULL);
522
521
                _tmp5_ = pgrep;
523
522
                if (_tmp5_ != NULL) {
524
523
                        gint exit_status = 0;
525
 
                        gboolean _tmp6_ = FALSE;
 
524
                        const gchar* _tmp6_;
526
525
                        const gchar* _tmp7_ = NULL;
527
 
                        const gchar* _tmp8_ = NULL;
 
526
                        const gchar* _tmp8_;
528
527
                        const gchar* _tmp9_ = NULL;
529
 
                        const gchar* _tmp10_ = NULL;
530
 
                        gchar* _tmp11_ = NULL;
531
 
                        gchar* _tmp12_ = NULL;
532
 
                        gint _tmp13_ = 0;
533
 
                        gboolean _tmp14_ = FALSE;
534
 
                        gboolean _tmp15_ = FALSE;
535
 
                        _tmp7_ = pgrep;
536
 
                        _tmp8_ = string_to_string (_tmp7_);
537
 
                        _tmp9_ = process_name;
538
 
                        _tmp10_ = string_to_string (_tmp9_);
539
 
                        _tmp11_ = g_strconcat (_tmp8_, " -x '", _tmp10_, "'", NULL);
540
 
                        _tmp12_ = _tmp11_;
541
 
                        _tmp14_ = g_spawn_command_line_sync (_tmp12_, NULL, NULL, &_tmp13_, &_inner_error_);
542
 
                        exit_status = _tmp13_;
 
528
                        gchar* _tmp10_ = NULL;
 
529
                        gchar* _tmp11_;
 
530
                        gint _tmp12_ = 0;
 
531
                        gboolean _tmp13_ = FALSE;
 
532
                        gboolean _tmp14_;
 
533
                        gboolean _tmp15_;
 
534
                        _tmp6_ = pgrep;
 
535
                        _tmp7_ = string_to_string (_tmp6_);
 
536
                        _tmp8_ = process_name;
 
537
                        _tmp9_ = string_to_string (_tmp8_);
 
538
                        _tmp10_ = g_strconcat (_tmp7_, " -x '", _tmp9_, "'", NULL);
 
539
                        _tmp11_ = _tmp10_;
 
540
                        _tmp13_ = g_spawn_command_line_sync (_tmp11_, NULL, NULL, &_tmp12_, &_inner_error_);
 
541
                        exit_status = _tmp12_;
 
542
                        _tmp14_ = _tmp13_;
 
543
                        _g_free0 (_tmp11_);
543
544
                        _tmp15_ = _tmp14_;
544
 
                        _g_free0 (_tmp12_);
545
 
                        _tmp6_ = _tmp15_;
546
545
                        if (_inner_error_ != NULL) {
547
546
                                _g_free0 (pgrep);
548
547
                                _g_free0 (process_name);
550
549
                                g_clear_error (&_inner_error_);
551
550
                                return FALSE;
552
551
                        }
553
 
                        if (_tmp6_) {
554
 
                                gint _tmp16_ = 0;
 
552
                        if (_tmp15_) {
 
553
                                gint _tmp16_;
555
554
                                _tmp16_ = exit_status;
556
555
                                if (_tmp16_ == 0) {
557
556
                                        running = TRUE;
575
574
 
576
575
static gchar* string_slice (const gchar* self, glong start, glong end) {
577
576
        gchar* result = NULL;
578
 
        glong string_length = 0L;
579
 
        gint _tmp0_ = 0;
580
 
        gint _tmp1_ = 0;
581
 
        glong _tmp2_ = 0L;
582
 
        glong _tmp5_ = 0L;
 
577
        gint _tmp0_;
 
578
        gint _tmp1_;
 
579
        glong string_length;
 
580
        glong _tmp2_;
 
581
        glong _tmp5_;
583
582
        gboolean _tmp8_ = FALSE;
584
 
        glong _tmp9_ = 0L;
585
 
        gboolean _tmp12_ = FALSE;
 
583
        glong _tmp9_;
 
584
        gboolean _tmp12_;
586
585
        gboolean _tmp13_ = FALSE;
587
 
        glong _tmp14_ = 0L;
588
 
        gboolean _tmp17_ = FALSE;
589
 
        glong _tmp18_ = 0L;
590
 
        glong _tmp19_ = 0L;
591
 
        glong _tmp20_ = 0L;
592
 
        glong _tmp21_ = 0L;
593
 
        glong _tmp22_ = 0L;
 
586
        glong _tmp14_;
 
587
        gboolean _tmp17_;
 
588
        glong _tmp18_;
 
589
        glong _tmp19_;
 
590
        glong _tmp20_;
 
591
        glong _tmp21_;
 
592
        glong _tmp22_;
594
593
        gchar* _tmp23_ = NULL;
595
594
        g_return_val_if_fail (self != NULL, NULL);
596
595
        _tmp0_ = strlen (self);
598
597
        string_length = (glong) _tmp1_;
599
598
        _tmp2_ = start;
600
599
        if (_tmp2_ < ((glong) 0)) {
601
 
                glong _tmp3_ = 0L;
602
 
                glong _tmp4_ = 0L;
 
600
                glong _tmp3_;
 
601
                glong _tmp4_;
603
602
                _tmp3_ = string_length;
604
603
                _tmp4_ = start;
605
604
                start = _tmp3_ + _tmp4_;
606
605
        }
607
606
        _tmp5_ = end;
608
607
        if (_tmp5_ < ((glong) 0)) {
609
 
                glong _tmp6_ = 0L;
610
 
                glong _tmp7_ = 0L;
 
608
                glong _tmp6_;
 
609
                glong _tmp7_;
611
610
                _tmp6_ = string_length;
612
611
                _tmp7_ = end;
613
612
                end = _tmp6_ + _tmp7_;
614
613
        }
615
614
        _tmp9_ = start;
616
615
        if (_tmp9_ >= ((glong) 0)) {
617
 
                glong _tmp10_ = 0L;
618
 
                glong _tmp11_ = 0L;
 
616
                glong _tmp10_;
 
617
                glong _tmp11_;
619
618
                _tmp10_ = start;
620
619
                _tmp11_ = string_length;
621
620
                _tmp8_ = _tmp10_ <= _tmp11_;
626
625
        g_return_val_if_fail (_tmp12_, NULL);
627
626
        _tmp14_ = end;
628
627
        if (_tmp14_ >= ((glong) 0)) {
629
 
                glong _tmp15_ = 0L;
630
 
                glong _tmp16_ = 0L;
 
628
                glong _tmp15_;
 
629
                glong _tmp16_;
631
630
                _tmp15_ = end;
632
631
                _tmp16_ = string_length;
633
632
                _tmp13_ = _tmp15_ <= _tmp16_;
651
650
static inline gboolean fm_file_action_condition_match_mime_type (FmFileActionCondition* self, GList* files, const gchar* type, gboolean negated) {
652
651
        gboolean result = FALSE;
653
652
        gboolean _tmp0_ = FALSE;
654
 
        const gchar* _tmp1_ = NULL;
655
 
        gboolean _tmp3_ = FALSE;
 
653
        const gchar* _tmp1_;
 
654
        gboolean _tmp3_;
656
655
        g_return_val_if_fail (self != NULL, FALSE);
657
656
        g_return_val_if_fail (type != NULL, FALSE);
658
657
        _tmp1_ = type;
659
658
        if (g_strcmp0 (_tmp1_, "all/all") == 0) {
660
659
                _tmp0_ = TRUE;
661
660
        } else {
662
 
                const gchar* _tmp2_ = NULL;
 
661
                const gchar* _tmp2_;
663
662
                _tmp2_ = type;
664
663
                _tmp0_ = g_strcmp0 (_tmp2_, "*") == 0;
665
664
        }
666
665
        _tmp3_ = _tmp0_;
667
666
        if (_tmp3_) {
668
667
                gboolean _tmp4_ = FALSE;
669
 
                gboolean _tmp5_ = FALSE;
670
 
                gboolean _tmp6_ = FALSE;
 
668
                gboolean _tmp5_;
 
669
                gboolean _tmp6_;
671
670
                _tmp5_ = negated;
672
671
                if (_tmp5_) {
673
672
                        _tmp4_ = FALSE;
678
677
                result = _tmp6_;
679
678
                return result;
680
679
        } else {
681
 
                const gchar* _tmp7_ = NULL;
 
680
                const gchar* _tmp7_;
682
681
                _tmp7_ = type;
683
682
                if (g_strcmp0 (_tmp7_, "all/allfiles") == 0) {
684
 
                        gboolean _tmp8_ = FALSE;
 
683
                        gboolean _tmp8_;
685
684
                        _tmp8_ = negated;
686
685
                        if (_tmp8_) {
687
 
                                GList* _tmp9_ = NULL;
 
686
                                GList* _tmp9_;
688
687
                                _tmp9_ = files;
689
688
                                {
690
689
                                        GList* fi_collection = NULL;
694
693
                                                FmFileInfo* fi = NULL;
695
694
                                                fi = (FmFileInfo*) fi_it->data;
696
695
                                                {
697
 
                                                        FmFileInfo* _tmp10_ = NULL;
 
696
                                                        FmFileInfo* _tmp10_;
698
697
                                                        gboolean _tmp11_ = FALSE;
699
698
                                                        _tmp10_ = fi;
700
699
                                                        _tmp11_ = fm_file_info_is_dir (_tmp10_);
706
705
                                        }
707
706
                                }
708
707
                        } else {
709
 
                                GList* _tmp12_ = NULL;
 
708
                                GList* _tmp12_;
710
709
                                _tmp12_ = files;
711
710
                                {
712
711
                                        GList* fi_collection = NULL;
716
715
                                                FmFileInfo* fi = NULL;
717
716
                                                fi = (FmFileInfo*) fi_it->data;
718
717
                                                {
719
 
                                                        FmFileInfo* _tmp13_ = NULL;
 
718
                                                        FmFileInfo* _tmp13_;
720
719
                                                        gboolean _tmp14_ = FALSE;
721
720
                                                        _tmp13_ = fi;
722
721
                                                        _tmp14_ = fm_file_info_is_dir (_tmp13_);
729
728
                                }
730
729
                        }
731
730
                } else {
732
 
                        const gchar* _tmp15_ = NULL;
 
731
                        const gchar* _tmp15_;
733
732
                        gboolean _tmp16_ = FALSE;
734
733
                        _tmp15_ = type;
735
734
                        _tmp16_ = g_str_has_suffix (_tmp15_, "/*");
736
735
                        if (_tmp16_) {
737
 
                                gchar* prefix = NULL;
738
 
                                const gchar* _tmp17_ = NULL;
 
736
                                const gchar* _tmp17_;
739
737
                                gchar* _tmp18_ = NULL;
740
 
                                gboolean _tmp19_ = FALSE;
 
738
                                gchar* prefix;
 
739
                                gboolean _tmp19_;
741
740
                                _tmp17_ = type;
742
741
                                _tmp18_ = string_slice (_tmp17_, (glong) 0, (glong) (-1));
743
742
                                prefix = _tmp18_;
744
743
                                _tmp19_ = negated;
745
744
                                if (_tmp19_) {
746
 
                                        GList* _tmp20_ = NULL;
 
745
                                        GList* _tmp20_;
747
746
                                        _tmp20_ = files;
748
747
                                        {
749
748
                                                GList* fi_collection = NULL;
753
752
                                                        FmFileInfo* fi = NULL;
754
753
                                                        fi = (FmFileInfo*) fi_it->data;
755
754
                                                        {
756
 
                                                                FmFileInfo* _tmp21_ = NULL;
 
755
                                                                FmFileInfo* _tmp21_;
757
756
                                                                FmMimeType* _tmp22_ = NULL;
758
757
                                                                const gchar* _tmp23_ = NULL;
759
 
                                                                const gchar* _tmp24_ = NULL;
 
758
                                                                const gchar* _tmp24_;
760
759
                                                                gboolean _tmp25_ = FALSE;
761
760
                                                                _tmp21_ = fi;
762
761
                                                                _tmp22_ = fm_file_info_get_mime_type (_tmp21_);
772
771
                                                }
773
772
                                        }
774
773
                                } else {
775
 
                                        GList* _tmp26_ = NULL;
 
774
                                        GList* _tmp26_;
776
775
                                        _tmp26_ = files;
777
776
                                        {
778
777
                                                GList* fi_collection = NULL;
782
781
                                                        FmFileInfo* fi = NULL;
783
782
                                                        fi = (FmFileInfo*) fi_it->data;
784
783
                                                        {
785
 
                                                                FmFileInfo* _tmp27_ = NULL;
 
784
                                                                FmFileInfo* _tmp27_;
786
785
                                                                FmMimeType* _tmp28_ = NULL;
787
786
                                                                const gchar* _tmp29_ = NULL;
788
 
                                                                const gchar* _tmp30_ = NULL;
 
787
                                                                const gchar* _tmp30_;
789
788
                                                                gboolean _tmp31_ = FALSE;
790
789
                                                                _tmp27_ = fi;
791
790
                                                                _tmp28_ = fm_file_info_get_mime_type (_tmp27_);
803
802
                                }
804
803
                                _g_free0 (prefix);
805
804
                        } else {
806
 
                                gboolean _tmp32_ = FALSE;
 
805
                                gboolean _tmp32_;
807
806
                                _tmp32_ = negated;
808
807
                                if (_tmp32_) {
809
 
                                        GList* _tmp33_ = NULL;
 
808
                                        GList* _tmp33_;
810
809
                                        _tmp33_ = files;
811
810
                                        {
812
811
                                                GList* fi_collection = NULL;
816
815
                                                        FmFileInfo* fi = NULL;
817
816
                                                        fi = (FmFileInfo*) fi_it->data;
818
817
                                                        {
819
 
                                                                FmFileInfo* _tmp34_ = NULL;
 
818
                                                                FmFileInfo* _tmp34_;
820
819
                                                                FmMimeType* _tmp35_ = NULL;
821
820
                                                                const gchar* _tmp36_ = NULL;
822
 
                                                                const gchar* _tmp37_ = NULL;
 
821
                                                                const gchar* _tmp37_;
823
822
                                                                _tmp34_ = fi;
824
823
                                                                _tmp35_ = fm_file_info_get_mime_type (_tmp34_);
825
824
                                                                _tmp36_ = fm_mime_type_get_type (_tmp35_);
832
831
                                                }
833
832
                                        }
834
833
                                } else {
835
 
                                        GList* _tmp38_ = NULL;
 
834
                                        GList* _tmp38_;
836
835
                                        _tmp38_ = files;
837
836
                                        {
838
837
                                                GList* fi_collection = NULL;
842
841
                                                        FmFileInfo* fi = NULL;
843
842
                                                        fi = (FmFileInfo*) fi_it->data;
844
843
                                                        {
845
 
                                                                FmFileInfo* _tmp39_ = NULL;
 
844
                                                                FmFileInfo* _tmp39_;
846
845
                                                                FmMimeType* _tmp40_ = NULL;
847
846
                                                                const gchar* _tmp41_ = NULL;
848
 
                                                                const gchar* _tmp42_ = NULL;
 
847
                                                                const gchar* _tmp42_;
849
848
                                                                _tmp39_ = fi;
850
849
                                                                _tmp40_ = fm_file_info_get_mime_type (_tmp39_);
851
850
                                                                _tmp41_ = fm_mime_type_get_type (_tmp40_);
868
867
 
869
868
static inline gboolean fm_file_action_condition_match_mime_types (FmFileActionCondition* self, GList* files) {
870
869
        gboolean result = FALSE;
871
 
        gchar** _tmp0_ = NULL;
872
 
        gint _tmp0__length1 = 0;
 
870
        gchar** _tmp0_;
 
871
        gint _tmp0__length1;
873
872
        g_return_val_if_fail (self != NULL, FALSE);
874
873
        _tmp0_ = self->mime_types;
875
874
        _tmp0__length1 = self->mime_types_length1;
876
875
        if (_tmp0_ != NULL) {
877
 
                gboolean allowed = FALSE;
878
 
                gchar** _tmp1_ = NULL;
879
 
                gint _tmp1__length1 = 0;
 
876
                gboolean allowed;
 
877
                gchar** _tmp1_;
 
878
                gint _tmp1__length1;
880
879
                allowed = FALSE;
881
880
                _tmp1_ = self->mime_types;
882
881
                _tmp1__length1 = self->mime_types_length1;
893
892
                                {
894
893
                                        const gchar* type = NULL;
895
894
                                        gboolean negated = FALSE;
896
 
                                        const gchar* _tmp2_ = NULL;
 
895
                                        const gchar* _tmp2_;
897
896
                                        gchar _tmp3_ = '\0';
898
 
                                        gboolean _tmp6_ = FALSE;
 
897
                                        gboolean _tmp6_;
899
898
                                        _tmp2_ = allowed_type;
900
899
                                        _tmp3_ = string_get (_tmp2_, (glong) 0);
901
900
                                        if (_tmp3_ == '!') {
902
 
                                                const gchar* _tmp4_ = NULL;
 
901
                                                const gchar* _tmp4_;
903
902
                                                _tmp4_ = allowed_type;
904
903
                                                type = (const gchar*) (((guint8*) _tmp4_) + 1);
905
904
                                                negated = TRUE;
906
905
                                        } else {
907
 
                                                const gchar* _tmp5_ = NULL;
 
906
                                                const gchar* _tmp5_;
908
907
                                                _tmp5_ = allowed_type;
909
908
                                                type = _tmp5_;
910
909
                                                negated = FALSE;
911
910
                                        }
912
911
                                        _tmp6_ = negated;
913
912
                                        if (_tmp6_) {
914
 
                                                gboolean type_is_allowed = FALSE;
915
 
                                                GList* _tmp7_ = NULL;
916
 
                                                const gchar* _tmp8_ = NULL;
917
 
                                                gboolean _tmp9_ = FALSE;
 
913
                                                GList* _tmp7_;
 
914
                                                const gchar* _tmp8_;
 
915
                                                gboolean _tmp9_;
918
916
                                                gboolean _tmp10_ = FALSE;
919
 
                                                gboolean _tmp11_ = FALSE;
 
917
                                                gboolean type_is_allowed;
 
918
                                                gboolean _tmp11_;
920
919
                                                _tmp7_ = files;
921
920
                                                _tmp8_ = type;
922
921
                                                _tmp9_ = negated;
928
927
                                                        return result;
929
928
                                                }
930
929
                                        } else {
931
 
                                                gboolean _tmp12_ = FALSE;
 
930
                                                gboolean _tmp12_;
932
931
                                                _tmp12_ = allowed;
933
932
                                                if (!_tmp12_) {
934
 
                                                        GList* _tmp13_ = NULL;
935
 
                                                        const gchar* _tmp14_ = NULL;
 
933
                                                        GList* _tmp13_;
 
934
                                                        const gchar* _tmp14_;
936
935
                                                        gboolean _tmp15_ = FALSE;
937
936
                                                        _tmp13_ = files;
938
937
                                                        _tmp14_ = type;
954
953
static inline gboolean fm_file_action_condition_match_base_name (FmFileActionCondition* self, GList* files, const gchar* base_name, gboolean negated) {
955
954
        gboolean result = FALSE;
956
955
        GPatternSpec* pattern = NULL;
957
 
        gboolean _tmp0_ = FALSE;
958
 
        GList* _tmp7_ = NULL;
 
956
        gboolean _tmp0_;
 
957
        GList* _tmp7_;
959
958
        g_return_val_if_fail (self != NULL, FALSE);
960
959
        g_return_val_if_fail (base_name != NULL, FALSE);
961
960
        _tmp0_ = self->match_case;
962
961
        if (_tmp0_) {
963
 
                const gchar* _tmp1_ = NULL;
964
 
                GPatternSpec* _tmp2_ = NULL;
 
962
                const gchar* _tmp1_;
 
963
                GPatternSpec* _tmp2_;
965
964
                _tmp1_ = base_name;
966
965
                _tmp2_ = g_pattern_spec_new (_tmp1_);
967
966
                _g_pattern_spec_free0 (pattern);
968
967
                pattern = _tmp2_;
969
968
        } else {
970
 
                const gchar* _tmp3_ = NULL;
 
969
                const gchar* _tmp3_;
971
970
                gchar* _tmp4_ = NULL;
972
 
                gchar* _tmp5_ = NULL;
973
 
                GPatternSpec* _tmp6_ = NULL;
 
971
                gchar* _tmp5_;
 
972
                GPatternSpec* _tmp6_;
974
973
                _tmp3_ = base_name;
975
974
                _tmp4_ = g_utf8_casefold (_tmp3_, (gssize) (-1));
976
975
                _tmp5_ = _tmp4_;
988
987
                        FmFileInfo* fi = NULL;
989
988
                        fi = (FmFileInfo*) fi_it->data;
990
989
                        {
991
 
                                gchar* name = NULL;
992
 
                                FmFileInfo* _tmp8_ = NULL;
 
990
                                FmFileInfo* _tmp8_;
993
991
                                const gchar* _tmp9_ = NULL;
994
 
                                gchar* _tmp10_ = NULL;
995
 
                                gboolean _tmp11_ = FALSE;
 
992
                                gchar* _tmp10_;
 
993
                                gchar* name;
 
994
                                gboolean _tmp11_;
996
995
                                _tmp8_ = fi;
997
996
                                _tmp9_ = fm_file_info_get_name (_tmp8_);
998
997
                                _tmp10_ = g_strdup (_tmp9_);
999
998
                                name = _tmp10_;
1000
999
                                _tmp11_ = self->match_case;
1001
1000
                                if (_tmp11_) {
1002
 
                                        GPatternSpec* _tmp12_ = NULL;
1003
 
                                        const gchar* _tmp13_ = NULL;
 
1001
                                        GPatternSpec* _tmp12_;
 
1002
                                        const gchar* _tmp13_;
1004
1003
                                        gboolean _tmp14_ = FALSE;
1005
1004
                                        _tmp12_ = pattern;
1006
1005
                                        _tmp13_ = name;
1007
1006
                                        _tmp14_ = g_pattern_match_string (_tmp12_, _tmp13_);
1008
1007
                                        if (_tmp14_) {
1009
 
                                                gboolean _tmp15_ = FALSE;
 
1008
                                                gboolean _tmp15_;
1010
1009
                                                _tmp15_ = negated;
1011
1010
                                                if (_tmp15_) {
1012
1011
                                                        result = FALSE;
1015
1014
                                                        return result;
1016
1015
                                                }
1017
1016
                                        } else {
1018
 
                                                gboolean _tmp16_ = FALSE;
 
1017
                                                gboolean _tmp16_;
1019
1018
                                                _tmp16_ = negated;
1020
1019
                                                if (!_tmp16_) {
1021
1020
                                                        result = FALSE;
1025
1024
                                                }
1026
1025
                                        }
1027
1026
                                } else {
1028
 
                                        GPatternSpec* _tmp17_ = NULL;
1029
 
                                        const gchar* _tmp18_ = NULL;
 
1027
                                        GPatternSpec* _tmp17_;
 
1028
                                        const gchar* _tmp18_;
1030
1029
                                        gchar* _tmp19_ = NULL;
1031
 
                                        gchar* _tmp20_ = NULL;
 
1030
                                        gchar* _tmp20_;
1032
1031
                                        gboolean _tmp21_ = FALSE;
1033
 
                                        gboolean _tmp22_ = FALSE;
 
1032
                                        gboolean _tmp22_;
1034
1033
                                        _tmp17_ = pattern;
1035
1034
                                        _tmp18_ = name;
1036
1035
                                        _tmp19_ = g_utf8_casefold (_tmp18_, (gssize) (-1));
1039
1038
                                        _tmp22_ = _tmp21_;
1040
1039
                                        _g_free0 (_tmp20_);
1041
1040
                                        if (_tmp22_) {
1042
 
                                                gboolean _tmp23_ = FALSE;
 
1041
                                                gboolean _tmp23_;
1043
1042
                                                _tmp23_ = negated;
1044
1043
                                                if (_tmp23_) {
1045
1044
                                                        result = FALSE;
1048
1047
                                                        return result;
1049
1048
                                                }
1050
1049
                                        } else {
1051
 
                                                gboolean _tmp24_ = FALSE;
 
1050
                                                gboolean _tmp24_;
1052
1051
                                                _tmp24_ = negated;
1053
1052
                                                if (!_tmp24_) {
1054
1053
                                                        result = FALSE;
1070
1069
 
1071
1070
static inline gboolean fm_file_action_condition_match_base_names (FmFileActionCondition* self, GList* files) {
1072
1071
        gboolean result = FALSE;
1073
 
        gchar** _tmp0_ = NULL;
1074
 
        gint _tmp0__length1 = 0;
 
1072
        gchar** _tmp0_;
 
1073
        gint _tmp0__length1;
1075
1074
        g_return_val_if_fail (self != NULL, FALSE);
1076
1075
        _tmp0_ = self->base_names;
1077
1076
        _tmp0__length1 = self->base_names_length1;
1078
1077
        if (_tmp0_ != NULL) {
1079
 
                gboolean allowed = FALSE;
1080
 
                gchar** _tmp1_ = NULL;
1081
 
                gint _tmp1__length1 = 0;
 
1078
                gboolean allowed;
 
1079
                gchar** _tmp1_;
 
1080
                gint _tmp1__length1;
1082
1081
                allowed = FALSE;
1083
1082
                _tmp1_ = self->base_names;
1084
1083
                _tmp1__length1 = self->base_names_length1;
1095
1094
                                {
1096
1095
                                        const gchar* name = NULL;
1097
1096
                                        gboolean negated = FALSE;
1098
 
                                        const gchar* _tmp2_ = NULL;
 
1097
                                        const gchar* _tmp2_;
1099
1098
                                        gchar _tmp3_ = '\0';
1100
 
                                        gboolean _tmp6_ = FALSE;
 
1099
                                        gboolean _tmp6_;
1101
1100
                                        _tmp2_ = allowed_name;
1102
1101
                                        _tmp3_ = string_get (_tmp2_, (glong) 0);
1103
1102
                                        if (_tmp3_ == '!') {
1104
 
                                                const gchar* _tmp4_ = NULL;
 
1103
                                                const gchar* _tmp4_;
1105
1104
                                                _tmp4_ = allowed_name;
1106
1105
                                                name = (const gchar*) (((guint8*) _tmp4_) + 1);
1107
1106
                                                negated = TRUE;
1108
1107
                                        } else {
1109
 
                                                const gchar* _tmp5_ = NULL;
 
1108
                                                const gchar* _tmp5_;
1110
1109
                                                _tmp5_ = allowed_name;
1111
1110
                                                name = _tmp5_;
1112
1111
                                                negated = FALSE;
1113
1112
                                        }
1114
1113
                                        _tmp6_ = negated;
1115
1114
                                        if (_tmp6_) {
1116
 
                                                gboolean name_is_allowed = FALSE;
1117
 
                                                GList* _tmp7_ = NULL;
1118
 
                                                const gchar* _tmp8_ = NULL;
1119
 
                                                gboolean _tmp9_ = FALSE;
 
1115
                                                GList* _tmp7_;
 
1116
                                                const gchar* _tmp8_;
 
1117
                                                gboolean _tmp9_;
1120
1118
                                                gboolean _tmp10_ = FALSE;
1121
 
                                                gboolean _tmp11_ = FALSE;
 
1119
                                                gboolean name_is_allowed;
 
1120
                                                gboolean _tmp11_;
1122
1121
                                                _tmp7_ = files;
1123
1122
                                                _tmp8_ = name;
1124
1123
                                                _tmp9_ = negated;
1130
1129
                                                        return result;
1131
1130
                                                }
1132
1131
                                        } else {
1133
 
                                                gboolean _tmp12_ = FALSE;
 
1132
                                                gboolean _tmp12_;
1134
1133
                                                _tmp12_ = allowed;
1135
1134
                                                if (!_tmp12_) {
1136
 
                                                        GList* _tmp13_ = NULL;
1137
 
                                                        const gchar* _tmp14_ = NULL;
 
1135
                                                        GList* _tmp13_;
 
1136
                                                        const gchar* _tmp14_;
1138
1137
                                                        gboolean _tmp15_ = FALSE;
1139
1138
                                                        _tmp13_ = files;
1140
1139
                                                        _tmp14_ = name;
1155
1154
 
1156
1155
static gboolean fm_file_action_condition_match_scheme (GList* files, const gchar* scheme, gboolean negated) {
1157
1156
        gboolean result = FALSE;
1158
 
        GList* _tmp0_ = NULL;
 
1157
        GList* _tmp0_;
1159
1158
        g_return_val_if_fail (scheme != NULL, FALSE);
1160
1159
        _tmp0_ = files;
1161
1160
        {
1166
1165
                        FmFileInfo* fi = NULL;
1167
1166
                        fi = (FmFileInfo*) fi_it->data;
1168
1167
                        {
1169
 
                                gchar* uri = NULL;
1170
 
                                FmFileInfo* _tmp1_ = NULL;
 
1168
                                FmFileInfo* _tmp1_;
1171
1169
                                FmPath* _tmp2_ = NULL;
1172
1170
                                gchar* _tmp3_ = NULL;
1173
 
                                const gchar* _tmp4_ = NULL;
 
1171
                                gchar* uri;
 
1172
                                const gchar* _tmp4_;
1174
1173
                                gchar* _tmp5_ = NULL;
1175
 
                                gchar* _tmp6_ = NULL;
1176
 
                                const gchar* _tmp7_ = NULL;
1177
 
                                gboolean _tmp8_ = FALSE;
 
1174
                                gchar* _tmp6_;
 
1175
                                const gchar* _tmp7_;
 
1176
                                gboolean _tmp8_;
1178
1177
                                _tmp1_ = fi;
1179
1178
                                _tmp2_ = fm_file_info_get_path (_tmp1_);
1180
1179
                                _tmp3_ = fm_path_to_uri (_tmp2_);
1186
1185
                                _tmp8_ = g_strcmp0 (_tmp6_, _tmp7_) == 0;
1187
1186
                                _g_free0 (_tmp6_);
1188
1187
                                if (_tmp8_) {
1189
 
                                        gboolean _tmp9_ = FALSE;
 
1188
                                        gboolean _tmp9_;
1190
1189
                                        _tmp9_ = negated;
1191
1190
                                        if (_tmp9_) {
1192
1191
                                                result = FALSE;
1194
1193
                                                return result;
1195
1194
                                        }
1196
1195
                                } else {
1197
 
                                        gboolean _tmp10_ = FALSE;
 
1196
                                        gboolean _tmp10_;
1198
1197
                                        _tmp10_ = negated;
1199
1198
                                        if (!_tmp10_) {
1200
1199
                                                result = FALSE;
1213
1212
 
1214
1213
static inline gboolean fm_file_action_condition_match_schemes (FmFileActionCondition* self, GList* files) {
1215
1214
        gboolean result = FALSE;
1216
 
        gchar** _tmp0_ = NULL;
1217
 
        gint _tmp0__length1 = 0;
 
1215
        gchar** _tmp0_;
 
1216
        gint _tmp0__length1;
1218
1217
        g_return_val_if_fail (self != NULL, FALSE);
1219
1218
        _tmp0_ = self->schemes;
1220
1219
        _tmp0__length1 = self->schemes_length1;
1221
1220
        if (_tmp0_ != NULL) {
1222
 
                gboolean allowed = FALSE;
1223
 
                gchar** _tmp1_ = NULL;
1224
 
                gint _tmp1__length1 = 0;
 
1221
                gboolean allowed;
 
1222
                gchar** _tmp1_;
 
1223
                gint _tmp1__length1;
1225
1224
                allowed = FALSE;
1226
1225
                _tmp1_ = self->schemes;
1227
1226
                _tmp1__length1 = self->schemes_length1;
1238
1237
                                {
1239
1238
                                        const gchar* scheme = NULL;
1240
1239
                                        gboolean negated = FALSE;
1241
 
                                        const gchar* _tmp2_ = NULL;
 
1240
                                        const gchar* _tmp2_;
1242
1241
                                        gchar _tmp3_ = '\0';
1243
 
                                        gboolean _tmp6_ = FALSE;
 
1242
                                        gboolean _tmp6_;
1244
1243
                                        _tmp2_ = allowed_scheme;
1245
1244
                                        _tmp3_ = string_get (_tmp2_, (glong) 0);
1246
1245
                                        if (_tmp3_ == '!') {
1247
 
                                                const gchar* _tmp4_ = NULL;
 
1246
                                                const gchar* _tmp4_;
1248
1247
                                                _tmp4_ = allowed_scheme;
1249
1248
                                                scheme = (const gchar*) (((guint8*) _tmp4_) + 1);
1250
1249
                                                negated = TRUE;
1251
1250
                                        } else {
1252
 
                                                const gchar* _tmp5_ = NULL;
 
1251
                                                const gchar* _tmp5_;
1253
1252
                                                _tmp5_ = allowed_scheme;
1254
1253
                                                scheme = _tmp5_;
1255
1254
                                                negated = FALSE;
1256
1255
                                        }
1257
1256
                                        _tmp6_ = negated;
1258
1257
                                        if (_tmp6_) {
1259
 
                                                gboolean scheme_is_allowed = FALSE;
1260
 
                                                GList* _tmp7_ = NULL;
1261
 
                                                const gchar* _tmp8_ = NULL;
1262
 
                                                gboolean _tmp9_ = FALSE;
 
1258
                                                GList* _tmp7_;
 
1259
                                                const gchar* _tmp8_;
 
1260
                                                gboolean _tmp9_;
1263
1261
                                                gboolean _tmp10_ = FALSE;
1264
 
                                                gboolean _tmp11_ = FALSE;
 
1262
                                                gboolean scheme_is_allowed;
 
1263
                                                gboolean _tmp11_;
1265
1264
                                                _tmp7_ = files;
1266
1265
                                                _tmp8_ = scheme;
1267
1266
                                                _tmp9_ = negated;
1273
1272
                                                        return result;
1274
1273
                                                }
1275
1274
                                        } else {
1276
 
                                                gboolean _tmp12_ = FALSE;
 
1275
                                                gboolean _tmp12_;
1277
1276
                                                _tmp12_ = allowed;
1278
1277
                                                if (!_tmp12_) {
1279
 
                                                        GList* _tmp13_ = NULL;
1280
 
                                                        const gchar* _tmp14_ = NULL;
 
1278
                                                        GList* _tmp13_;
 
1279
                                                        const gchar* _tmp14_;
1281
1280
                                                        gboolean _tmp15_ = FALSE;
1282
1281
                                                        _tmp13_ = files;
1283
1282
                                                        _tmp14_ = scheme;
1299
1298
static gboolean fm_file_action_condition_match_folder (GList* files, const gchar* folder, gboolean negated) {
1300
1299
        gboolean result = FALSE;
1301
1300
        GPatternSpec* pattern = NULL;
1302
 
        const gchar* _tmp0_ = NULL;
 
1301
        const gchar* _tmp0_;
1303
1302
        gboolean _tmp1_ = FALSE;
1304
 
        GList* _tmp9_ = NULL;
 
1303
        GList* _tmp9_;
1305
1304
        g_return_val_if_fail (folder != NULL, FALSE);
1306
1305
        _tmp0_ = folder;
1307
1306
        _tmp1_ = g_str_has_suffix (_tmp0_, "/*");
1308
1307
        if (_tmp1_) {
1309
 
                const gchar* _tmp2_ = NULL;
1310
 
                GPatternSpec* _tmp3_ = NULL;
 
1308
                const gchar* _tmp2_;
 
1309
                GPatternSpec* _tmp3_;
1311
1310
                _tmp2_ = folder;
1312
1311
                _tmp3_ = g_pattern_spec_new (_tmp2_);
1313
1312
                _g_pattern_spec_free0 (pattern);
1314
1313
                pattern = _tmp3_;
1315
1314
        } else {
1316
 
                const gchar* _tmp4_ = NULL;
 
1315
                const gchar* _tmp4_;
1317
1316
                const gchar* _tmp5_ = NULL;
1318
1317
                gchar* _tmp6_ = NULL;
1319
 
                gchar* _tmp7_ = NULL;
1320
 
                GPatternSpec* _tmp8_ = NULL;
 
1318
                gchar* _tmp7_;
 
1319
                GPatternSpec* _tmp8_;
1321
1320
                _tmp4_ = folder;
1322
1321
                _tmp5_ = string_to_string (_tmp4_);
1323
1322
                _tmp6_ = g_strconcat (_tmp5_, "/*", NULL);
1336
1335
                        FmFileInfo* fi = NULL;
1337
1336
                        fi = (FmFileInfo*) fi_it->data;
1338
1337
                        {
1339
 
                                gchar* dirname = NULL;
1340
 
                                FmFileInfo* _tmp10_ = NULL;
 
1338
                                FmFileInfo* _tmp10_;
1341
1339
                                FmPath* _tmp11_ = NULL;
1342
1340
                                FmPath* _tmp12_ = NULL;
1343
1341
                                gchar* _tmp13_ = NULL;
1344
 
                                GPatternSpec* _tmp14_ = NULL;
1345
 
                                const gchar* _tmp15_ = NULL;
 
1342
                                gchar* dirname;
 
1343
                                GPatternSpec* _tmp14_;
 
1344
                                const gchar* _tmp15_;
1346
1345
                                gboolean _tmp16_ = FALSE;
1347
1346
                                _tmp10_ = fi;
1348
1347
                                _tmp11_ = fm_file_info_get_path (_tmp10_);
1353
1352
                                _tmp15_ = dirname;
1354
1353
                                _tmp16_ = g_pattern_match_string (_tmp14_, _tmp15_);
1355
1354
                                if (_tmp16_) {
1356
 
                                        gboolean _tmp17_ = FALSE;
 
1355
                                        gboolean _tmp17_;
1357
1356
                                        _tmp17_ = negated;
1358
1357
                                        if (_tmp17_) {
1359
1358
                                                result = FALSE;
1362
1361
                                                return result;
1363
1362
                                        }
1364
1363
                                } else {
1365
 
                                        gboolean _tmp18_ = FALSE;
 
1364
                                        gboolean _tmp18_;
1366
1365
                                        _tmp18_ = negated;
1367
1366
                                        if (!_tmp18_) {
1368
1367
                                                result = FALSE;
1383
1382
 
1384
1383
static inline gboolean fm_file_action_condition_match_folders (FmFileActionCondition* self, GList* files) {
1385
1384
        gboolean result = FALSE;
1386
 
        gchar** _tmp0_ = NULL;
1387
 
        gint _tmp0__length1 = 0;
 
1385
        gchar** _tmp0_;
 
1386
        gint _tmp0__length1;
1388
1387
        g_return_val_if_fail (self != NULL, FALSE);
1389
1388
        _tmp0_ = self->folders;
1390
1389
        _tmp0__length1 = self->folders_length1;
1391
1390
        if (_tmp0_ != NULL) {
1392
 
                gboolean allowed = FALSE;
1393
 
                gchar** _tmp1_ = NULL;
1394
 
                gint _tmp1__length1 = 0;
 
1391
                gboolean allowed;
 
1392
                gchar** _tmp1_;
 
1393
                gint _tmp1__length1;
1395
1394
                allowed = FALSE;
1396
1395
                _tmp1_ = self->folders;
1397
1396
                _tmp1__length1 = self->folders_length1;
1408
1407
                                {
1409
1408
                                        const gchar* folder = NULL;
1410
1409
                                        gboolean negated = FALSE;
1411
 
                                        const gchar* _tmp2_ = NULL;
 
1410
                                        const gchar* _tmp2_;
1412
1411
                                        gchar _tmp3_ = '\0';
1413
 
                                        gboolean _tmp6_ = FALSE;
 
1412
                                        gboolean _tmp6_;
1414
1413
                                        _tmp2_ = allowed_folder;
1415
1414
                                        _tmp3_ = string_get (_tmp2_, (glong) 0);
1416
1415
                                        if (_tmp3_ == '!') {
1417
 
                                                const gchar* _tmp4_ = NULL;
 
1416
                                                const gchar* _tmp4_;
1418
1417
                                                _tmp4_ = allowed_folder;
1419
1418
                                                folder = (const gchar*) (((guint8*) _tmp4_) + 1);
1420
1419
                                                negated = TRUE;
1421
1420
                                        } else {
1422
 
                                                const gchar* _tmp5_ = NULL;
 
1421
                                                const gchar* _tmp5_;
1423
1422
                                                _tmp5_ = allowed_folder;
1424
1423
                                                folder = _tmp5_;
1425
1424
                                                negated = FALSE;
1426
1425
                                        }
1427
1426
                                        _tmp6_ = negated;
1428
1427
                                        if (_tmp6_) {
1429
 
                                                gboolean folder_is_allowed = FALSE;
1430
 
                                                GList* _tmp7_ = NULL;
1431
 
                                                const gchar* _tmp8_ = NULL;
1432
 
                                                gboolean _tmp9_ = FALSE;
 
1428
                                                GList* _tmp7_;
 
1429
                                                const gchar* _tmp8_;
 
1430
                                                gboolean _tmp9_;
1433
1431
                                                gboolean _tmp10_ = FALSE;
1434
 
                                                gboolean _tmp11_ = FALSE;
 
1432
                                                gboolean folder_is_allowed;
 
1433
                                                gboolean _tmp11_;
1435
1434
                                                _tmp7_ = files;
1436
1435
                                                _tmp8_ = folder;
1437
1436
                                                _tmp9_ = negated;
1443
1442
                                                        return result;
1444
1443
                                                }
1445
1444
                                        } else {
1446
 
                                                gboolean _tmp12_ = FALSE;
 
1445
                                                gboolean _tmp12_;
1447
1446
                                                _tmp12_ = allowed;
1448
1447
                                                if (!_tmp12_) {
1449
 
                                                        GList* _tmp13_ = NULL;
1450
 
                                                        const gchar* _tmp14_ = NULL;
 
1448
                                                        GList* _tmp13_;
 
1449
                                                        const gchar* _tmp14_;
1451
1450
                                                        gboolean _tmp15_ = FALSE;
1452
1451
                                                        _tmp13_ = files;
1453
1452
                                                        _tmp14_ = folder;
1468
1467
 
1469
1468
static inline gboolean fm_file_action_condition_match_selection_count (FmFileActionCondition* self, GList* files) {
1470
1469
        gboolean result = FALSE;
1471
 
        guint n_files = 0U;
1472
 
        GList* _tmp0_ = NULL;
 
1470
        GList* _tmp0_;
1473
1471
        guint _tmp1_ = 0U;
1474
 
        gchar _tmp2_ = '\0';
 
1472
        guint n_files;
 
1473
        gchar _tmp2_;
1475
1474
        g_return_val_if_fail (self != NULL, FALSE);
1476
1475
        _tmp0_ = files;
1477
1476
        _tmp1_ = g_list_length (_tmp0_);
1480
1479
        switch (_tmp2_) {
1481
1480
                case '<':
1482
1481
                {
1483
 
                        guint _tmp3_ = 0U;
1484
 
                        gint _tmp4_ = 0;
 
1482
                        guint _tmp3_;
 
1483
                        gint _tmp4_;
1485
1484
                        _tmp3_ = n_files;
1486
1485
                        _tmp4_ = self->selection_count;
1487
1486
                        if (_tmp3_ >= ((guint) _tmp4_)) {
1492
1491
                }
1493
1492
                case '=':
1494
1493
                {
1495
 
                        guint _tmp5_ = 0U;
1496
 
                        gint _tmp6_ = 0;
 
1494
                        guint _tmp5_;
 
1495
                        gint _tmp6_;
1497
1496
                        _tmp5_ = n_files;
1498
1497
                        _tmp6_ = self->selection_count;
1499
1498
                        if (_tmp5_ != ((guint) _tmp6_)) {
1504
1503
                }
1505
1504
                case '>':
1506
1505
                {
1507
 
                        guint _tmp7_ = 0U;
1508
 
                        gint _tmp8_ = 0;
 
1506
                        guint _tmp7_;
 
1507
                        gint _tmp8_;
1509
1508
                        _tmp7_ = n_files;
1510
1509
                        _tmp8_ = self->selection_count;
1511
1510
                        if (_tmp7_ <= ((guint) _tmp8_)) {
1532
1531
 
1533
1532
gboolean fm_file_action_condition_match (FmFileActionCondition* self, GList* files) {
1534
1533
        gboolean result = FALSE;
1535
 
        GList* _tmp0_ = NULL;
 
1534
        GList* _tmp0_;
1536
1535
        gboolean _tmp1_ = FALSE;
1537
 
        GList* _tmp2_ = NULL;
 
1536
        GList* _tmp2_;
1538
1537
        gboolean _tmp3_ = FALSE;
1539
 
        GList* _tmp4_ = NULL;
 
1538
        GList* _tmp4_;
1540
1539
        gboolean _tmp5_ = FALSE;
1541
 
        GList* _tmp6_ = NULL;
 
1540
        GList* _tmp6_;
1542
1541
        gboolean _tmp7_ = FALSE;
1543
 
        GList* _tmp8_ = NULL;
 
1542
        GList* _tmp8_;
1544
1543
        gboolean _tmp9_ = FALSE;
1545
 
        GList* _tmp10_ = NULL;
 
1544
        GList* _tmp10_;
1546
1545
        gboolean _tmp11_ = FALSE;
1547
 
        GList* _tmp12_ = NULL;
 
1546
        GList* _tmp12_;
1548
1547
        gboolean _tmp13_ = FALSE;
1549
 
        GList* _tmp14_ = NULL;
 
1548
        GList* _tmp14_;
1550
1549
        gboolean _tmp15_ = FALSE;
1551
 
        GList* _tmp16_ = NULL;
 
1550
        GList* _tmp16_;
1552
1551
        gboolean _tmp17_ = FALSE;
1553
 
        GList* _tmp18_ = NULL;
 
1552
        GList* _tmp18_;
1554
1553
        gboolean _tmp19_ = FALSE;
1555
1554
        g_return_val_if_fail (self != NULL, FALSE);
1556
1555
        _tmp0_ = files;