GList *dlist = NULL;
FileData *dir_fd;
GList *flist = NULL;
- gint still_have_a_file = FALSE;
+ gboolean still_have_a_file = FALSE;
DEBUG_1("maintainance check: %s", dir);
GList *list = NULL;
gchar *cachedir;
FileData *cachedir_fd;
- gint still_have_a_file = FALSE;
+ gboolean still_have_a_file = FALSE;
GList *work;
cachedir = g_build_filename(dir, GQ_CACHE_LOCAL_THUMB, NULL);
static gint canon_cr2_tiff_table(guchar *data, const guint len, guint offset, ExifByteOrder bo,
guint *image_offset)
{
- gint jpeg_encoding = FALSE;
+ gboolean jpeg_encoding = FALSE;
guint count;
guint i;
if (path)
{
const gchar *ext;
- gint match = FALSE;
+ gboolean match = FALSE;
gint i;
ext = strrchr(path, '.');
static void fullscreen_saver_deactivate(void)
{
- static gint checked = FALSE;
- static gint found = FALSE;
+ static gboolean checked = FALSE;
+ static gboolean found = FALSE;
if (!checked)
{
void layout_apply_options(LayoutWindow *lw, LayoutOptions *lop)
{
- gint refresh_style;
- gint refresh_lists;
+ gboolean refresh_style;
+ gboolean refresh_lists;
if (!layout_valid(&lw)) return;
/* FIXME: add other options too */
GList *list = NULL;
GList *remote_list = NULL;
GList *remote_errors = NULL;
- gint remote_do = FALSE;
+ gboolean remote_do = FALSE;
gchar *first_dir = NULL;
command_line = g_new0(CommandLine, 1);
gint slope1_x, slope1_y;
gint y;
gint t;
- gint middle = FALSE;
+ gboolean middle = FALSE;
if (!pb) return;
gdouble x1, gdouble y1, gdouble x2, gdouble y2,
gdouble *rx1, gdouble *ry1, gdouble *rx2, gdouble *ry2)
{
- gint flip = FALSE;
+ gboolean flip = FALSE;
gdouble d;
if (x1 > x2)
static void config_window_apply(void)
{
gint i;
- gint refresh = FALSE;
+ gboolean refresh = FALSE;
// config_parse_editor_entries(editor_name_entry, editor_command_entry);
// layout_edit_update_all();
static gint print_job_rgb_page_done(PrintWindow *pw)
{
gchar *pathl;
- gint ret = FALSE;
+ gboolean ret = FALSE;
if (!pw->job_pixbuf) return FALSE;
if (dpi < 25.0)
{
- static gint warned = FALSE;
+ static gboolean warned = FALSE;
gdouble fallback_dpi = 96.0;
if (!warned)
gdouble x, gdouble y, gdouble w, gdouble h,
gdouble offx, gdouble offy)
{
- gint success = FALSE;
+ gboolean success = FALSE;
if (w <= 0.0 || h <= 0.0) return TRUE;
gdouble x, gdouble y, gdouble width,
guint8 r, guint8 g, guint8 b)
{
- gint success = TRUE;
+ gboolean success = TRUE;
if (!text) return TRUE;
gint sw, gint sh, gint proof)
{
GString *string;
- gint space = FALSE;
- gint newline = FALSE;
+ gboolean space = FALSE;
+ gboolean newline = FALSE;
gint ret;
if (pw->text_fields == 0) return TRUE;
{
PrintWindow *pw = data;
GdkPixbuf *pixbuf;
- gint success = TRUE;
+ gboolean success = TRUE;
pixbuf = image_loader_get_pixbuf(il);
if (pixbuf)
gdouble proof_w, proof_h;
gdouble icon_w, icon_h;
gdouble scale;
- gint success = TRUE;
+ gboolean success = TRUE;
if (pw->proof_columns < 1 || pw->proof_rows < 1)
{
static gint print_job_init(PrintWindow *pw)
{
- gint success = FALSE;
+ gboolean success = FALSE;
pw->job_page = 0;
static gint print_job_finish(PrintWindow *pw)
{
- gint success = FALSE;
+ gboolean success = FALSE;
switch (pw->job_format)
{
static void print_output_set(PrintWindow *pw, PrintOutput output)
{
- gint use_file = FALSE;
- gint use_custom = FALSE;
- gint use_format = FALSE;
+ gboolean use_file = FALSE;
+ gboolean use_custom = FALSE;
+ gboolean use_format = FALSE;
pw->output = output;
static gint remote_client_send(RemoteConnection *rc, const gchar *text)
{
struct sigaction new_action, old_action;
- gint ret = FALSE;
+ gboolean ret = FALSE;
if (!rc || rc->server) return FALSE;
if (!text) return TRUE;
static void gr_list_add(const gchar *text, gpointer data)
{
RemoteData *remote_data = data;
- gint new = TRUE;
+ gboolean new = TRUE;
if (!remote_data->command_collection)
{
static RemoteCommandEntry *remote_command_find(const gchar *text, const gchar **offset)
{
- gint match = FALSE;
+ gboolean match = FALSE;
gint i;
i = 0;
GList *cmd_list, GList *collection_list)
{
RemoteConnection *rc;
- gint started = FALSE;
+ gboolean started = FALSE;
gchar *buf;
buf = g_build_filename(get_rc_dir(), ".command", NULL);
GString *command;
GList *work;
gint retry_count = 12;
- gint blank = FALSE;
+ gboolean blank = FALSE;
printf_term(_("Remote %s not running, starting..."), GQ_APPNAME);
{
GList *work;
const gchar *prefix;
- gint use_path = TRUE;
- gint sent = FALSE;
+ gboolean use_path = TRUE;
+ gboolean sent = FALSE;
work = remote_list;
while (work)
GtkTreeSelection *selection;
GList *slist;
GList *work;
- gint found = FALSE;
+ gboolean found = FALSE;
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(sd->result_view));
slist = gtk_tree_selection_get_selected_rows(selection, &store);
static gint search_result_keypress_cb(GtkWidget *widget, GdkEventKey *event, gpointer data)
{
SearchData *sd = data;
- gint stop_signal = FALSE;
+ gboolean stop_signal = FALSE;
GtkTreeModel *store;
GtkTreeSelection *selection;
GList *slist;
static gint search_window_keypress_cb(GtkWidget *widget, GdkEventKey *event, gpointer data)
{
SearchData *sd = data;
- gint stop_signal = FALSE;
+ gboolean stop_signal = FALSE;
if (event->state & GDK_CONTROL_MASK)
{
static gint search_file_do_extra(SearchData *sd, FileData *fd, gint *match,
gint *width, gint *height, gint *simval)
{
- gint new_data = FALSE;
- gint tmatch = TRUE;
- gint tested = FALSE;
+ gboolean new_data = FALSE;
+ gboolean tmatch = TRUE;
+ gboolean tested = FALSE;
if (!sd->img_cd)
{
static gint search_file_next(SearchData *sd)
{
FileData *fd;
- gint match = TRUE;
- gint tested = FALSE;
- gint extra_only = FALSE;
+ gboolean match = TRUE;
+ gboolean tested = FALSE;
+ gboolean extra_only = FALSE;
gint width = 0;
gint height = 0;
gint sim = 0;
if (sd->match_keywords == SEARCH_MATCH_ALL)
{
- gint found = TRUE;
+ gboolean found = TRUE;
needle = sd->search_keyword_list;
while (needle && found)
}
else if (sd->match_keywords == SEARCH_MATCH_ANY)
{
- gint found = FALSE;
+ gboolean found = FALSE;
needle = sd->search_keyword_list;
while (needle && !found)
}
else if (sd->match_keywords == SEARCH_MATCH_NONE)
{
- gint found = FALSE;
+ gboolean found = FALSE;
needle = sd->search_keyword_list;
while (needle && !found)
{
GList *list = NULL;
GList *dlist = NULL;
- gint success = FALSE;
+ gboolean success = FALSE;
sd->search_done_list = g_list_prepend(sd->search_done_list, fd);
static gint thumb_loader_std_fail_check(ThumbLoaderStd *tl)
{
gchar *fail_path;
- gint result = FALSE;
+ gboolean result = FALSE;
fail_path = thumb_loader_std_cache_path(tl, FALSE, NULL, TRUE);
if (isfile(fail_path))
{
ThumbValidate *tv = data;
GdkPixbuf *pixbuf;
- gint valid = FALSE;
+ gboolean valid = FALSE;
/* this function is called on success, so the pixbuf should not be a fallback*/
pixbuf = thumb_loader_std_get_pixbuf(tv->tl);
gint64 total = 0;
GList *list;
GList *work;
- gint sorted = FALSE;
- gint warned = FALSE;
+ gboolean sorted = FALSE;
+ gboolean warned = FALSE;
FileData *dir_fd;
dir_fd = file_data_new_simple(options->file_ops.safe_delete_path);
{
static GenericDialog *gd = NULL;
gchar *result = NULL;
- gint success = TRUE;
+ gboolean success = TRUE;
if (!isfile(path)) return FALSE;
static void encoding_dialog(const gchar *path)
{
- static gint warned_user = FALSE;
+ static gboolean warned_user = FALSE;
GenericDialog *gd;
GString *string;
const gchar *lc;
gint filetime_set(const gchar *s, time_t tval)
{
- gint ret = FALSE;
+ gboolean ret = FALSE;
if (tval > 0)
{
{
struct stat st;
gchar *sl, *tl;
- gint ret = FALSE;
+ gboolean ret = FALSE;
if (!s || !t) return FALSE;
gint move_file(const gchar *s, const gchar *t)
{
gchar *sl, *tl;
- gint ret = TRUE;
+ gboolean ret = TRUE;
if (!s || !t) return FALSE;
gchar *path;
gchar *namel;
gint p, l;
- gint ret = FALSE;
+ gboolean ret = FALSE;
if (!name) return FALSE;
path = g_strdup(getenv("PATH"));
p++;
if (p[0] == G_DIR_SEPARATOR || p[0] == '\0')
{
- gint end = TRUE;
+ gboolean end = TRUE;
if (p[0] != '\0')
{
gint popup_menu_position_clamp(GtkMenu *menu, gint *x, gint *y, gint height)
{
- gint adjusted = FALSE;
+ gboolean adjusted = FALSE;
gint w, h;
gint xw, xh;
gchar *path;
gchar *buf;
const gchar *tmp;
- gint from_text = FALSE;
+ gboolean from_text = FALSE;
tmp = gtk_entry_get_text(GTK_ENTRY(dd->entry));
if (!isname(tmp))
const gchar *entry_file;
gchar *entry_dir;
gchar *ptr;
- gint home_exp = FALSE;
+ gboolean home_exp = FALSE;
if (entry_text[0] == '\0')
{
else
{
gsize c = strlen(entry_file);
- gint done = FALSE;
+ gboolean done = FALSE;
gchar *test_file = poss->data;
while (!done)
static gint tab_completion_key_pressed(GtkWidget *widget, GdkEventKey *event, gpointer data)
{
TabCompData *td = data;
- gint stop_signal = FALSE;
+ gboolean stop_signal = FALSE;
switch (event->keyval)
{
GtkTreeModel *store;
GtkTreePath *tpath;
GtkTreePath *fpath;
- gint move = FALSE;
+ gboolean move = FALSE;
if (!iter) return FALSE;
{
GtkSettings *settings;
GObjectClass *klass;
- gint alternative_order = FALSE;
+ gboolean alternative_order = FALSE;
settings = gtk_settings_get_for_screen(gtk_widget_get_screen(widget));
klass = G_OBJECT_CLASS(GTK_SETTINGS_GET_CLASS(settings));
gint vd_set_fd(ViewDir *vd, FileData *dir_fd)
{
- gint ret = FALSE;
+ gboolean ret = FALSE;
file_data_unregister_notify_func(vd_notify_cb, vd);
gint vd_find_row(ViewDir *vd, FileData *fd, GtkTreeIter *iter)
{
- gint ret = FALSE;
+ gboolean ret = FALSE;
switch (vd->type)
{
GtkWidget *submenu;
GtkWidget *item;
gint active;
- gint rename_delete_active = FALSE;
- gint new_folder_active = FALSE;
+ gboolean rename_delete_active = FALSE;
+ gboolean new_folder_active = FALSE;
gint i;
active = (fd != NULL);
{
GList *list;
gint active;
- gint done = FALSE;
+ gboolean done = FALSE;
list = uri_filelist_from_text((gchar *)selection_data->data, TRUE);
if (!list) return;
gint vd_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data)
{
ViewDir *vd = data;
- gint ret = FALSE;
+ gboolean ret = FALSE;
switch (vd->type)
{
gint vd_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data)
{
ViewDir *vd = data;
- gint ret = FALSE;
+ gboolean ret = FALSE;
switch (vd->type)
{
GdkPixbuf *pixbuf;
const gchar *date = "";
fd = work->data;
- gint done = FALSE;
+ gboolean done = FALSE;
if (access_file(fd->path, R_OK | X_OK) && fd->name)
{
*----------------------------------------------------------------------------
*/
-static gint selection_is_ok = FALSE;
+static gboolean selection_is_ok = FALSE;
static gboolean vdtree_select_cb(GtkTreeSelection *selection, GtkTreeModel *store, GtkTreePath *tpath,
gboolean path_currently_selected, gpointer data)
static gint vf_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data)
{
ViewFile *vf = data;
- gint ret = FALSE;
+ gboolean ret = FALSE;
switch (vf->type)
{
static gint vf_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data)
{
ViewFile *vf = data;
- gint ret = FALSE;
+ gboolean ret = FALSE;
switch (vf->type)
{
static gint vf_release_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data)
{
ViewFile *vf = data;
- gint ret = FALSE;
+ gboolean ret = FALSE;
switch (vf->type)
{
gint vf_refresh(ViewFile *vf)
{
- gint ret = FALSE;
+ gboolean ret = FALSE;
switch (vf->type)
{
gint vf_set_fd(ViewFile *vf, FileData *dir_fd)
{
- gint ret = FALSE;
+ gboolean ret = FALSE;
switch (vf->type)
{
{
GtkTreeModel *store;
GtkTreeIter iter;
- gint valid = TRUE;
+ gboolean valid = TRUE;
store = gtk_tree_view_get_model(GTK_TREE_VIEW(vf->listview));
gtk_tree_model_get_iter(store, &iter, tpath);
static gint vficon_refresh_real(ViewFile *vf, gint keep_position)
{
- gint ret = TRUE;
+ gboolean ret = TRUE;
GList *work, *work_fd;
IconData *focus_id;
GList *new_filelist = NULL;
{
gint match;
FileData *fd = work->data;
- gint done = FALSE;
+ gboolean done = FALSE;
while (!done)
{
{
GtkTreeModel *store;
GtkTreeIter iter;
- gint valid = TRUE;
+ gboolean valid = TRUE;
store = gtk_tree_view_get_model(GTK_TREE_VIEW(vf->listview));
gtk_tree_model_get_iter(store, &iter, tpath);
GtkTreeSelection *selection;
GList *slist;
GList *work;
- gint found = FALSE;
+ gboolean found = FALSE;
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(vf->listview));
slist = gtk_tree_selection_get_selected_rows(selection, &store);
gint vflist_refresh(ViewFile *vf)
{
GList *old_list;
- gint ret = TRUE;
+ gboolean ret = TRUE;
old_list = vf->list;
vf->list = NULL;