Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* query-row.c generated by valac 0.40.0, the Vala compiler
- * generated from query-row.vala, do not modify */
- /* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
- /*
- * query-row.vala
- *
- * filefinder is free software: you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * filefinder is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- * See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- #include <glib.h>
- #include <glib-object.h>
- #include <gtk/gtk.h>
- #include <stdlib.h>
- #include <string.h>
- #include <gdk/gdk.h>
- #include <float.h>
- #include <math.h>
- #define TYPE_QUERY_ROW (query_row_get_type ())
- #define QUERY_ROW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_QUERY_ROW, QueryRow))
- #define QUERY_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_QUERY_ROW, QueryRowClass))
- #define IS_QUERY_ROW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_QUERY_ROW))
- #define IS_QUERY_ROW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_QUERY_ROW))
- #define QUERY_ROW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_QUERY_ROW, QueryRowClass))
- typedef struct _QueryRow QueryRow;
- typedef struct _QueryRowClass QueryRowClass;
- typedef struct _QueryRowPrivate QueryRowPrivate;
- #define TYPE_FILTER_LOCATION (filter_location_get_type ())
- #define FILTER_LOCATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILTER_LOCATION, FilterLocation))
- #define FILTER_LOCATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILTER_LOCATION, FilterLocationClass))
- #define IS_FILTER_LOCATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILTER_LOCATION))
- #define IS_FILTER_LOCATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILTER_LOCATION))
- #define FILTER_LOCATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILTER_LOCATION, FilterLocationClass))
- typedef struct _FilterLocation FilterLocation;
- typedef struct _FilterLocationClass FilterLocationClass;
- #define TYPE_FILTER_FILES (filter_files_get_type ())
- #define FILTER_FILES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILTER_FILES, FilterFiles))
- #define FILTER_FILES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILTER_FILES, FilterFilesClass))
- #define IS_FILTER_FILES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILTER_FILES))
- #define IS_FILTER_FILES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILTER_FILES))
- #define FILTER_FILES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILTER_FILES, FilterFilesClass))
- typedef struct _FilterFiles FilterFiles;
- typedef struct _FilterFilesClass FilterFilesClass;
- #define TYPE_FILTER (filter_get_type ())
- #define FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILTER, Filter))
- #define FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILTER, FilterClass))
- #define IS_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILTER))
- #define IS_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILTER))
- #define FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILTER, FilterClass))
- typedef struct _Filter Filter;
- typedef struct _FilterClass FilterClass;
- #define TYPE_FILTER_MIME (filter_mime_get_type ())
- #define FILTER_MIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILTER_MIME, FilterMime))
- #define FILTER_MIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILTER_MIME, FilterMimeClass))
- #define IS_FILTER_MIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILTER_MIME))
- #define IS_FILTER_MIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILTER_MIME))
- #define FILTER_MIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILTER_MIME, FilterMimeClass))
- typedef struct _FilterMime FilterMime;
- typedef struct _FilterMimeClass FilterMimeClass;
- #define TYPE_MIME_BUTTON (mime_button_get_type ())
- #define MIME_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MIME_BUTTON, MimeButton))
- #define MIME_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MIME_BUTTON, MimeButtonClass))
- #define IS_MIME_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MIME_BUTTON))
- #define IS_MIME_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MIME_BUTTON))
- #define MIME_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MIME_BUTTON, MimeButtonClass))
- typedef struct _MimeButton MimeButton;
- typedef struct _MimeButtonClass MimeButtonClass;
- #define TYPE_FILTER_MASK (filter_mask_get_type ())
- #define FILTER_MASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILTER_MASK, FilterMask))
- #define FILTER_MASK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILTER_MASK, FilterMaskClass))
- #define IS_FILTER_MASK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILTER_MASK))
- #define IS_FILTER_MASK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILTER_MASK))
- #define FILTER_MASK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILTER_MASK, FilterMaskClass))
- typedef struct _FilterMask FilterMask;
- typedef struct _FilterMaskClass FilterMaskClass;
- #define TYPE_FILTER_MODIFIED (filter_modified_get_type ())
- #define FILTER_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILTER_MODIFIED, FilterModified))
- #define FILTER_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILTER_MODIFIED, FilterModifiedClass))
- #define IS_FILTER_MODIFIED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILTER_MODIFIED))
- #define IS_FILTER_MODIFIED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILTER_MODIFIED))
- #define FILTER_MODIFIED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILTER_MODIFIED, FilterModifiedClass))
- typedef struct _FilterModified FilterModified;
- typedef struct _FilterModifiedClass FilterModifiedClass;
- #define TYPE_FILTER_TEXT (filter_text_get_type ())
- #define FILTER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILTER_TEXT, FilterText))
- #define FILTER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILTER_TEXT, FilterTextClass))
- #define IS_FILTER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILTER_TEXT))
- #define IS_FILTER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILTER_TEXT))
- #define FILTER_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILTER_TEXT, FilterTextClass))
- typedef struct _FilterText FilterText;
- typedef struct _FilterTextClass FilterTextClass;
- #define TYPE_FILTER_BIN (filter_bin_get_type ())
- #define FILTER_BIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILTER_BIN, FilterBin))
- #define FILTER_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILTER_BIN, FilterBinClass))
- #define IS_FILTER_BIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILTER_BIN))
- #define IS_FILTER_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILTER_BIN))
- #define FILTER_BIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILTER_BIN, FilterBinClass))
- typedef struct _FilterBin FilterBin;
- typedef struct _FilterBinClass FilterBinClass;
- #define TYPE_FILTER_SIZE (filter_size_get_type ())
- #define FILTER_SIZE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILTER_SIZE, FilterSize))
- #define FILTER_SIZE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILTER_SIZE, FilterSizeClass))
- #define IS_FILTER_SIZE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILTER_SIZE))
- #define IS_FILTER_SIZE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILTER_SIZE))
- #define FILTER_SIZE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILTER_SIZE, FilterSizeClass))
- typedef struct _FilterSize FilterSize;
- typedef struct _FilterSizeClass FilterSizeClass;
- enum {
- QUERY_ROW_0_PROPERTY,
- QUERY_ROW_FILTER_PROPERTY,
- QUERY_ROW_ROW_TYPE_PROPERTY,
- QUERY_ROW_NUM_PROPERTIES
- };
- static GParamSpec* query_row_properties[QUERY_ROW_NUM_PROPERTIES];
- #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
- #define _filter_unref0(var) ((var == NULL) ? NULL : (var = (filter_unref (var), NULL)))
- #define _g_free0(var) (var = (g_free (var), NULL))
- #define TYPE_FILE_FINDER_WINDOW (file_finder_window_get_type ())
- #define FILE_FINDER_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FILE_FINDER_WINDOW, FileFinderWindow))
- #define FILE_FINDER_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FILE_FINDER_WINDOW, FileFinderWindowClass))
- #define IS_FILE_FINDER_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FILE_FINDER_WINDOW))
- #define IS_FILE_FINDER_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FILE_FINDER_WINDOW))
- #define FILE_FINDER_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FILE_FINDER_WINDOW, FileFinderWindowClass))
- typedef struct _FileFinderWindow FileFinderWindow;
- typedef struct _FileFinderWindowClass FileFinderWindowClass;
- #define TYPE_TYPES (types_get_type ())
- #define __g_slist_free__g_free0_0(var) ((var == NULL) ? NULL : (var = (_g_slist_free__g_free0_ (var), NULL)))
- #define TYPE_PREFERENCES (preferences_get_type ())
- #define PREFERENCES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PREFERENCES, Preferences))
- #define PREFERENCES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PREFERENCES, PreferencesClass))
- #define IS_PREFERENCES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PREFERENCES))
- #define IS_PREFERENCES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PREFERENCES))
- #define PREFERENCES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PREFERENCES, PreferencesClass))
- typedef struct _Preferences Preferences;
- typedef struct _PreferencesClass PreferencesClass;
- #define TYPE_MIME_GROUP (mime_group_get_type ())
- typedef struct _MimeGroup MimeGroup;
- typedef struct _Block2Data Block2Data;
- #define TYPE_DATE_OPERATOR (date_operator_get_type ())
- typedef struct _Block3Data Block3Data;
- typedef struct _Block4Data Block4Data;
- #define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
- typedef struct _Block5Data Block5Data;
- enum {
- QUERY_ROW_CLOSED_SIGNAL,
- QUERY_ROW_CHANGED_TYPE_SIGNAL,
- QUERY_ROW_SEARCH_SIGNAL,
- QUERY_ROW_NUM_SIGNALS
- };
- static guint query_row_signals[QUERY_ROW_NUM_SIGNALS] = {0};
- struct _QueryRow {
- GtkBox parent_instance;
- QueryRowPrivate * priv;
- FilterLocation* location;
- GtkFileChooserButton* chooser;
- FilterFiles* files;
- GtkButton* files_btn;
- };
- struct _QueryRowClass {
- GtkBoxClass parent_class;
- };
- struct _QueryRowPrivate {
- GtkComboBoxText* combo_type;
- GtkBox* hbox;
- Filter* _filter;
- GtkCheckButton* chk_rec;
- FilterMime* mime;
- MimeButton* mime_menu;
- FilterMask* mask;
- GtkEntry* mask_entry;
- GtkCheckButton* mask_case;
- FilterModified* modified;
- GtkButton* mod_btn;
- FilterText* text;
- GtkEntry* text_entry;
- GtkLabel* text_enc;
- GtkCheckButton* text_case;
- GtkPopover* tpop;
- FilterBin* bin;
- GtkEntry* bin_entry;
- FilterSize* size;
- };
- typedef enum {
- TYPES_LOCATION,
- TYPES_FILES,
- TYPES_FILEMASK,
- TYPES_MIMETYPE,
- TYPES_TEXT,
- TYPES_BINARY,
- TYPES_SIZE,
- TYPES_MODIFIED,
- TYPES_NONE
- } types;
- struct _MimeGroup {
- gchar* name;
- gchar** mimes;
- gint mimes_length1;
- };
- struct _Block2Data {
- int _ref_count_;
- QueryRow* self;
- GtkComboBoxText* size_combo;
- GtkEntry* size_entry;
- GtkComboBoxText* w_combo;
- };
- typedef enum {
- DATE_OPERATOR_NOT_EQUAL,
- DATE_OPERATOR_LESS,
- DATE_OPERATOR_LESS_EQUAL,
- DATE_OPERATOR_EQUAL,
- DATE_OPERATOR_MORE_EQUAL,
- DATE_OPERATOR_MORE
- } date_operator;
- struct _Block3Data {
- int _ref_count_;
- QueryRow* self;
- GtkComboBoxText* mod_combo;
- };
- struct _Block4Data {
- int _ref_count_;
- QueryRow* self;
- GtkCalendar* cal;
- };
- struct _Block5Data {
- int _ref_count_;
- QueryRow* self;
- GtkComboBoxText* text_combo;
- };
- static gpointer query_row_parent_class = NULL;
- extern FileFinderWindow* filefinder_window;
- extern Preferences* filefinder_preferences;
- extern guint* filter_size_WEIGHT;
- extern gint filter_size_WEIGHT_length1;
- GType query_row_get_type (void) G_GNUC_CONST;
- GType filter_location_get_type (void) G_GNUC_CONST;
- GType filter_files_get_type (void) G_GNUC_CONST;
- gpointer filter_ref (gpointer instance);
- void filter_unref (gpointer instance);
- GParamSpec* param_spec_filter (const gchar* name,
- const gchar* nick,
- const gchar* blurb,
- GType object_type,
- GParamFlags flags);
- void value_set_filter (GValue* value,
- gpointer v_object);
- void value_take_filter (GValue* value,
- gpointer v_object);
- gpointer value_get_filter (const GValue* value);
- GType filter_get_type (void) G_GNUC_CONST;
- GType filter_mime_get_type (void) G_GNUC_CONST;
- GType mime_button_get_type (void) G_GNUC_CONST;
- GType filter_mask_get_type (void) G_GNUC_CONST;
- GType filter_modified_get_type (void) G_GNUC_CONST;
- GType filter_text_get_type (void) G_GNUC_CONST;
- GType filter_bin_get_type (void) G_GNUC_CONST;
- GType filter_size_get_type (void) G_GNUC_CONST;
- #define QUERY_ROW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_QUERY_ROW, QueryRowPrivate))
- QueryRow* query_row_new (void);
- QueryRow* query_row_construct (GType object_type);
- Filter* filter_new (void);
- Filter* filter_construct (GType object_type);
- static void __lambda66_ (QueryRow* self);
- static void query_row_create_type_widgets (QueryRow* self);
- static void ___lambda66__gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
- static void __lambda92_ (QueryRow* self);
- static void ___lambda92__gtk_button_clicked (GtkButton* _sender,
- gpointer self);
- GType file_finder_window_get_type (void) G_GNUC_CONST;
- GType types_get_type (void) G_GNUC_CONST;
- FilterLocation* filter_location_new (void);
- FilterLocation* filter_location_construct (GType object_type);
- void filter_set_filter_value (Filter* self,
- GObject* value);
- void filter_location_set_folder (FilterLocation* self,
- const gchar* value);
- const gchar* filter_location_get_folder (FilterLocation* self);
- static void ___lambda67_ (QueryRow* self);
- static void ____lambda67__gtk_file_chooser_button_file_set (GtkFileChooserButton* _sender,
- gpointer self);
- static void ___lambda68_ (QueryRow* self);
- void filter_location_set_recursive (FilterLocation* self,
- gboolean value);
- static void ____lambda68__gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self);
- FilterFiles* filter_files_new (void);
- FilterFiles* filter_files_construct (GType object_type);
- static void ___lambda69_ (QueryRow* self);
- void filter_files_clear (FilterFiles* self);
- void filter_files_add (FilterFiles* self,
- const gchar* path);
- static void _g_free0_ (gpointer var);
- static inline void _g_slist_free__g_free0_ (GSList* self);
- static void ____lambda69__gtk_button_clicked (GtkButton* _sender,
- gpointer self);
- FilterMime* filter_mime_new (void);
- FilterMime* filter_mime_construct (GType object_type);
- GType preferences_get_type (void) G_GNUC_CONST;
- GType mime_group_get_type (void) G_GNUC_CONST;
- MimeGroup* mime_group_dup (const MimeGroup* self);
- void mime_group_free (MimeGroup* self);
- void mime_group_copy (const MimeGroup* self,
- MimeGroup* dest);
- void mime_group_destroy (MimeGroup* self);
- MimeGroup* preferences_get_mime_type_groups (Preferences* self,
- int* result_length1);
- void filter_mime_set_name (FilterMime* self,
- const gchar* value);
- void filter_mime_add (FilterMime* self,
- const gchar* mimetype);
- MimeButton* mime_button_new (FilterMime* filter);
- MimeButton* mime_button_construct (GType object_type,
- FilterMime* filter);
- FilterMask* filter_mask_new (void);
- FilterMask* filter_mask_construct (GType object_type);
- static void ___lambda70_ (QueryRow* self);
- void filter_mask_set_mask (FilterMask* self,
- const gchar* value);
- static void ____lambda70__gtk_editable_changed (GtkEditable* _sender,
- gpointer self);
- static void ___lambda71_ (QueryRow* self);
- static void ____lambda71__gtk_entry_activate (GtkEntry* _sender,
- gpointer self);
- static void ___lambda72_ (QueryRow* self,
- GtkEntryIconPosition pos,
- GdkEventButton* event);
- static void ____lambda72__gtk_entry_icon_press (GtkEntry* _sender,
- GtkEntryIconPosition icon_pos,
- GdkEventButton* event,
- gpointer self);
- static void ___lambda73_ (QueryRow* self);
- void filter_mask_set_case_sensetive (FilterMask* self,
- gboolean value);
- static void ____lambda73__gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self);
- static Block2Data* block2_data_ref (Block2Data* _data2_);
- static void block2_data_unref (void * _userdata_);
- FilterSize* filter_size_new (void);
- FilterSize* filter_size_construct (GType object_type);
- GType date_operator_get_type (void) G_GNUC_CONST;
- date_operator filter_size_get_operator (FilterSize* self);
- static void ___lambda74_ (Block2Data* _data2_);
- void filter_size_set_operator (FilterSize* self,
- date_operator value);
- static void ____lambda74__gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
- static void ___lambda75_ (Block2Data* _data2_,
- GtkEntryIconPosition pos,
- GdkEventButton* event);
- static void ____lambda75__gtk_entry_icon_press (GtkEntry* _sender,
- GtkEntryIconPosition icon_pos,
- GdkEventButton* event,
- gpointer self);
- static void ___lambda76_ (Block2Data* _data2_);
- void filter_size_set_size (FilterSize* self,
- guint64 value);
- static void ____lambda76__gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
- static void ___lambda77_ (Block2Data* _data2_);
- static gchar* query_row_check_dec (QueryRow* self,
- const gchar* txt);
- static void ____lambda77__gtk_editable_changed (GtkEditable* _sender,
- gpointer self);
- static void ___lambda78_ (QueryRow* self);
- static void ____lambda78__gtk_entry_activate (GtkEntry* _sender,
- gpointer self);
- static Block3Data* block3_data_ref (Block3Data* _data3_);
- static void block3_data_unref (void * _userdata_);
- FilterModified* filter_modified_new (void);
- FilterModified* filter_modified_construct (GType object_type);
- date_operator filter_modified_get_operator (FilterModified* self);
- static void ___lambda79_ (Block3Data* _data3_);
- void filter_modified_set_operator (FilterModified* self,
- date_operator value);
- static void ____lambda79__gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
- GDateTime* filter_modified_get_date (FilterModified* self);
- static void ___lambda80_ (QueryRow* self);
- static Block4Data* block4_data_ref (Block4Data* _data4_);
- static void block4_data_unref (void * _userdata_);
- static void __lambda81_ (Block4Data* _data4_);
- void filter_modified_set_date (FilterModified* self,
- GDateTime* value);
- static void ___lambda81__gtk_calendar_day_selected (GtkCalendar* _sender,
- gpointer self);
- static void ____lambda80__gtk_button_clicked (GtkButton* _sender,
- gpointer self);
- static Block5Data* block5_data_ref (Block5Data* _data5_);
- static void block5_data_unref (void * _userdata_);
- FilterText* filter_text_new (void);
- FilterText* filter_text_construct (GType object_type);
- void filter_text_set_text (FilterText* self,
- const gchar* value);
- const gchar* filter_text_get_text (FilterText* self);
- static void ___lambda82_ (QueryRow* self,
- GtkEntryIconPosition pos,
- GdkEventButton* event);
- static void ____lambda82__gtk_entry_icon_press (GtkEntry* _sender,
- GtkEntryIconPosition icon_pos,
- GdkEventButton* event,
- gpointer self);
- static void ___lambda83_ (QueryRow* self);
- static void ____lambda83__gtk_editable_changed (GtkEditable* _sender,
- gpointer self);
- static void ___lambda84_ (QueryRow* self);
- static void ____lambda84__gtk_entry_activate (GtkEntry* _sender,
- gpointer self);
- void filter_text_set_encoding (FilterText* self,
- const gchar* value);
- static gboolean ___lambda85_ (QueryRow* self);
- static gboolean ____lambda85__gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self);
- static void ___lambda86_ (Block5Data* _data5_);
- const gchar* filter_text_get_encoding (FilterText* self);
- static void ____lambda86__gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self);
- static void ___lambda87_ (QueryRow* self);
- void filter_text_set_case_sensetive (FilterText* self,
- gboolean value);
- static void ____lambda87__gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self);
- FilterBin* filter_bin_new (void);
- FilterBin* filter_bin_construct (GType object_type);
- static void ___lambda88_ (QueryRow* self);
- static gchar* query_row_check_hex (QueryRow* self,
- const gchar* txt);
- void filter_bin_set_bin (FilterBin* self,
- const gchar* value);
- static void ____lambda88__gtk_editable_changed (GtkEditable* _sender,
- gpointer self);
- static gboolean ___lambda89_ (QueryRow* self);
- static gboolean ____lambda89__gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self);
- static void ___lambda90_ (QueryRow* self);
- static void ____lambda90__gtk_entry_activate (GtkEntry* _sender,
- gpointer self);
- static void ___lambda91_ (QueryRow* self,
- GtkEntryIconPosition pos,
- GdkEventButton* event);
- static void ____lambda91__gtk_entry_icon_press (GtkEntry* _sender,
- GtkEntryIconPosition icon_pos,
- GdkEventButton* event,
- gpointer self);
- void filter_set_filter_type (Filter* self,
- types value);
- Filter* query_row_get_filter (QueryRow* self);
- types query_row_get_row_type (QueryRow* self);
- void query_row_set_row_type (QueryRow* self,
- types value);
- static void query_row_finalize (GObject * obj);
- static void _vala_query_row_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec);
- static void _vala_query_row_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec);
- static void _vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func);
- static void _vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func);
- extern const gchar* type_names[8];
- extern const gchar* date_operators[6];
- extern const gchar* TEXT_encodings[72];
- static void
- __lambda66_ (QueryRow* self)
- {
- query_row_create_type_widgets (self);
- g_signal_emit (self, query_row_signals[QUERY_ROW_CHANGED_TYPE_SIGNAL], 0, self);
- }
- static void
- ___lambda66__gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
- {
- __lambda66_ ((QueryRow*) self);
- }
- static void
- __lambda92_ (QueryRow* self)
- {
- g_signal_emit (self, query_row_signals[QUERY_ROW_CLOSED_SIGNAL], 0, self);
- }
- static void
- ___lambda92__gtk_button_clicked (GtkButton* _sender,
- gpointer self)
- {
- __lambda92_ ((QueryRow*) self);
- }
- QueryRow*
- query_row_construct (GType object_type)
- {
- QueryRow * self = NULL;
- Filter* _tmp0_;
- GtkComboBoxText* _tmp1_;
- GtkComboBoxText* _tmp2_;
- GtkComboBoxText* _tmp8_;
- GtkComboBoxText* _tmp9_;
- GtkComboBoxText* _tmp10_;
- GtkButton* btn = NULL;
- GtkButton* _tmp11_;
- GtkStyleContext* _tmp12_;
- self = (QueryRow*) g_object_new (object_type, "orientation", GTK_ORIENTATION_HORIZONTAL, "spacing", 6, NULL);
- g_object_set ((GtkWidget*) self, "margin", 2, NULL);
- _tmp0_ = filter_new ();
- _filter_unref0 (self->priv->_filter);
- self->priv->_filter = _tmp0_;
- _tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
- g_object_ref_sink (_tmp1_);
- _g_object_unref0 (self->priv->combo_type);
- self->priv->combo_type = _tmp1_;
- _tmp2_ = self->priv->combo_type;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp2_, "Change Filter Type");
- {
- const gchar** s_collection = NULL;
- gint s_collection_length1 = 0;
- gint _s_collection_size_ = 0;
- gint s_it = 0;
- s_collection = type_names;
- s_collection_length1 = G_N_ELEMENTS (type_names);
- for (s_it = 0; s_it < G_N_ELEMENTS (type_names); s_it = s_it + 1) {
- gchar* _tmp3_;
- gchar* s = NULL;
- _tmp3_ = g_strdup (s_collection[s_it]);
- s = _tmp3_;
- {
- GtkComboBoxText* _tmp4_;
- const gchar* _tmp5_;
- gchar* _tmp6_;
- gchar* _tmp7_;
- _tmp4_ = self->priv->combo_type;
- _tmp5_ = s;
- _tmp6_ = g_utf8_strup (_tmp5_, (gssize) -1);
- _tmp7_ = _tmp6_;
- gtk_combo_box_text_append_text (_tmp4_, _tmp7_);
- _g_free0 (_tmp7_);
- _g_free0 (s);
- }
- }
- }
- _tmp8_ = self->priv->combo_type;
- gtk_combo_box_set_active ((GtkComboBox*) _tmp8_, 0);
- _tmp9_ = self->priv->combo_type;
- gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp9_);
- _tmp10_ = self->priv->combo_type;
- g_signal_connect_object ((GtkComboBox*) _tmp10_, "changed", (GCallback) ___lambda66__gtk_combo_box_changed, self, 0);
- query_row_create_type_widgets (self);
- _tmp11_ = (GtkButton*) gtk_button_new_from_icon_name ("window-close-symbolic", (GtkIconSize) GTK_ICON_SIZE_BUTTON);
- g_object_ref_sink (_tmp11_);
- btn = _tmp11_;
- _tmp12_ = gtk_widget_get_style_context ((GtkWidget*) btn);
- gtk_style_context_add_class (_tmp12_, GTK_STYLE_CLASS_ACCELERATOR);
- gtk_widget_set_tooltip_text ((GtkWidget*) btn, "Remove it from the search query");
- gtk_box_pack_end ((GtkBox*) self, (GtkWidget*) btn, FALSE, FALSE, (guint) 0);
- g_signal_connect_object (btn, "clicked", (GCallback) ___lambda92__gtk_button_clicked, self, 0);
- gtk_widget_show_all ((GtkWidget*) self);
- _g_object_unref0 (btn);
- return self;
- }
- QueryRow*
- query_row_new (void)
- {
- return query_row_construct (TYPE_QUERY_ROW);
- }
- static gpointer
- _g_object_ref0 (gpointer self)
- {
- return self ? g_object_ref (self) : NULL;
- }
- static void
- ___lambda67_ (QueryRow* self)
- {
- FilterLocation* _tmp0_;
- GtkFileChooserButton* _tmp1_;
- GtkFileChooserButton* _tmp2_;
- gchar* _tmp3_;
- gchar* _tmp4_;
- _tmp0_ = self->location;
- _tmp1_ = self->chooser;
- _tmp2_ = self->chooser;
- _tmp3_ = gtk_file_chooser_get_filename ((GtkFileChooser*) _tmp2_);
- _tmp4_ = _tmp3_;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp1_, _tmp4_);
- filter_location_set_folder (_tmp0_, _tmp4_);
- _g_free0 (_tmp4_);
- }
- static void
- ____lambda67__gtk_file_chooser_button_file_set (GtkFileChooserButton* _sender,
- gpointer self)
- {
- ___lambda67_ ((QueryRow*) self);
- }
- static void
- ___lambda68_ (QueryRow* self)
- {
- FilterLocation* _tmp0_;
- GtkCheckButton* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
- _tmp0_ = self->location;
- _tmp1_ = self->priv->chk_rec;
- _tmp2_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp1_);
- _tmp3_ = _tmp2_;
- filter_location_set_recursive (_tmp0_, _tmp3_);
- }
- static void
- ____lambda68__gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self)
- {
- ___lambda68_ ((QueryRow*) self);
- }
- static gint
- string_index_of (const gchar* self,
- const gchar* needle,
- gint start_index)
- {
- gint result = 0;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- g_return_val_if_fail (self != NULL, 0);
- g_return_val_if_fail (needle != NULL, 0);
- _tmp0_ = strstr (((gchar*) self) + start_index, (gchar*) needle);
- _result_ = _tmp0_;
- _tmp1_ = _result_;
- if (_tmp1_ != NULL) {
- gchar* _tmp2_;
- _tmp2_ = _result_;
- result = (gint) (_tmp2_ - ((gchar*) self));
- return result;
- } else {
- result = -1;
- return result;
- }
- }
- static glong
- string_strnlen (gchar* str,
- glong maxlen)
- {
- glong result = 0L;
- gchar* end = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- _tmp0_ = memchr (str, 0, (gsize) maxlen);
- end = _tmp0_;
- _tmp1_ = end;
- if (_tmp1_ == NULL) {
- result = maxlen;
- return result;
- } else {
- gchar* _tmp2_;
- _tmp2_ = end;
- result = (glong) (_tmp2_ - str);
- return result;
- }
- }
- static gchar*
- string_substring (const gchar* self,
- glong offset,
- glong len)
- {
- gchar* result = NULL;
- glong string_length = 0L;
- gboolean _tmp0_ = FALSE;
- glong _tmp6_;
- gchar* _tmp7_;
- g_return_val_if_fail (self != NULL, NULL);
- if (offset >= ((glong) 0)) {
- _tmp0_ = len >= ((glong) 0);
- } else {
- _tmp0_ = FALSE;
- }
- if (_tmp0_) {
- string_length = string_strnlen ((gchar*) self, offset + len);
- } else {
- gint _tmp1_;
- gint _tmp2_;
- _tmp1_ = strlen (self);
- _tmp2_ = _tmp1_;
- string_length = (glong) _tmp2_;
- }
- if (offset < ((glong) 0)) {
- glong _tmp3_;
- _tmp3_ = string_length;
- offset = _tmp3_ + offset;
- g_return_val_if_fail (offset >= ((glong) 0), NULL);
- } else {
- glong _tmp4_;
- _tmp4_ = string_length;
- g_return_val_if_fail (offset <= _tmp4_, NULL);
- }
- if (len < ((glong) 0)) {
- glong _tmp5_;
- _tmp5_ = string_length;
- len = _tmp5_ - offset;
- }
- _tmp6_ = string_length;
- g_return_val_if_fail ((offset + len) <= _tmp6_, NULL);
- _tmp7_ = g_strndup (((gchar*) self) + offset, (gsize) len);
- result = _tmp7_;
- return result;
- }
- static gint
- string_last_index_of (const gchar* self,
- const gchar* needle,
- gint start_index)
- {
- gint result = 0;
- gchar* _result_ = NULL;
- gchar* _tmp0_;
- gchar* _tmp1_;
- g_return_val_if_fail (self != NULL, 0);
- g_return_val_if_fail (needle != NULL, 0);
- _tmp0_ = g_strrstr (((gchar*) self) + start_index, (gchar*) needle);
- _result_ = _tmp0_;
- _tmp1_ = _result_;
- if (_tmp1_ != NULL) {
- gchar* _tmp2_;
- _tmp2_ = _result_;
- result = (gint) (_tmp2_ - ((gchar*) self));
- return result;
- } else {
- result = -1;
- return result;
- }
- }
- static void
- _g_free0_ (gpointer var)
- {
- var = (g_free (var), NULL);
- }
- static inline void
- _g_slist_free__g_free0_ (GSList* self)
- {
- g_slist_free_full (self, (GDestroyNotify) _g_free0_);
- }
- static void
- ___lambda69_ (QueryRow* self)
- {
- gint tt = 0;
- gchar* l = NULL;
- gchar* t = NULL;
- GtkFileChooserDialog* c = NULL;
- FileFinderWindow* _tmp0_;
- GtkFileChooserDialog* _tmp1_;
- GtkFileChooserDialog* _tmp2_;
- GtkFileChooserDialog* _tmp3_;
- GtkFileChooserDialog* _tmp47_;
- tt = 0;
- _tmp0_ = filefinder_window;
- _tmp1_ = (GtkFileChooserDialog*) gtk_file_chooser_dialog_new ("Select files", (GtkWindow*) _tmp0_, GTK_FILE_CHOOSER_ACTION_OPEN, "_Cancel", GTK_RESPONSE_CANCEL, "_Open", GTK_RESPONSE_ACCEPT, NULL);
- g_object_ref_sink (_tmp1_);
- c = _tmp1_;
- _tmp2_ = c;
- gtk_file_chooser_set_select_multiple ((GtkFileChooser*) _tmp2_, TRUE);
- _tmp3_ = c;
- if (gtk_dialog_run ((GtkDialog*) _tmp3_) == ((gint) GTK_RESPONSE_ACCEPT)) {
- GSList* uris = NULL;
- GtkFileChooserDialog* _tmp4_;
- GSList* _tmp5_;
- FilterFiles* _tmp6_;
- gchar* _tmp7_;
- GSList* _tmp8_;
- const gchar* _tmp18_;
- GSList* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- gchar* _tmp22_;
- GSList* _tmp23_;
- GSList* _tmp24_;
- gconstpointer _tmp25_;
- gchar* _tmp26_;
- const gchar* _tmp27_;
- GSList* _tmp35_;
- GtkButton* _tmp45_;
- const gchar* _tmp46_;
- _tmp4_ = c;
- _tmp5_ = gtk_file_chooser_get_filenames ((GtkFileChooser*) _tmp4_);
- uris = _tmp5_;
- _tmp6_ = self->files;
- filter_files_clear (_tmp6_);
- _tmp7_ = g_strdup ("");
- _g_free0 (t);
- t = _tmp7_;
- _tmp8_ = uris;
- {
- GSList* uri_collection = NULL;
- GSList* uri_it = NULL;
- uri_collection = _tmp8_;
- for (uri_it = uri_collection; uri_it != NULL; uri_it = uri_it->next) {
- const gchar* uri = NULL;
- uri = (const gchar*) uri_it->data;
- {
- FilterFiles* _tmp9_;
- const gchar* _tmp10_;
- gint _tmp11_;
- gint _tmp17_;
- _tmp9_ = self->files;
- _tmp10_ = uri;
- filter_files_add (_tmp9_, _tmp10_);
- _tmp11_ = tt;
- if (_tmp11_ < 10) {
- const gchar* _tmp12_;
- const gchar* _tmp13_;
- gchar* _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- _tmp12_ = t;
- _tmp13_ = uri;
- _tmp14_ = g_strconcat (_tmp13_, "\n", NULL);
- _tmp15_ = _tmp14_;
- _tmp16_ = g_strconcat (_tmp12_, _tmp15_, NULL);
- _g_free0 (t);
- t = _tmp16_;
- _g_free0 (_tmp15_);
- }
- _tmp17_ = tt;
- tt = _tmp17_ + 1;
- }
- }
- }
- _tmp18_ = t;
- _tmp19_ = uris;
- _tmp20_ = g_strdup_printf (" ...\n(%u selected items)", g_slist_length (_tmp19_));
- _tmp21_ = _tmp20_;
- _tmp22_ = g_strconcat (_tmp18_, _tmp21_, NULL);
- _g_free0 (t);
- t = _tmp22_;
- _g_free0 (_tmp21_);
- _tmp23_ = uris;
- _tmp24_ = g_slist_nth (_tmp23_, (guint) 0);
- _tmp25_ = _tmp24_->data;
- _tmp26_ = g_strdup ((const gchar*) _tmp25_);
- _g_free0 (l);
- l = _tmp26_;
- _tmp27_ = l;
- if (string_index_of (_tmp27_, "/", 0) > -1) {
- GtkButton* _tmp28_;
- const gchar* _tmp29_;
- const gchar* _tmp30_;
- gchar* _tmp31_;
- gchar* _tmp32_;
- _tmp28_ = self->files_btn;
- _tmp29_ = l;
- _tmp30_ = l;
- _tmp31_ = string_substring (_tmp29_, (glong) (string_last_index_of (_tmp30_, "/", 0) + 1), (glong) -1);
- _tmp32_ = _tmp31_;
- gtk_button_set_label (_tmp28_, _tmp32_);
- _g_free0 (_tmp32_);
- } else {
- GtkButton* _tmp33_;
- const gchar* _tmp34_;
- _tmp33_ = self->files_btn;
- _tmp34_ = l;
- gtk_button_set_label (_tmp33_, _tmp34_);
- }
- _tmp35_ = uris;
- if (g_slist_length (_tmp35_) > ((guint) 1)) {
- GtkButton* _tmp36_;
- GtkButton* _tmp37_;
- const gchar* _tmp38_;
- const gchar* _tmp39_;
- GSList* _tmp40_;
- gchar* _tmp41_;
- gchar* _tmp42_;
- gchar* _tmp43_;
- gchar* _tmp44_;
- _tmp36_ = self->files_btn;
- _tmp37_ = self->files_btn;
- _tmp38_ = gtk_button_get_label (_tmp37_);
- _tmp39_ = _tmp38_;
- _tmp40_ = uris;
- _tmp41_ = g_strdup_printf (" ... (%u selected items)", g_slist_length (_tmp40_));
- _tmp42_ = _tmp41_;
- _tmp43_ = g_strconcat (_tmp39_, _tmp42_, NULL);
- _tmp44_ = _tmp43_;
- gtk_button_set_label (_tmp37_, _tmp44_);
- _g_free0 (_tmp44_);
- _g_free0 (_tmp42_);
- }
- _tmp45_ = self->files_btn;
- _tmp46_ = t;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp45_, _tmp46_);
- __g_slist_free__g_free0_0 (uris);
- }
- _tmp47_ = c;
- g_signal_emit_by_name ((GtkDialog*) _tmp47_, "close");
- _g_object_unref0 (c);
- _g_free0 (t);
- _g_free0 (l);
- }
- static void
- ____lambda69__gtk_button_clicked (GtkButton* _sender,
- gpointer self)
- {
- ___lambda69_ ((QueryRow*) self);
- }
- static void
- ___lambda70_ (QueryRow* self)
- {
- FilterMask* _tmp0_;
- GtkEntry* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- GtkEntry* _tmp4_;
- GtkEntry* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- _tmp0_ = self->priv->mask;
- _tmp1_ = self->priv->mask_entry;
- _tmp2_ = gtk_entry_get_text (_tmp1_);
- _tmp3_ = _tmp2_;
- filter_mask_set_mask (_tmp0_, _tmp3_);
- _tmp4_ = self->priv->mask_entry;
- _tmp5_ = self->priv->mask_entry;
- _tmp6_ = gtk_entry_get_text (_tmp5_);
- _tmp7_ = _tmp6_;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp4_, _tmp7_);
- }
- static void
- ____lambda70__gtk_editable_changed (GtkEditable* _sender,
- gpointer self)
- {
- ___lambda70_ ((QueryRow*) self);
- }
- static void
- ___lambda71_ (QueryRow* self)
- {
- g_signal_emit (self, query_row_signals[QUERY_ROW_SEARCH_SIGNAL], 0);
- }
- static void
- ____lambda71__gtk_entry_activate (GtkEntry* _sender,
- gpointer self)
- {
- ___lambda71_ ((QueryRow*) self);
- }
- static void
- ___lambda72_ (QueryRow* self,
- GtkEntryIconPosition pos,
- GdkEventButton* event)
- {
- g_return_if_fail (event != NULL);
- if (pos == GTK_ENTRY_ICON_SECONDARY) {
- GtkEntry* _tmp0_;
- _tmp0_ = self->priv->mask_entry;
- gtk_entry_set_text (_tmp0_, "");
- }
- }
- static void
- ____lambda72__gtk_entry_icon_press (GtkEntry* _sender,
- GtkEntryIconPosition icon_pos,
- GdkEventButton* event,
- gpointer self)
- {
- ___lambda72_ ((QueryRow*) self, icon_pos, event);
- }
- static void
- ___lambda73_ (QueryRow* self)
- {
- FilterMask* _tmp0_;
- GtkCheckButton* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
- _tmp0_ = self->priv->mask;
- _tmp1_ = self->priv->mask_case;
- _tmp2_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp1_);
- _tmp3_ = _tmp2_;
- filter_mask_set_case_sensetive (_tmp0_, _tmp3_);
- }
- static void
- ____lambda73__gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self)
- {
- ___lambda73_ ((QueryRow*) self);
- }
- static Block2Data*
- block2_data_ref (Block2Data* _data2_)
- {
- g_atomic_int_inc (&_data2_->_ref_count_);
- return _data2_;
- }
- static void
- block2_data_unref (void * _userdata_)
- {
- Block2Data* _data2_;
- _data2_ = (Block2Data*) _userdata_;
- if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
- QueryRow* self;
- self = _data2_->self;
- _g_object_unref0 (_data2_->w_combo);
- _g_object_unref0 (_data2_->size_entry);
- _g_object_unref0 (_data2_->size_combo);
- _g_object_unref0 (self);
- g_slice_free (Block2Data, _data2_);
- }
- }
- static void
- ___lambda74_ (Block2Data* _data2_)
- {
- QueryRow* self;
- FilterSize* _tmp0_;
- GtkComboBoxText* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- self = _data2_->self;
- _tmp0_ = self->priv->size;
- _tmp1_ = _data2_->size_combo;
- _tmp2_ = gtk_combo_box_get_active ((GtkComboBox*) _tmp1_);
- _tmp3_ = _tmp2_;
- filter_size_set_operator (_tmp0_, (date_operator) _tmp3_);
- }
- static void
- ____lambda74__gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
- {
- ___lambda74_ (self);
- }
- static void
- ___lambda75_ (Block2Data* _data2_,
- GtkEntryIconPosition pos,
- GdkEventButton* event)
- {
- QueryRow* self;
- self = _data2_->self;
- g_return_if_fail (event != NULL);
- if (pos == GTK_ENTRY_ICON_SECONDARY) {
- GtkEntry* _tmp0_;
- _tmp0_ = _data2_->size_entry;
- gtk_entry_set_text (_tmp0_, "0");
- }
- }
- static void
- ____lambda75__gtk_entry_icon_press (GtkEntry* _sender,
- GtkEntryIconPosition icon_pos,
- GdkEventButton* event,
- gpointer self)
- {
- ___lambda75_ (self, icon_pos, event);
- }
- static guint64
- uint64_parse (const gchar* str)
- {
- guint64 result = 0ULL;
- guint64 _tmp0_;
- g_return_val_if_fail (str != NULL, 0ULL);
- _tmp0_ = g_ascii_strtoull (str, NULL, (guint) 0);
- result = _tmp0_;
- return result;
- }
- static void
- ___lambda76_ (Block2Data* _data2_)
- {
- QueryRow* self;
- FilterSize* _tmp0_;
- GtkEntry* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- FilterSize* _tmp4_;
- guint* _tmp5_;
- gint _tmp5__length1;
- GtkComboBoxText* _tmp6_;
- gint _tmp7_;
- gint _tmp8_;
- guint _tmp9_;
- self = _data2_->self;
- _tmp0_ = self->priv->size;
- _tmp1_ = _data2_->size_entry;
- _tmp2_ = gtk_entry_get_text (_tmp1_);
- _tmp3_ = _tmp2_;
- _tmp4_ = self->priv->size;
- _tmp5_ = filter_size_WEIGHT;
- _tmp5__length1 = filter_size_WEIGHT_length1;
- _tmp6_ = _data2_->w_combo;
- _tmp7_ = gtk_combo_box_get_active ((GtkComboBox*) _tmp6_);
- _tmp8_ = _tmp7_;
- _tmp9_ = _tmp5_[_tmp8_];
- filter_size_set_size (_tmp0_, uint64_parse (_tmp3_) * _tmp9_);
- }
- static void
- ____lambda76__gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
- {
- ___lambda76_ (self);
- }
- static void
- ___lambda77_ (Block2Data* _data2_)
- {
- QueryRow* self;
- GtkEntry* _tmp0_;
- GtkEntry* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- FilterSize* _tmp6_;
- GtkEntry* _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
- FilterSize* _tmp10_;
- guint* _tmp11_;
- gint _tmp11__length1;
- GtkComboBoxText* _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- guint _tmp15_;
- GtkEntry* _tmp16_;
- GtkEntry* _tmp17_;
- const gchar* _tmp18_;
- const gchar* _tmp19_;
- self = _data2_->self;
- _tmp0_ = _data2_->size_entry;
- _tmp1_ = _data2_->size_entry;
- _tmp2_ = gtk_entry_get_text (_tmp1_);
- _tmp3_ = _tmp2_;
- _tmp4_ = query_row_check_dec (self, _tmp3_);
- _tmp5_ = _tmp4_;
- gtk_entry_set_text (_tmp0_, _tmp5_);
- _g_free0 (_tmp5_);
- _tmp6_ = self->priv->size;
- _tmp7_ = _data2_->size_entry;
- _tmp8_ = gtk_entry_get_text (_tmp7_);
- _tmp9_ = _tmp8_;
- _tmp10_ = self->priv->size;
- _tmp11_ = filter_size_WEIGHT;
- _tmp11__length1 = filter_size_WEIGHT_length1;
- _tmp12_ = _data2_->w_combo;
- _tmp13_ = gtk_combo_box_get_active ((GtkComboBox*) _tmp12_);
- _tmp14_ = _tmp13_;
- _tmp15_ = _tmp11_[_tmp14_];
- filter_size_set_size (_tmp6_, uint64_parse (_tmp9_) * _tmp15_);
- _tmp16_ = _data2_->size_entry;
- _tmp17_ = _data2_->size_entry;
- _tmp18_ = gtk_entry_get_text (_tmp17_);
- _tmp19_ = _tmp18_;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp16_, _tmp19_);
- }
- static void
- ____lambda77__gtk_editable_changed (GtkEditable* _sender,
- gpointer self)
- {
- ___lambda77_ (self);
- }
- static void
- ___lambda78_ (QueryRow* self)
- {
- g_signal_emit (self, query_row_signals[QUERY_ROW_SEARCH_SIGNAL], 0);
- }
- static void
- ____lambda78__gtk_entry_activate (GtkEntry* _sender,
- gpointer self)
- {
- ___lambda78_ ((QueryRow*) self);
- }
- static Block3Data*
- block3_data_ref (Block3Data* _data3_)
- {
- g_atomic_int_inc (&_data3_->_ref_count_);
- return _data3_;
- }
- static void
- block3_data_unref (void * _userdata_)
- {
- Block3Data* _data3_;
- _data3_ = (Block3Data*) _userdata_;
- if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
- QueryRow* self;
- self = _data3_->self;
- _g_object_unref0 (_data3_->mod_combo);
- _g_object_unref0 (self);
- g_slice_free (Block3Data, _data3_);
- }
- }
- static void
- ___lambda79_ (Block3Data* _data3_)
- {
- QueryRow* self;
- FilterModified* _tmp0_;
- GtkComboBoxText* _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- self = _data3_->self;
- _tmp0_ = self->priv->modified;
- _tmp1_ = _data3_->mod_combo;
- _tmp2_ = gtk_combo_box_get_active ((GtkComboBox*) _tmp1_);
- _tmp3_ = _tmp2_;
- filter_modified_set_operator (_tmp0_, (date_operator) _tmp3_);
- }
- static void
- ____lambda79__gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
- {
- ___lambda79_ (self);
- }
- static Block4Data*
- block4_data_ref (Block4Data* _data4_)
- {
- g_atomic_int_inc (&_data4_->_ref_count_);
- return _data4_;
- }
- static void
- block4_data_unref (void * _userdata_)
- {
- Block4Data* _data4_;
- _data4_ = (Block4Data*) _userdata_;
- if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
- QueryRow* self;
- self = _data4_->self;
- _g_object_unref0 (_data4_->cal);
- _g_object_unref0 (self);
- g_slice_free (Block4Data, _data4_);
- }
- }
- static void
- __lambda81_ (Block4Data* _data4_)
- {
- QueryRow* self;
- FilterModified* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- gint _tmp5_;
- gint _tmp6_;
- GDateTime* _tmp7_;
- GDateTime* _tmp8_;
- GtkButton* _tmp9_;
- gint _tmp10_;
- gint _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- gint _tmp14_;
- gint _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- self = _data4_->self;
- _tmp0_ = self->priv->modified;
- g_object_get (_data4_->cal, "year", &_tmp1_, NULL);
- _tmp2_ = _tmp1_;
- g_object_get (_data4_->cal, "month", &_tmp3_, NULL);
- _tmp4_ = _tmp3_;
- g_object_get (_data4_->cal, "day", &_tmp5_, NULL);
- _tmp6_ = _tmp5_;
- _tmp7_ = g_date_time_new_local (_tmp2_, _tmp4_ + 1, _tmp6_, 0, 0, (gdouble) 0);
- _tmp8_ = _tmp7_;
- filter_modified_set_date (_tmp0_, _tmp8_);
- _g_date_time_unref0 (_tmp8_);
- _tmp9_ = self->priv->mod_btn;
- g_object_get (_data4_->cal, "year", &_tmp10_, NULL);
- _tmp11_ = _tmp10_;
- g_object_get (_data4_->cal, "month", &_tmp12_, NULL);
- _tmp13_ = _tmp12_;
- g_object_get (_data4_->cal, "day", &_tmp14_, NULL);
- _tmp15_ = _tmp14_;
- _tmp16_ = g_strdup_printf ("%04d-%02d-%02d", _tmp11_, _tmp13_ + 1, _tmp15_);
- _tmp17_ = _tmp16_;
- gtk_button_set_label (_tmp9_, _tmp17_);
- _g_free0 (_tmp17_);
- }
- static void
- ___lambda81__gtk_calendar_day_selected (GtkCalendar* _sender,
- gpointer self)
- {
- __lambda81_ (self);
- }
- static void
- ___lambda80_ (QueryRow* self)
- {
- Block4Data* _data4_;
- GtkPopover* pop = NULL;
- GtkButton* _tmp0_;
- GtkPopover* _tmp1_;
- GtkCalendar* _tmp2_;
- FilterModified* _tmp3_;
- GDateTime* _tmp4_;
- GDateTime* _tmp5_;
- FilterModified* _tmp6_;
- GDateTime* _tmp7_;
- GDateTime* _tmp8_;
- FilterModified* _tmp9_;
- GDateTime* _tmp10_;
- GDateTime* _tmp11_;
- _data4_ = g_slice_new0 (Block4Data);
- _data4_->_ref_count_ = 1;
- _data4_->self = g_object_ref (self);
- _tmp0_ = self->priv->mod_btn;
- _tmp1_ = (GtkPopover*) gtk_popover_new ((GtkWidget*) _tmp0_);
- g_object_ref_sink (_tmp1_);
- pop = _tmp1_;
- _tmp2_ = (GtkCalendar*) gtk_calendar_new ();
- g_object_ref_sink (_tmp2_);
- _data4_->cal = _tmp2_;
- _tmp3_ = self->priv->modified;
- _tmp4_ = filter_modified_get_date (_tmp3_);
- _tmp5_ = _tmp4_;
- g_object_set (_data4_->cal, "year", g_date_time_get_year (_tmp5_), NULL);
- _tmp6_ = self->priv->modified;
- _tmp7_ = filter_modified_get_date (_tmp6_);
- _tmp8_ = _tmp7_;
- g_object_set (_data4_->cal, "month", g_date_time_get_month (_tmp8_) - 1, NULL);
- _tmp9_ = self->priv->modified;
- _tmp10_ = filter_modified_get_date (_tmp9_);
- _tmp11_ = _tmp10_;
- g_object_set (_data4_->cal, "day", g_date_time_get_day_of_month (_tmp11_), NULL);
- g_signal_connect_data (_data4_->cal, "day-selected", (GCallback) ___lambda81__gtk_calendar_day_selected, block4_data_ref (_data4_), (GClosureNotify) block4_data_unref, 0);
- gtk_container_add ((GtkContainer*) pop, (GtkWidget*) _data4_->cal);
- gtk_widget_show_all ((GtkWidget*) pop);
- _g_object_unref0 (pop);
- block4_data_unref (_data4_);
- _data4_ = NULL;
- }
- static void
- ____lambda80__gtk_button_clicked (GtkButton* _sender,
- gpointer self)
- {
- ___lambda80_ ((QueryRow*) self);
- }
- static Block5Data*
- block5_data_ref (Block5Data* _data5_)
- {
- g_atomic_int_inc (&_data5_->_ref_count_);
- return _data5_;
- }
- static void
- block5_data_unref (void * _userdata_)
- {
- Block5Data* _data5_;
- _data5_ = (Block5Data*) _userdata_;
- if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
- QueryRow* self;
- self = _data5_->self;
- _g_object_unref0 (_data5_->text_combo);
- _g_object_unref0 (self);
- g_slice_free (Block5Data, _data5_);
- }
- }
- static void
- ___lambda82_ (QueryRow* self,
- GtkEntryIconPosition pos,
- GdkEventButton* event)
- {
- g_return_if_fail (event != NULL);
- if (pos == GTK_ENTRY_ICON_SECONDARY) {
- GtkEntry* _tmp0_;
- _tmp0_ = self->priv->text_entry;
- gtk_entry_set_text (_tmp0_, "");
- }
- }
- static void
- ____lambda82__gtk_entry_icon_press (GtkEntry* _sender,
- GtkEntryIconPosition icon_pos,
- GdkEventButton* event,
- gpointer self)
- {
- ___lambda82_ ((QueryRow*) self, icon_pos, event);
- }
- static void
- ___lambda83_ (QueryRow* self)
- {
- FilterText* _tmp0_;
- GtkEntry* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- GtkEntry* _tmp4_;
- GtkEntry* _tmp5_;
- const gchar* _tmp6_;
- const gchar* _tmp7_;
- _tmp0_ = self->priv->text;
- _tmp1_ = self->priv->text_entry;
- _tmp2_ = gtk_entry_get_text (_tmp1_);
- _tmp3_ = _tmp2_;
- filter_text_set_text (_tmp0_, _tmp3_);
- _tmp4_ = self->priv->text_entry;
- _tmp5_ = self->priv->text_entry;
- _tmp6_ = gtk_entry_get_text (_tmp5_);
- _tmp7_ = _tmp6_;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp4_, _tmp7_);
- }
- static void
- ____lambda83__gtk_editable_changed (GtkEditable* _sender,
- gpointer self)
- {
- ___lambda83_ ((QueryRow*) self);
- }
- static void
- ___lambda84_ (QueryRow* self)
- {
- g_signal_emit (self, query_row_signals[QUERY_ROW_SEARCH_SIGNAL], 0);
- }
- static void
- ____lambda84__gtk_entry_activate (GtkEntry* _sender,
- gpointer self)
- {
- ___lambda84_ ((QueryRow*) self);
- }
- static gboolean
- ___lambda85_ (QueryRow* self)
- {
- gboolean result = FALSE;
- GtkPopover* _tmp0_;
- _tmp0_ = self->priv->tpop;
- gtk_widget_show_all ((GtkWidget*) _tmp0_);
- result = TRUE;
- return result;
- }
- static gboolean
- ____lambda85__gtk_widget_button_press_event (GtkWidget* _sender,
- GdkEventButton* event,
- gpointer self)
- {
- gboolean result;
- result = ___lambda85_ ((QueryRow*) self);
- return result;
- }
- static void
- ___lambda86_ (Block5Data* _data5_)
- {
- QueryRow* self;
- FilterText* _tmp0_;
- GtkComboBoxText* _tmp1_;
- gchar* _tmp2_;
- gchar* _tmp3_;
- GtkLabel* _tmp4_;
- GtkLabel* _tmp5_;
- FilterText* _tmp6_;
- const gchar* _tmp7_;
- const gchar* _tmp8_;
- self = _data5_->self;
- _tmp0_ = self->priv->text;
- _tmp1_ = _data5_->text_combo;
- _tmp2_ = gtk_combo_box_text_get_active_text (_tmp1_);
- _tmp3_ = _tmp2_;
- filter_text_set_encoding (_tmp0_, _tmp3_);
- _g_free0 (_tmp3_);
- _tmp4_ = self->priv->text_enc;
- _tmp5_ = self->priv->text_enc;
- _tmp6_ = self->priv->text;
- _tmp7_ = filter_text_get_encoding (_tmp6_);
- _tmp8_ = _tmp7_;
- gtk_label_set_label (_tmp5_, _tmp8_);
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp4_, _tmp8_);
- }
- static void
- ____lambda86__gtk_combo_box_changed (GtkComboBox* _sender,
- gpointer self)
- {
- ___lambda86_ (self);
- }
- static void
- ___lambda87_ (QueryRow* self)
- {
- FilterText* _tmp0_;
- GtkCheckButton* _tmp1_;
- gboolean _tmp2_;
- gboolean _tmp3_;
- _tmp0_ = self->priv->text;
- _tmp1_ = self->priv->text_case;
- _tmp2_ = gtk_toggle_button_get_active ((GtkToggleButton*) _tmp1_);
- _tmp3_ = _tmp2_;
- filter_text_set_case_sensetive (_tmp0_, _tmp3_);
- }
- static void
- ____lambda87__gtk_toggle_button_toggled (GtkToggleButton* _sender,
- gpointer self)
- {
- ___lambda87_ ((QueryRow*) self);
- }
- static void
- ___lambda88_ (QueryRow* self)
- {
- GtkEntry* _tmp0_;
- GtkEntry* _tmp1_;
- const gchar* _tmp2_;
- const gchar* _tmp3_;
- gchar* _tmp4_;
- gchar* _tmp5_;
- FilterBin* _tmp6_;
- GtkEntry* _tmp7_;
- const gchar* _tmp8_;
- const gchar* _tmp9_;
- GtkEntry* _tmp10_;
- GtkEntry* _tmp11_;
- const gchar* _tmp12_;
- const gchar* _tmp13_;
- _tmp0_ = self->priv->bin_entry;
- _tmp1_ = self->priv->bin_entry;
- _tmp2_ = gtk_entry_get_text (_tmp1_);
- _tmp3_ = _tmp2_;
- _tmp4_ = query_row_check_hex (self, _tmp3_);
- _tmp5_ = _tmp4_;
- gtk_entry_set_text (_tmp0_, _tmp5_);
- _g_free0 (_tmp5_);
- _tmp6_ = self->priv->bin;
- _tmp7_ = self->priv->bin_entry;
- _tmp8_ = gtk_entry_get_text (_tmp7_);
- _tmp9_ = _tmp8_;
- filter_bin_set_bin (_tmp6_, _tmp9_);
- _tmp10_ = self->priv->bin_entry;
- _tmp11_ = self->priv->bin_entry;
- _tmp12_ = gtk_entry_get_text (_tmp11_);
- _tmp13_ = _tmp12_;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp10_, _tmp13_);
- }
- static void
- ____lambda88__gtk_editable_changed (GtkEditable* _sender,
- gpointer self)
- {
- ___lambda88_ ((QueryRow*) self);
- }
- static gboolean
- ___lambda89_ (QueryRow* self)
- {
- gboolean result = FALSE;
- GtkEntry* _tmp0_;
- const gchar* _tmp1_;
- const gchar* _tmp2_;
- gint _tmp3_;
- gint _tmp4_;
- _tmp0_ = self->priv->bin_entry;
- _tmp1_ = gtk_entry_get_text (_tmp0_);
- _tmp2_ = _tmp1_;
- _tmp3_ = strlen (_tmp2_);
- _tmp4_ = _tmp3_;
- if ((_tmp4_ % 2) == 1) {
- GtkEntry* _tmp5_;
- GtkEntry* _tmp6_;
- const gchar* _tmp7_;
- const gchar* _tmp8_;
- gchar* _tmp9_;
- gchar* _tmp10_;
- _tmp5_ = self->priv->bin_entry;
- _tmp6_ = self->priv->bin_entry;
- _tmp7_ = gtk_entry_get_text (_tmp6_);
- _tmp8_ = _tmp7_;
- _tmp9_ = g_strconcat ("0", _tmp8_, NULL);
- _tmp10_ = _tmp9_;
- gtk_entry_set_text (_tmp5_, _tmp10_);
- _g_free0 (_tmp10_);
- }
- result = FALSE;
- return result;
- }
- static gboolean
- ____lambda89__gtk_widget_focus_out_event (GtkWidget* _sender,
- GdkEventFocus* event,
- gpointer self)
- {
- gboolean result;
- result = ___lambda89_ ((QueryRow*) self);
- return result;
- }
- static void
- ___lambda90_ (QueryRow* self)
- {
- g_signal_emit (self, query_row_signals[QUERY_ROW_SEARCH_SIGNAL], 0);
- }
- static void
- ____lambda90__gtk_entry_activate (GtkEntry* _sender,
- gpointer self)
- {
- ___lambda90_ ((QueryRow*) self);
- }
- static void
- ___lambda91_ (QueryRow* self,
- GtkEntryIconPosition pos,
- GdkEventButton* event)
- {
- g_return_if_fail (event != NULL);
- if (pos == GTK_ENTRY_ICON_SECONDARY) {
- GtkEntry* _tmp0_;
- _tmp0_ = self->priv->bin_entry;
- gtk_entry_set_text (_tmp0_, "");
- }
- }
- static void
- ____lambda91__gtk_entry_icon_press (GtkEntry* _sender,
- GtkEntryIconPosition icon_pos,
- GdkEventButton* event,
- gpointer self)
- {
- ___lambda91_ ((QueryRow*) self, icon_pos, event);
- }
- static void
- query_row_create_type_widgets (QueryRow* self)
- {
- gint i = 0;
- gchar* clipboard_text = NULL;
- gchar* _tmp0_;
- GdkDisplay* display = NULL;
- FileFinderWindow* _tmp1_;
- GdkDisplay* _tmp2_;
- GdkDisplay* _tmp3_;
- GtkClipboard* clipboard = NULL;
- GdkDisplay* _tmp4_;
- GtkClipboard* _tmp5_;
- GtkClipboard* _tmp6_;
- GtkBox* _tmp7_;
- GtkBox* _tmp9_;
- GtkBox* _tmp10_;
- GtkComboBoxText* _tmp11_;
- gint _tmp12_;
- gint _tmp13_;
- GtkBox* _tmp223_;
- g_return_if_fail (self != NULL);
- i = 0;
- _tmp0_ = g_strdup ("");
- clipboard_text = _tmp0_;
- _tmp1_ = filefinder_window;
- _tmp2_ = gtk_widget_get_display ((GtkWidget*) _tmp1_);
- _tmp3_ = _g_object_ref0 (_tmp2_);
- display = _tmp3_;
- _tmp4_ = display;
- _tmp5_ = gtk_clipboard_get_for_display (_tmp4_, GDK_SELECTION_CLIPBOARD);
- _tmp6_ = _g_object_ref0 (_tmp5_);
- clipboard = _tmp6_;
- _tmp7_ = self->priv->hbox;
- if (_tmp7_ != NULL) {
- GtkBox* _tmp8_;
- _tmp8_ = self->priv->hbox;
- gtk_widget_destroy ((GtkWidget*) _tmp8_);
- }
- _tmp9_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
- g_object_ref_sink (_tmp9_);
- _g_object_unref0 (self->priv->hbox);
- self->priv->hbox = _tmp9_;
- _tmp10_ = self->priv->hbox;
- gtk_box_pack_start ((GtkBox*) self, (GtkWidget*) _tmp10_, TRUE, TRUE, (guint) 0);
- _tmp11_ = self->priv->combo_type;
- _tmp12_ = gtk_combo_box_get_active ((GtkComboBox*) _tmp11_);
- _tmp13_ = _tmp12_;
- switch (_tmp13_) {
- case TYPES_LOCATION:
- {
- FilterLocation* _tmp14_;
- Filter* _tmp15_;
- FilterLocation* _tmp16_;
- FilterLocation* _tmp17_;
- const gchar* _tmp18_;
- GtkFileChooserButton* _tmp19_;
- GtkFileChooserButton* _tmp20_;
- FilterLocation* _tmp21_;
- const gchar* _tmp22_;
- const gchar* _tmp23_;
- GtkBox* _tmp24_;
- GtkFileChooserButton* _tmp25_;
- GtkFileChooserButton* _tmp26_;
- GtkCheckButton* _tmp27_;
- GtkCheckButton* _tmp28_;
- GtkCheckButton* _tmp29_;
- GtkBox* _tmp30_;
- GtkCheckButton* _tmp31_;
- GtkCheckButton* _tmp32_;
- _tmp14_ = filter_location_new ();
- _g_object_unref0 (self->location);
- self->location = _tmp14_;
- _tmp15_ = self->priv->_filter;
- _tmp16_ = self->location;
- filter_set_filter_value (_tmp15_, (GObject*) _tmp16_);
- _tmp17_ = self->location;
- _tmp18_ = g_get_home_dir ();
- filter_location_set_folder (_tmp17_, _tmp18_);
- _tmp19_ = (GtkFileChooserButton*) gtk_file_chooser_button_new ("Select folder", GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
- g_object_ref_sink (_tmp19_);
- _g_object_unref0 (self->chooser);
- self->chooser = _tmp19_;
- _tmp20_ = self->chooser;
- _tmp21_ = self->location;
- _tmp22_ = filter_location_get_folder (_tmp21_);
- _tmp23_ = _tmp22_;
- gtk_file_chooser_set_current_folder ((GtkFileChooser*) _tmp20_, _tmp23_);
- _tmp24_ = self->priv->hbox;
- _tmp25_ = self->chooser;
- gtk_box_pack_start (_tmp24_, (GtkWidget*) _tmp25_, TRUE, TRUE, (guint) 0);
- _tmp26_ = self->chooser;
- g_signal_connect_object (_tmp26_, "file-set", (GCallback) ____lambda67__gtk_file_chooser_button_file_set, self, 0);
- _tmp27_ = (GtkCheckButton*) gtk_check_button_new ();
- g_object_ref_sink (_tmp27_);
- _g_object_unref0 (self->priv->chk_rec);
- self->priv->chk_rec = _tmp27_;
- _tmp28_ = self->priv->chk_rec;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp28_, "Recursively");
- _tmp29_ = self->priv->chk_rec;
- gtk_toggle_button_set_active ((GtkToggleButton*) _tmp29_, TRUE);
- _tmp30_ = self->priv->hbox;
- _tmp31_ = self->priv->chk_rec;
- gtk_container_add ((GtkContainer*) _tmp30_, (GtkWidget*) _tmp31_);
- _tmp32_ = self->priv->chk_rec;
- g_signal_connect_object ((GtkToggleButton*) _tmp32_, "toggled", (GCallback) ____lambda68__gtk_toggle_button_toggled, self, 0);
- break;
- }
- case TYPES_FILES:
- {
- FilterFiles* _tmp33_;
- Filter* _tmp34_;
- FilterFiles* _tmp35_;
- GtkButton* _tmp36_;
- GtkButton* _tmp37_;
- GtkButton* _tmp38_;
- GtkButton* _tmp39_;
- const gchar* _tmp40_;
- const gchar* _tmp41_;
- GtkButton* _tmp42_;
- GtkButton* _tmp43_;
- GtkBox* _tmp44_;
- GtkButton* _tmp45_;
- GtkButton* _tmp46_;
- _tmp33_ = filter_files_new ();
- _g_object_unref0 (self->files);
- self->files = _tmp33_;
- _tmp34_ = self->priv->_filter;
- _tmp35_ = self->files;
- filter_set_filter_value (_tmp34_, (GObject*) _tmp35_);
- _tmp36_ = (GtkButton*) gtk_button_new_from_icon_name ("document-open-symbolic", (GtkIconSize) GTK_ICON_SIZE_BUTTON);
- g_object_ref_sink (_tmp36_);
- _g_object_unref0 (self->files_btn);
- self->files_btn = _tmp36_;
- _tmp37_ = self->files_btn;
- gtk_button_set_label (_tmp37_, " None selected");
- _tmp38_ = self->files_btn;
- _tmp39_ = self->files_btn;
- _tmp40_ = gtk_button_get_label (_tmp39_);
- _tmp41_ = _tmp40_;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp38_, _tmp41_);
- _tmp42_ = self->files_btn;
- gtk_button_set_always_show_image (_tmp42_, TRUE);
- _tmp43_ = self->files_btn;
- g_object_set (_tmp43_, "xalign", (gfloat) 0, NULL);
- _tmp44_ = self->priv->hbox;
- _tmp45_ = self->files_btn;
- gtk_box_pack_start (_tmp44_, (GtkWidget*) _tmp45_, TRUE, TRUE, (guint) 0);
- _tmp46_ = self->files_btn;
- g_signal_connect_object (_tmp46_, "clicked", (GCallback) ____lambda69__gtk_button_clicked, self, 0);
- break;
- }
- case TYPES_MIMETYPE:
- {
- FilterMime* _tmp47_;
- Filter* _tmp48_;
- FilterMime* _tmp49_;
- FilterMime* _tmp50_;
- Preferences* _tmp51_;
- MimeGroup* _tmp52_;
- gint _tmp52__length1;
- MimeGroup* _tmp53_;
- gint _tmp53__length1;
- MimeGroup _tmp54_;
- const gchar* _tmp55_;
- Preferences* _tmp56_;
- MimeGroup* _tmp57_;
- gint _tmp57__length1;
- MimeGroup* _tmp58_;
- gint _tmp58__length1;
- MimeGroup _tmp59_;
- gchar** _tmp60_;
- gint _tmp60__length1;
- FilterMime* _tmp64_;
- MimeButton* _tmp65_;
- GtkBox* _tmp66_;
- MimeButton* _tmp67_;
- _tmp47_ = filter_mime_new ();
- _g_object_unref0 (self->priv->mime);
- self->priv->mime = _tmp47_;
- _tmp48_ = self->priv->_filter;
- _tmp49_ = self->priv->mime;
- filter_set_filter_value (_tmp48_, (GObject*) _tmp49_);
- _tmp50_ = self->priv->mime;
- _tmp51_ = filefinder_preferences;
- _tmp52_ = preferences_get_mime_type_groups (_tmp51_, &_tmp52__length1);
- _tmp53_ = _tmp52_;
- _tmp53__length1 = _tmp52__length1;
- _tmp54_ = _tmp53_[0];
- _tmp55_ = _tmp54_.name;
- filter_mime_set_name (_tmp50_, _tmp55_);
- _tmp56_ = filefinder_preferences;
- _tmp57_ = preferences_get_mime_type_groups (_tmp56_, &_tmp57__length1);
- _tmp58_ = _tmp57_;
- _tmp58__length1 = _tmp57__length1;
- _tmp59_ = _tmp58_[0];
- _tmp60_ = _tmp59_.mimes;
- _tmp60__length1 = _tmp59_.mimes_length1;
- {
- gchar** s_collection = NULL;
- gint s_collection_length1 = 0;
- gint _s_collection_size_ = 0;
- gint s_it = 0;
- s_collection = _tmp60_;
- s_collection_length1 = _tmp60__length1;
- for (s_it = 0; s_it < _tmp60__length1; s_it = s_it + 1) {
- gchar* _tmp61_;
- gchar* s = NULL;
- _tmp61_ = g_strdup (s_collection[s_it]);
- s = _tmp61_;
- {
- FilterMime* _tmp62_;
- const gchar* _tmp63_;
- _tmp62_ = self->priv->mime;
- _tmp63_ = s;
- filter_mime_add (_tmp62_, _tmp63_);
- _g_free0 (s);
- }
- }
- }
- _tmp64_ = self->priv->mime;
- _tmp65_ = mime_button_new (_tmp64_);
- g_object_ref_sink (_tmp65_);
- _g_object_unref0 (self->priv->mime_menu);
- self->priv->mime_menu = _tmp65_;
- _tmp66_ = self->priv->hbox;
- _tmp67_ = self->priv->mime_menu;
- gtk_box_pack_start (_tmp66_, (GtkWidget*) _tmp67_, TRUE, TRUE, (guint) 0);
- break;
- }
- case TYPES_FILEMASK:
- {
- FilterMask* _tmp68_;
- Filter* _tmp69_;
- FilterMask* _tmp70_;
- GtkEntry* _tmp71_;
- GtkBox* _tmp72_;
- GtkEntry* _tmp73_;
- GtkEntry* _tmp74_;
- GtkEntry* _tmp75_;
- GtkEntry* _tmp76_;
- GtkEntry* _tmp77_;
- GtkCheckButton* _tmp78_;
- GtkCheckButton* _tmp79_;
- GtkBox* _tmp80_;
- GtkCheckButton* _tmp81_;
- GtkCheckButton* _tmp82_;
- _tmp68_ = filter_mask_new ();
- _g_object_unref0 (self->priv->mask);
- self->priv->mask = _tmp68_;
- _tmp69_ = self->priv->_filter;
- _tmp70_ = self->priv->mask;
- filter_set_filter_value (_tmp69_, (GObject*) _tmp70_);
- _tmp71_ = (GtkEntry*) gtk_entry_new ();
- g_object_ref_sink (_tmp71_);
- _g_object_unref0 (self->priv->mask_entry);
- self->priv->mask_entry = _tmp71_;
- _tmp72_ = self->priv->hbox;
- _tmp73_ = self->priv->mask_entry;
- gtk_box_pack_start (_tmp72_, (GtkWidget*) _tmp73_, TRUE, TRUE, (guint) 0);
- _tmp74_ = self->priv->mask_entry;
- g_signal_connect_object ((GtkEditable*) _tmp74_, "changed", (GCallback) ____lambda70__gtk_editable_changed, self, 0);
- _tmp75_ = self->priv->mask_entry;
- g_signal_connect_object (_tmp75_, "activate", (GCallback) ____lambda71__gtk_entry_activate, self, 0);
- _tmp76_ = self->priv->mask_entry;
- gtk_entry_set_icon_from_icon_name (_tmp76_, GTK_ENTRY_ICON_SECONDARY, "edit-clear-symbolic");
- _tmp77_ = self->priv->mask_entry;
- g_signal_connect_object (_tmp77_, "icon-press", (GCallback) ____lambda72__gtk_entry_icon_press, self, 0);
- _tmp78_ = (GtkCheckButton*) gtk_check_button_new ();
- g_object_ref_sink (_tmp78_);
- _g_object_unref0 (self->priv->mask_case);
- self->priv->mask_case = _tmp78_;
- _tmp79_ = self->priv->mask_case;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp79_, "Case sensitive");
- _tmp80_ = self->priv->hbox;
- _tmp81_ = self->priv->mask_case;
- gtk_container_add ((GtkContainer*) _tmp80_, (GtkWidget*) _tmp81_);
- _tmp82_ = self->priv->mask_case;
- g_signal_connect_object ((GtkToggleButton*) _tmp82_, "toggled", (GCallback) ____lambda73__gtk_toggle_button_toggled, self, 0);
- break;
- }
- case TYPES_SIZE:
- {
- Block2Data* _data2_;
- FilterSize* _tmp83_;
- Filter* _tmp84_;
- FilterSize* _tmp85_;
- GtkComboBoxText* _tmp86_;
- GtkComboBoxText* _tmp90_;
- FilterSize* _tmp91_;
- date_operator _tmp92_;
- date_operator _tmp93_;
- GtkComboBoxText* _tmp94_;
- GtkBox* _tmp95_;
- GtkComboBoxText* _tmp96_;
- GtkEntry* _tmp97_;
- GtkEntry* _tmp98_;
- GtkEntry* _tmp99_;
- GtkEntry* _tmp100_;
- GtkBox* _tmp101_;
- GtkEntry* _tmp102_;
- GtkEntry* _tmp103_;
- GtkEntry* _tmp104_;
- GtkComboBoxText* _tmp105_;
- gchar* _tmp106_;
- gchar* _tmp107_;
- gchar* _tmp108_;
- gchar* _tmp109_;
- gchar** _tmp110_;
- GtkComboBoxText* _tmp114_;
- GtkBox* _tmp115_;
- GtkComboBoxText* _tmp116_;
- GtkComboBoxText* _tmp117_;
- GtkEntry* _tmp118_;
- GtkEntry* _tmp119_;
- _data2_ = g_slice_new0 (Block2Data);
- _data2_->_ref_count_ = 1;
- _data2_->self = g_object_ref (self);
- _tmp83_ = filter_size_new ();
- _g_object_unref0 (self->priv->size);
- self->priv->size = _tmp83_;
- _tmp84_ = self->priv->_filter;
- _tmp85_ = self->priv->size;
- filter_set_filter_value (_tmp84_, (GObject*) _tmp85_);
- _tmp86_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
- g_object_ref_sink (_tmp86_);
- _data2_->size_combo = _tmp86_;
- {
- const gchar** s_collection = NULL;
- gint s_collection_length1 = 0;
- gint _s_collection_size_ = 0;
- gint s_it = 0;
- s_collection = date_operators;
- s_collection_length1 = G_N_ELEMENTS (date_operators);
- for (s_it = 0; s_it < G_N_ELEMENTS (date_operators); s_it = s_it + 1) {
- gchar* _tmp87_;
- gchar* s = NULL;
- _tmp87_ = g_strdup (s_collection[s_it]);
- s = _tmp87_;
- {
- GtkComboBoxText* _tmp88_;
- const gchar* _tmp89_;
- _tmp88_ = _data2_->size_combo;
- _tmp89_ = s;
- gtk_combo_box_text_append_text (_tmp88_, _tmp89_);
- _g_free0 (s);
- }
- }
- }
- _tmp90_ = _data2_->size_combo;
- _tmp91_ = self->priv->size;
- _tmp92_ = filter_size_get_operator (_tmp91_);
- _tmp93_ = _tmp92_;
- gtk_combo_box_set_active ((GtkComboBox*) _tmp90_, (gint) _tmp93_);
- _tmp94_ = _data2_->size_combo;
- g_signal_connect_data ((GtkComboBox*) _tmp94_, "changed", (GCallback) ____lambda74__gtk_combo_box_changed, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
- _tmp95_ = self->priv->hbox;
- _tmp96_ = _data2_->size_combo;
- gtk_box_pack_start (_tmp95_, (GtkWidget*) _tmp96_, FALSE, FALSE, (guint) 0);
- _tmp97_ = (GtkEntry*) gtk_entry_new ();
- g_object_ref_sink (_tmp97_);
- _data2_->size_entry = _tmp97_;
- _tmp98_ = _data2_->size_entry;
- gtk_entry_set_text (_tmp98_, "0");
- _tmp99_ = _data2_->size_entry;
- gtk_entry_set_width_chars (_tmp99_, 1);
- _tmp100_ = _data2_->size_entry;
- gtk_entry_set_max_width_chars (_tmp100_, 2);
- _tmp101_ = self->priv->hbox;
- _tmp102_ = _data2_->size_entry;
- gtk_box_pack_start (_tmp101_, (GtkWidget*) _tmp102_, TRUE, TRUE, (guint) 0);
- _tmp103_ = _data2_->size_entry;
- gtk_entry_set_icon_from_icon_name (_tmp103_, GTK_ENTRY_ICON_SECONDARY, "edit-clear-symbolic");
- _tmp104_ = _data2_->size_entry;
- g_signal_connect_data (_tmp104_, "icon-press", (GCallback) ____lambda75__gtk_entry_icon_press, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
- _tmp105_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
- g_object_ref_sink (_tmp105_);
- _data2_->w_combo = _tmp105_;
- _tmp106_ = g_strdup ("B");
- _tmp107_ = g_strdup ("KiB");
- _tmp108_ = g_strdup ("MiB");
- _tmp109_ = g_strdup ("GiB");
- _tmp110_ = g_new0 (gchar*, 4 + 1);
- _tmp110_[0] = _tmp106_;
- _tmp110_[1] = _tmp107_;
- _tmp110_[2] = _tmp108_;
- _tmp110_[3] = _tmp109_;
- {
- gchar** s_collection = NULL;
- gint s_collection_length1 = 0;
- gint _s_collection_size_ = 0;
- gint s_it = 0;
- s_collection = _tmp110_;
- s_collection_length1 = 4;
- for (s_it = 0; s_it < 4; s_it = s_it + 1) {
- gchar* _tmp111_;
- gchar* s = NULL;
- _tmp111_ = g_strdup (s_collection[s_it]);
- s = _tmp111_;
- {
- GtkComboBoxText* _tmp112_;
- const gchar* _tmp113_;
- _tmp112_ = _data2_->w_combo;
- _tmp113_ = s;
- gtk_combo_box_text_append_text (_tmp112_, _tmp113_);
- _g_free0 (s);
- }
- }
- s_collection = (_vala_array_free (s_collection, s_collection_length1, (GDestroyNotify) g_free), NULL);
- }
- _tmp114_ = _data2_->w_combo;
- gtk_combo_box_set_active ((GtkComboBox*) _tmp114_, 2);
- _tmp115_ = self->priv->hbox;
- _tmp116_ = _data2_->w_combo;
- gtk_box_pack_start (_tmp115_, (GtkWidget*) _tmp116_, FALSE, FALSE, (guint) 0);
- _tmp117_ = _data2_->w_combo;
- g_signal_connect_data ((GtkComboBox*) _tmp117_, "changed", (GCallback) ____lambda76__gtk_combo_box_changed, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
- _tmp118_ = _data2_->size_entry;
- g_signal_connect_data ((GtkEditable*) _tmp118_, "changed", (GCallback) ____lambda77__gtk_editable_changed, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
- _tmp119_ = _data2_->size_entry;
- g_signal_connect_object (_tmp119_, "activate", (GCallback) ____lambda78__gtk_entry_activate, self, 0);
- block2_data_unref (_data2_);
- _data2_ = NULL;
- break;
- }
- case TYPES_MODIFIED:
- {
- Block3Data* _data3_;
- FilterModified* _tmp120_;
- Filter* _tmp121_;
- FilterModified* _tmp122_;
- GtkComboBoxText* _tmp123_;
- GtkComboBoxText* _tmp127_;
- FilterModified* _tmp128_;
- date_operator _tmp129_;
- date_operator _tmp130_;
- GtkComboBoxText* _tmp131_;
- GtkBox* _tmp132_;
- GtkComboBoxText* _tmp133_;
- GtkButton* _tmp134_;
- GtkButton* _tmp135_;
- GtkButton* _tmp136_;
- FilterModified* _tmp137_;
- GDateTime* _tmp138_;
- GDateTime* _tmp139_;
- FilterModified* _tmp140_;
- GDateTime* _tmp141_;
- GDateTime* _tmp142_;
- FilterModified* _tmp143_;
- GDateTime* _tmp144_;
- GDateTime* _tmp145_;
- gchar* _tmp146_;
- gchar* _tmp147_;
- GtkBox* _tmp148_;
- GtkButton* _tmp149_;
- GtkButton* _tmp150_;
- _data3_ = g_slice_new0 (Block3Data);
- _data3_->_ref_count_ = 1;
- _data3_->self = g_object_ref (self);
- _tmp120_ = filter_modified_new ();
- _g_object_unref0 (self->priv->modified);
- self->priv->modified = _tmp120_;
- _tmp121_ = self->priv->_filter;
- _tmp122_ = self->priv->modified;
- filter_set_filter_value (_tmp121_, (GObject*) _tmp122_);
- _tmp123_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
- g_object_ref_sink (_tmp123_);
- _data3_->mod_combo = _tmp123_;
- {
- const gchar** s_collection = NULL;
- gint s_collection_length1 = 0;
- gint _s_collection_size_ = 0;
- gint s_it = 0;
- s_collection = date_operators;
- s_collection_length1 = G_N_ELEMENTS (date_operators);
- for (s_it = 0; s_it < G_N_ELEMENTS (date_operators); s_it = s_it + 1) {
- gchar* _tmp124_;
- gchar* s = NULL;
- _tmp124_ = g_strdup (s_collection[s_it]);
- s = _tmp124_;
- {
- GtkComboBoxText* _tmp125_;
- const gchar* _tmp126_;
- _tmp125_ = _data3_->mod_combo;
- _tmp126_ = s;
- gtk_combo_box_text_append_text (_tmp125_, _tmp126_);
- _g_free0 (s);
- }
- }
- }
- _tmp127_ = _data3_->mod_combo;
- _tmp128_ = self->priv->modified;
- _tmp129_ = filter_modified_get_operator (_tmp128_);
- _tmp130_ = _tmp129_;
- gtk_combo_box_set_active ((GtkComboBox*) _tmp127_, (gint) _tmp130_);
- _tmp131_ = _data3_->mod_combo;
- g_signal_connect_data ((GtkComboBox*) _tmp131_, "changed", (GCallback) ____lambda79__gtk_combo_box_changed, block3_data_ref (_data3_), (GClosureNotify) block3_data_unref, 0);
- _tmp132_ = self->priv->hbox;
- _tmp133_ = _data3_->mod_combo;
- gtk_box_pack_start (_tmp132_, (GtkWidget*) _tmp133_, FALSE, FALSE, (guint) 0);
- _tmp134_ = (GtkButton*) gtk_button_new ();
- g_object_ref_sink (_tmp134_);
- _g_object_unref0 (self->priv->mod_btn);
- self->priv->mod_btn = _tmp134_;
- _tmp135_ = self->priv->mod_btn;
- g_object_set (_tmp135_, "xalign", (gfloat) 0, NULL);
- _tmp136_ = self->priv->mod_btn;
- _tmp137_ = self->priv->modified;
- _tmp138_ = filter_modified_get_date (_tmp137_);
- _tmp139_ = _tmp138_;
- _tmp140_ = self->priv->modified;
- _tmp141_ = filter_modified_get_date (_tmp140_);
- _tmp142_ = _tmp141_;
- _tmp143_ = self->priv->modified;
- _tmp144_ = filter_modified_get_date (_tmp143_);
- _tmp145_ = _tmp144_;
- _tmp146_ = g_strdup_printf ("%04d-%02d-%02d", g_date_time_get_year (_tmp139_), g_date_time_get_month (_tmp142_), g_date_time_get_day_of_month (_tmp145_));
- _tmp147_ = _tmp146_;
- gtk_button_set_label (_tmp136_, _tmp147_);
- _g_free0 (_tmp147_);
- _tmp148_ = self->priv->hbox;
- _tmp149_ = self->priv->mod_btn;
- gtk_box_pack_start (_tmp148_, (GtkWidget*) _tmp149_, TRUE, TRUE, (guint) 6);
- _tmp150_ = self->priv->mod_btn;
- g_signal_connect_object (_tmp150_, "clicked", (GCallback) ____lambda80__gtk_button_clicked, self, 0);
- block3_data_unref (_data3_);
- _data3_ = NULL;
- break;
- }
- case TYPES_TEXT:
- {
- Block5Data* _data5_;
- FilterText* _tmp151_;
- Filter* _tmp152_;
- FilterText* _tmp153_;
- GtkClipboard* _tmp154_;
- gchar* _tmp155_;
- const gchar* _tmp156_ = NULL;
- const gchar* _tmp157_;
- FilterText* _tmp158_;
- GtkEntry* _tmp159_;
- GtkEntry* _tmp160_;
- FilterText* _tmp161_;
- const gchar* _tmp162_;
- const gchar* _tmp163_;
- GtkEntry* _tmp164_;
- GtkEntry* _tmp165_;
- const gchar* _tmp166_;
- const gchar* _tmp167_;
- GtkEntry* _tmp168_;
- GtkEntry* _tmp169_;
- GtkBox* _tmp170_;
- GtkEntry* _tmp171_;
- GtkEntry* _tmp172_;
- GtkEntry* _tmp173_;
- GtkComboBoxText* _tmp174_;
- GtkComboBoxText* _tmp182_;
- GtkEventBox* ebox = NULL;
- GtkEventBox* _tmp183_;
- GtkBox* _tmp184_;
- GtkEventBox* _tmp185_;
- GtkLabel* _tmp186_;
- FilterText* _tmp187_;
- GtkLabel* _tmp188_;
- GtkLabel* _tmp189_;
- const gchar* _tmp190_;
- const gchar* _tmp191_;
- GtkEventBox* _tmp192_;
- GtkLabel* _tmp193_;
- GtkEventBox* _tmp194_;
- GtkPopover* _tmp195_;
- GtkPopover* _tmp196_;
- GtkComboBoxText* _tmp197_;
- GtkEventBox* _tmp198_;
- GtkComboBoxText* _tmp199_;
- GtkCheckButton* _tmp200_;
- GtkCheckButton* _tmp201_;
- GtkBox* _tmp202_;
- GtkCheckButton* _tmp203_;
- GtkCheckButton* _tmp204_;
- _data5_ = g_slice_new0 (Block5Data);
- _data5_->_ref_count_ = 1;
- _data5_->self = g_object_ref (self);
- _tmp151_ = filter_text_new ();
- _g_object_unref0 (self->priv->text);
- self->priv->text = _tmp151_;
- _tmp152_ = self->priv->_filter;
- _tmp153_ = self->priv->text;
- filter_set_filter_value (_tmp152_, (GObject*) _tmp153_);
- _tmp154_ = clipboard;
- _tmp155_ = gtk_clipboard_wait_for_text (_tmp154_);
- _g_free0 (clipboard_text);
- clipboard_text = _tmp155_;
- _tmp157_ = clipboard_text;
- _tmp156_ = _tmp157_;
- if (_tmp156_ == NULL) {
- _tmp156_ = "";
- }
- _tmp158_ = self->priv->text;
- filter_text_set_text (_tmp158_, _tmp156_);
- _tmp159_ = (GtkEntry*) gtk_entry_new ();
- g_object_ref_sink (_tmp159_);
- _g_object_unref0 (self->priv->text_entry);
- self->priv->text_entry = _tmp159_;
- _tmp160_ = self->priv->text_entry;
- _tmp161_ = self->priv->text;
- _tmp162_ = filter_text_get_text (_tmp161_);
- _tmp163_ = _tmp162_;
- gtk_entry_set_text (_tmp160_, _tmp163_);
- _tmp164_ = self->priv->text_entry;
- _tmp165_ = self->priv->text_entry;
- _tmp166_ = gtk_entry_get_text (_tmp165_);
- _tmp167_ = _tmp166_;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp164_, _tmp167_);
- _tmp168_ = self->priv->text_entry;
- gtk_entry_set_icon_from_icon_name (_tmp168_, GTK_ENTRY_ICON_SECONDARY, "edit-clear-symbolic");
- _tmp169_ = self->priv->text_entry;
- g_signal_connect_object (_tmp169_, "icon-press", (GCallback) ____lambda82__gtk_entry_icon_press, self, 0);
- _tmp170_ = self->priv->hbox;
- _tmp171_ = self->priv->text_entry;
- gtk_box_pack_start (_tmp170_, (GtkWidget*) _tmp171_, TRUE, TRUE, (guint) 0);
- _tmp172_ = self->priv->text_entry;
- g_signal_connect_object ((GtkEditable*) _tmp172_, "changed", (GCallback) ____lambda83__gtk_editable_changed, self, 0);
- _tmp173_ = self->priv->text_entry;
- g_signal_connect_object (_tmp173_, "activate", (GCallback) ____lambda84__gtk_entry_activate, self, 0);
- _tmp174_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
- g_object_ref_sink (_tmp174_);
- _data5_->text_combo = _tmp174_;
- i = 0;
- {
- const gchar** s_collection = NULL;
- gint s_collection_length1 = 0;
- gint _s_collection_size_ = 0;
- gint s_it = 0;
- s_collection = TEXT_encodings;
- s_collection_length1 = G_N_ELEMENTS (TEXT_encodings);
- for (s_it = 0; s_it < G_N_ELEMENTS (TEXT_encodings); s_it = s_it + 1) {
- gchar* _tmp175_;
- gchar* s = NULL;
- _tmp175_ = g_strdup (s_collection[s_it]);
- s = _tmp175_;
- {
- GtkComboBoxText* _tmp176_;
- const gchar* _tmp177_;
- const gchar* _tmp178_;
- gint _tmp181_;
- _tmp176_ = _data5_->text_combo;
- _tmp177_ = s;
- gtk_combo_box_text_append_text (_tmp176_, _tmp177_);
- _tmp178_ = s;
- if (g_strcmp0 (_tmp178_, "UTF-8") == 0) {
- GtkComboBoxText* _tmp179_;
- gint _tmp180_;
- _tmp179_ = _data5_->text_combo;
- _tmp180_ = i;
- gtk_combo_box_set_active ((GtkComboBox*) _tmp179_, _tmp180_);
- }
- _tmp181_ = i;
- i = _tmp181_ + 1;
- _g_free0 (s);
- }
- }
- }
- _tmp182_ = _data5_->text_combo;
- gtk_combo_box_set_wrap_width ((GtkComboBox*) _tmp182_, 4);
- _tmp183_ = (GtkEventBox*) gtk_event_box_new ();
- g_object_ref_sink (_tmp183_);
- ebox = _tmp183_;
- _tmp184_ = self->priv->hbox;
- _tmp185_ = ebox;
- gtk_box_pack_start (_tmp184_, (GtkWidget*) _tmp185_, FALSE, FALSE, (guint) 0);
- _tmp186_ = (GtkLabel*) gtk_label_new ("UTF-8");
- g_object_ref_sink (_tmp186_);
- _g_object_unref0 (self->priv->text_enc);
- self->priv->text_enc = _tmp186_;
- _tmp187_ = self->priv->text;
- _tmp188_ = self->priv->text_enc;
- _tmp189_ = self->priv->text_enc;
- _tmp190_ = gtk_label_get_label (_tmp189_);
- _tmp191_ = _tmp190_;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp188_, _tmp191_);
- filter_text_set_encoding (_tmp187_, _tmp191_);
- _tmp192_ = ebox;
- _tmp193_ = self->priv->text_enc;
- gtk_container_add ((GtkContainer*) _tmp192_, (GtkWidget*) _tmp193_);
- _tmp194_ = ebox;
- _tmp195_ = (GtkPopover*) gtk_popover_new ((GtkWidget*) _tmp194_);
- g_object_ref_sink (_tmp195_);
- _g_object_unref0 (self->priv->tpop);
- self->priv->tpop = _tmp195_;
- _tmp196_ = self->priv->tpop;
- _tmp197_ = _data5_->text_combo;
- gtk_container_add ((GtkContainer*) _tmp196_, (GtkWidget*) _tmp197_);
- _tmp198_ = ebox;
- g_signal_connect_object ((GtkWidget*) _tmp198_, "button-press-event", (GCallback) ____lambda85__gtk_widget_button_press_event, self, 0);
- _tmp199_ = _data5_->text_combo;
- g_signal_connect_data ((GtkComboBox*) _tmp199_, "changed", (GCallback) ____lambda86__gtk_combo_box_changed, block5_data_ref (_data5_), (GClosureNotify) block5_data_unref, 0);
- _tmp200_ = (GtkCheckButton*) gtk_check_button_new ();
- g_object_ref_sink (_tmp200_);
- _g_object_unref0 (self->priv->text_case);
- self->priv->text_case = _tmp200_;
- _tmp201_ = self->priv->text_case;
- gtk_widget_set_tooltip_text ((GtkWidget*) _tmp201_, "Case sensitive");
- _tmp202_ = self->priv->hbox;
- _tmp203_ = self->priv->text_case;
- gtk_container_add ((GtkContainer*) _tmp202_, (GtkWidget*) _tmp203_);
- _tmp204_ = self->priv->text_case;
- g_signal_connect_object ((GtkToggleButton*) _tmp204_, "toggled", (GCallback) ____lambda87__gtk_toggle_button_toggled, self, 0);
- _g_object_unref0 (ebox);
- block5_data_unref (_data5_);
- _data5_ = NULL;
- break;
- }
- case TYPES_BINARY:
- {
- FilterBin* _tmp205_;
- Filter* _tmp206_;
- FilterBin* _tmp207_;
- GtkBox* _tmp208_;
- GtkLabel* _tmp209_;
- GtkLabel* _tmp210_;
- GtkEntry* _tmp211_;
- GtkBox* _tmp212_;
- GtkEntry* _tmp213_;
- GtkEntry* _tmp214_;
- GtkEntry* _tmp215_;
- GtkEntry* _tmp216_;
- GtkEntry* _tmp217_;
- GtkEntry* _tmp218_;
- _tmp205_ = filter_bin_new ();
- _g_object_unref0 (self->priv->bin);
- self->priv->bin = _tmp205_;
- _tmp206_ = self->priv->_filter;
- _tmp207_ = self->priv->bin;
- filter_set_filter_value (_tmp206_, (GObject*) _tmp207_);
- _tmp208_ = self->priv->hbox;
- _tmp209_ = (GtkLabel*) gtk_label_new ("0x");
- g_object_ref_sink (_tmp209_);
- _tmp210_ = _tmp209_;
- gtk_box_pack_start (_tmp208_, (GtkWidget*) _tmp210_, FALSE, FALSE, (guint) 0);
- _g_object_unref0 (_tmp210_);
- _tmp211_ = (GtkEntry*) gtk_entry_new ();
- g_object_ref_sink (_tmp211_);
- _g_object_unref0 (self->priv->bin_entry);
- self->priv->bin_entry = _tmp211_;
- _tmp212_ = self->priv->hbox;
- _tmp213_ = self->priv->bin_entry;
- gtk_box_pack_start (_tmp212_, (GtkWidget*) _tmp213_, TRUE, TRUE, (guint) 0);
- _tmp214_ = self->priv->bin_entry;
- g_signal_connect_object ((GtkEditable*) _tmp214_, "changed", (GCallback) ____lambda88__gtk_editable_changed, self, 0);
- _tmp215_ = self->priv->bin_entry;
- g_signal_connect_object ((GtkWidget*) _tmp215_, "focus-out-event", (GCallback) ____lambda89__gtk_widget_focus_out_event, self, 0);
- _tmp216_ = self->priv->bin_entry;
- g_signal_connect_object (_tmp216_, "activate", (GCallback) ____lambda90__gtk_entry_activate, self, 0);
- _tmp217_ = self->priv->bin_entry;
- gtk_entry_set_icon_from_icon_name (_tmp217_, GTK_ENTRY_ICON_SECONDARY, "edit-clear-symbolic");
- _tmp218_ = self->priv->bin_entry;
- g_signal_connect_object (_tmp218_, "icon-press", (GCallback) ____lambda91__gtk_entry_icon_press, self, 0);
- break;
- }
- default:
- {
- Filter* _tmp219_;
- GtkLabel* label = NULL;
- GtkLabel* _tmp220_;
- GtkBox* _tmp221_;
- GtkLabel* _tmp222_;
- _tmp219_ = self->priv->_filter;
- filter_set_filter_type (_tmp219_, TYPES_NONE);
- _tmp220_ = (GtkLabel*) gtk_label_new ("none");
- g_object_ref_sink (_tmp220_);
- label = _tmp220_;
- _tmp221_ = self->priv->hbox;
- _tmp222_ = label;
- gtk_container_add ((GtkContainer*) _tmp221_, (GtkWidget*) _tmp222_);
- _g_object_unref0 (label);
- break;
- }
- }
- _tmp223_ = self->priv->hbox;
- gtk_widget_show_all ((GtkWidget*) _tmp223_);
- _g_object_unref0 (clipboard);
- _g_object_unref0 (display);
- _g_free0 (clipboard_text);
- }
- static gboolean
- string_get_next_char (const gchar* self,
- gint* index,
- gunichar* c)
- {
- gunichar _vala_c = 0U;
- gboolean result = FALSE;
- gunichar _tmp0_;
- g_return_val_if_fail (self != NULL, FALSE);
- _vala_c = g_utf8_get_char (((gchar*) self) + (*index));
- _tmp0_ = _vala_c;
- if (_tmp0_ != ((gunichar) 0)) {
- gchar* _tmp1_;
- _tmp1_ = g_utf8_next_char (((gchar*) self) + (*index));
- *index = (gint) (_tmp1_ - ((gchar*) self));
- result = TRUE;
- if (c) {
- *c = _vala_c;
- }
- return result;
- } else {
- result = FALSE;
- if (c) {
- *c = _vala_c;
- }
- return result;
- }
- if (c) {
- *c = _vala_c;
- }
- }
- static gchar*
- g_unichar_to_string (gunichar self)
- {
- gchar* result = NULL;
- gchar* str = NULL;
- gchar* _tmp0_;
- const gchar* _tmp1_;
- _tmp0_ = g_new0 (gchar, 7);
- str = (gchar*) _tmp0_;
- _tmp1_ = str;
- g_unichar_to_utf8 (self, _tmp1_);
- result = str;
- return result;
- }
- static gchar*
- query_row_check_hex (QueryRow* self,
- const gchar* txt)
- {
- gchar* result = NULL;
- gchar* res = NULL;
- gchar* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gchar* symb = NULL;
- gchar* _tmp3_;
- gunichar c = 0U;
- gint index = 0;
- g_return_val_if_fail (self != NULL, NULL);
- g_return_val_if_fail (txt != NULL, NULL);
- _tmp0_ = g_strdup ("");
- res = _tmp0_;
- if (txt == NULL) {
- result = res;
- return result;
- }
- _tmp1_ = strlen (txt);
- _tmp2_ = _tmp1_;
- if (_tmp2_ == 0) {
- result = res;
- return result;
- }
- _tmp3_ = g_strdup ("0123456789ABCDEF");
- symb = _tmp3_;
- c = (gunichar) 0;
- index = 0;
- {
- gint i = 0;
- i = 0;
- {
- gboolean _tmp4_ = FALSE;
- _tmp4_ = TRUE;
- while (TRUE) {
- gunichar _tmp6_ = 0U;
- gboolean _tmp7_;
- const gchar* _tmp8_;
- gunichar _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gchar* _tmp12_;
- gchar* _tmp13_;
- gboolean _tmp14_;
- const gchar* _tmp15_;
- gunichar _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- gchar* _tmp20_;
- gchar* _tmp21_;
- if (!_tmp4_) {
- gint _tmp5_;
- _tmp5_ = i;
- i = _tmp5_ + 1;
- }
- _tmp4_ = FALSE;
- _tmp7_ = string_get_next_char (txt, &index, &_tmp6_);
- c = _tmp6_;
- if (!_tmp7_) {
- break;
- }
- _tmp8_ = symb;
- _tmp9_ = c;
- _tmp10_ = g_unichar_to_string (_tmp9_);
- _tmp11_ = _tmp10_;
- _tmp12_ = g_utf8_strup (_tmp11_, (gssize) -1);
- _tmp13_ = _tmp12_;
- _tmp14_ = string_index_of (_tmp8_, _tmp13_, 0) == -1;
- _g_free0 (_tmp13_);
- _g_free0 (_tmp11_);
- if (_tmp14_) {
- result = res;
- _g_free0 (symb);
- return result;
- }
- _tmp15_ = res;
- _tmp16_ = c;
- _tmp17_ = g_unichar_to_string (_tmp16_);
- _tmp18_ = _tmp17_;
- _tmp19_ = g_utf8_strup (_tmp18_, (gssize) -1);
- _tmp20_ = _tmp19_;
- _tmp21_ = g_strconcat (_tmp15_, _tmp20_, NULL);
- _g_free0 (res);
- res = _tmp21_;
- _g_free0 (_tmp20_);
- _g_free0 (_tmp18_);
- }
- }
- }
- result = res;
- _g_free0 (symb);
- return result;
- }
- static gunichar
- string_get_char (const gchar* self,
- glong index)
- {
- gunichar result = 0U;
- g_return_val_if_fail (self != NULL, 0U);
- result = g_utf8_get_char (((gchar*) self) + index);
- return result;
- }
- static gchar*
- query_row_check_dec (QueryRow* self,
- const gchar* txt)
- {
- gchar* result = NULL;
- gchar* res = NULL;
- gchar* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- gchar* symb = NULL;
- gchar* _tmp3_;
- gunichar c = 0U;
- gint index = 0;
- const gchar* _tmp20_;
- gint _tmp21_;
- gint _tmp22_;
- g_return_val_if_fail (self != NULL, NULL);
- g_return_val_if_fail (txt != NULL, NULL);
- _tmp0_ = g_strdup ("");
- res = _tmp0_;
- if (txt == NULL) {
- result = res;
- return result;
- }
- _tmp1_ = strlen (txt);
- _tmp2_ = _tmp1_;
- if (_tmp2_ == 0) {
- result = res;
- return result;
- }
- _tmp3_ = g_strdup ("0123456789");
- symb = _tmp3_;
- c = (gunichar) 0;
- index = 0;
- {
- gint i = 0;
- i = 0;
- {
- gboolean _tmp4_ = FALSE;
- _tmp4_ = TRUE;
- while (TRUE) {
- gunichar _tmp6_ = 0U;
- gboolean _tmp7_;
- const gchar* _tmp8_;
- gunichar _tmp9_;
- gchar* _tmp10_;
- gchar* _tmp11_;
- gboolean _tmp12_;
- const gchar* _tmp13_;
- gunichar _tmp14_;
- gchar* _tmp15_;
- gchar* _tmp16_;
- gchar* _tmp17_;
- gchar* _tmp18_;
- gchar* _tmp19_;
- if (!_tmp4_) {
- gint _tmp5_;
- _tmp5_ = i;
- i = _tmp5_ + 1;
- }
- _tmp4_ = FALSE;
- _tmp7_ = string_get_next_char (txt, &index, &_tmp6_);
- c = _tmp6_;
- if (!_tmp7_) {
- break;
- }
- _tmp8_ = symb;
- _tmp9_ = c;
- _tmp10_ = g_unichar_to_string (_tmp9_);
- _tmp11_ = _tmp10_;
- _tmp12_ = string_index_of (_tmp8_, _tmp11_, 0) == -1;
- _g_free0 (_tmp11_);
- if (_tmp12_) {
- result = res;
- _g_free0 (symb);
- return result;
- }
- _tmp13_ = res;
- _tmp14_ = c;
- _tmp15_ = g_unichar_to_string (_tmp14_);
- _tmp16_ = _tmp15_;
- _tmp17_ = g_utf8_strup (_tmp16_, (gssize) -1);
- _tmp18_ = _tmp17_;
- _tmp19_ = g_strconcat (_tmp13_, _tmp18_, NULL);
- _g_free0 (res);
- res = _tmp19_;
- _g_free0 (_tmp18_);
- _g_free0 (_tmp16_);
- }
- }
- }
- _tmp20_ = res;
- _tmp21_ = strlen (_tmp20_);
- _tmp22_ = _tmp21_;
- if (_tmp22_ > 1) {
- const gchar* _tmp23_;
- gchar* _tmp24_;
- gchar* _tmp25_;
- gboolean _tmp26_;
- _tmp23_ = res;
- _tmp24_ = g_unichar_to_string (string_get_char (_tmp23_, (glong) 0));
- _tmp25_ = _tmp24_;
- _tmp26_ = g_strcmp0 (_tmp25_, "0") == 0;
- _g_free0 (_tmp25_);
- if (_tmp26_) {
- const gchar* _tmp27_;
- gchar* _tmp28_;
- _tmp27_ = res;
- _tmp28_ = string_substring (_tmp27_, (glong) 1, (glong) -1);
- _g_free0 (res);
- res = _tmp28_;
- }
- }
- result = res;
- _g_free0 (symb);
- return result;
- }
- Filter*
- query_row_get_filter (QueryRow* self)
- {
- Filter* result;
- Filter* _tmp0_;
- g_return_val_if_fail (self != NULL, NULL);
- _tmp0_ = self->priv->_filter;
- result = _tmp0_;
- return result;
- }
- types
- query_row_get_row_type (QueryRow* self)
- {
- types result;
- GtkComboBoxText* _tmp0_;
- gint _tmp1_;
- gint _tmp2_;
- g_return_val_if_fail (self != NULL, 0);
- _tmp0_ = self->priv->combo_type;
- _tmp1_ = gtk_combo_box_get_active ((GtkComboBox*) _tmp0_);
- _tmp2_ = _tmp1_;
- result = (types) _tmp2_;
- return result;
- }
- void
- query_row_set_row_type (QueryRow* self,
- types value)
- {
- GtkComboBoxText* _tmp0_;
- g_return_if_fail (self != NULL);
- _tmp0_ = self->priv->combo_type;
- gtk_combo_box_set_active ((GtkComboBox*) _tmp0_, (gint) value);
- g_object_notify_by_pspec ((GObject *) self, query_row_properties[QUERY_ROW_ROW_TYPE_PROPERTY]);
- }
- static void
- query_row_class_init (QueryRowClass * klass)
- {
- query_row_parent_class = g_type_class_peek_parent (klass);
- g_type_class_add_private (klass, sizeof (QueryRowPrivate));
- G_OBJECT_CLASS (klass)->get_property = _vala_query_row_get_property;
- G_OBJECT_CLASS (klass)->set_property = _vala_query_row_set_property;
- G_OBJECT_CLASS (klass)->finalize = query_row_finalize;
- g_object_class_install_property (G_OBJECT_CLASS (klass), QUERY_ROW_FILTER_PROPERTY, query_row_properties[QUERY_ROW_FILTER_PROPERTY] = param_spec_filter ("filter", "filter", "filter", TYPE_FILTER, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
- g_object_class_install_property (G_OBJECT_CLASS (klass), QUERY_ROW_ROW_TYPE_PROPERTY, query_row_properties[QUERY_ROW_ROW_TYPE_PROPERTY] = g_param_spec_enum ("row-type", "row-type", "row-type", TYPE_TYPES, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
- query_row_signals[QUERY_ROW_CLOSED_SIGNAL] = g_signal_new ("closed", TYPE_QUERY_ROW, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_QUERY_ROW);
- query_row_signals[QUERY_ROW_CHANGED_TYPE_SIGNAL] = g_signal_new ("changed-type", TYPE_QUERY_ROW, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, TYPE_QUERY_ROW);
- query_row_signals[QUERY_ROW_SEARCH_SIGNAL] = g_signal_new ("search", TYPE_QUERY_ROW, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
- }
- static void
- query_row_instance_init (QueryRow * self)
- {
- self->priv = QUERY_ROW_GET_PRIVATE (self);
- }
- static void
- query_row_finalize (GObject * obj)
- {
- QueryRow * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_QUERY_ROW, QueryRow);
- _g_object_unref0 (self->priv->combo_type);
- _g_object_unref0 (self->priv->hbox);
- _filter_unref0 (self->priv->_filter);
- _g_object_unref0 (self->location);
- _g_object_unref0 (self->chooser);
- _g_object_unref0 (self->priv->chk_rec);
- _g_object_unref0 (self->files);
- _g_object_unref0 (self->files_btn);
- _g_object_unref0 (self->priv->mime);
- _g_object_unref0 (self->priv->mime_menu);
- _g_object_unref0 (self->priv->mask);
- _g_object_unref0 (self->priv->mask_entry);
- _g_object_unref0 (self->priv->mask_case);
- _g_object_unref0 (self->priv->modified);
- _g_object_unref0 (self->priv->mod_btn);
- _g_object_unref0 (self->priv->text);
- _g_object_unref0 (self->priv->text_entry);
- _g_object_unref0 (self->priv->text_enc);
- _g_object_unref0 (self->priv->text_case);
- _g_object_unref0 (self->priv->tpop);
- _g_object_unref0 (self->priv->bin);
- _g_object_unref0 (self->priv->bin_entry);
- _g_object_unref0 (self->priv->size);
- G_OBJECT_CLASS (query_row_parent_class)->finalize (obj);
- }
- GType
- query_row_get_type (void)
- {
- static volatile gsize query_row_type_id__volatile = 0;
- if (g_once_init_enter (&query_row_type_id__volatile)) {
- static const GTypeInfo g_define_type_info = { sizeof (QueryRowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) query_row_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (QueryRow), 0, (GInstanceInitFunc) query_row_instance_init, NULL };
- GType query_row_type_id;
- query_row_type_id = g_type_register_static (gtk_box_get_type (), "QueryRow", &g_define_type_info, 0);
- g_once_init_leave (&query_row_type_id__volatile, query_row_type_id);
- }
- return query_row_type_id__volatile;
- }
- static void
- _vala_query_row_get_property (GObject * object,
- guint property_id,
- GValue * value,
- GParamSpec * pspec)
- {
- QueryRow * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_QUERY_ROW, QueryRow);
- switch (property_id) {
- case QUERY_ROW_FILTER_PROPERTY:
- value_set_filter (value, query_row_get_filter (self));
- break;
- case QUERY_ROW_ROW_TYPE_PROPERTY:
- g_value_set_enum (value, query_row_get_row_type (self));
- break;
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- break;
- }
- }
- static void
- _vala_query_row_set_property (GObject * object,
- guint property_id,
- const GValue * value,
- GParamSpec * pspec)
- {
- QueryRow * self;
- self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_QUERY_ROW, QueryRow);
- switch (property_id) {
- case QUERY_ROW_ROW_TYPE_PROPERTY:
- query_row_set_row_type (self, g_value_get_enum (value));
- break;
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
- break;
- }
- }
- static void
- _vala_array_destroy (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
- {
- if ((array != NULL) && (destroy_func != NULL)) {
- int i;
- for (i = 0; i < array_length; i = i + 1) {
- if (((gpointer*) array)[i] != NULL) {
- destroy_func (((gpointer*) array)[i]);
- }
- }
- }
- }
- static void
- _vala_array_free (gpointer array,
- gint array_length,
- GDestroyNotify destroy_func)
- {
- _vala_array_destroy (array, array_length, destroy_func);
- g_free (array);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement