cache_manager_cache_maintenance_load_dialog(widget, path);
}
-void cache_manager_show(void)
+void cache_manager_show()
{
GenericDialog *gd;
GtkWidget *group;
void cache_maintain_home(gboolean metadata, gboolean clear, GtkWidget *parent);
void cache_notify_cb(FileData *fd, NotifyType type, gpointer data);
-void cache_manager_show(void);
+void cache_manager_show();
void cache_maintain_home_remote(gboolean metadata, gboolean clear, GDestroyNotify *func);
void cache_manager_standard_process_remote(gboolean clear);
*-------------------------------------------------------------------
*/
-CacheData *cache_sim_data_new(void)
+CacheData *cache_sim_data_new()
{
CacheData *cd;
return ret;
}
-const gchar *get_thumbnails_cache_dir(void)
+const gchar *get_thumbnails_cache_dir()
{
static gchar *thumbnails_cache_dir = nullptr;
return thumbnails_cache_dir;
}
-const gchar *get_thumbnails_standard_cache_dir(void)
+const gchar *get_thumbnails_standard_cache_dir()
{
static gchar *thumbnails_standard_cache_dir = nullptr;
return thumbnails_standard_cache_dir;
}
-const gchar *get_metadata_cache_dir(void)
+const gchar *get_metadata_cache_dir()
{
static gchar *metadata_cache_dir = nullptr;
gboolean cache_time_valid(const gchar *cache, const gchar *path);
-CacheData *cache_sim_data_new(void);
+CacheData *cache_sim_data_new();
void cache_sim_data_free(CacheData *cd);
gboolean cache_sim_data_save(CacheData *cd);
gchar *cache_get_location(CacheType type, const gchar *source, gint include_name, mode_t *mode);
gchar *cache_find_location(CacheType type, const gchar *source);
-const gchar *get_thumbnails_cache_dir(void);
-const gchar *get_thumbnails_standard_cache_dir(void);
-const gchar *get_metadata_cache_dir(void);
+const gchar *get_thumbnails_cache_dir();
+const gchar *get_thumbnails_standard_cache_dir();
+const gchar *get_metadata_cache_dir();
#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
static gpointer parent_class;
GType
-gqv_cell_renderer_icon_get_type(void)
+gqv_cell_renderer_icon_get_type()
{
static GType cell_icon_type = 0;
* Return value: the new cell renderer
**/
GtkCellRenderer *
-gqv_cell_renderer_icon_new(void)
+gqv_cell_renderer_icon_new()
{
return static_cast<GtkCellRenderer *>(g_object_new(GQV_TYPE_CELL_RENDERER_ICON, nullptr));
}
void (*toggled)(GQvCellRendererIcon *cell_renderer, const gchar *path);
/* Padding for future expansion */
- void (*_gtk_reserved1)(void);
- void (*_gtk_reserved2)(void);
- void (*_gtk_reserved3)(void);
- void (*_gtk_reserved4)(void);
+ void (*_gtk_reserved1)();
+ void (*_gtk_reserved2)();
+ void (*_gtk_reserved3)();
+ void (*_gtk_reserved4)();
};
-GType gqv_cell_renderer_icon_get_type(void);
-GtkCellRenderer *gqv_cell_renderer_icon_new(void);
+GType gqv_cell_renderer_icon_get_type();
+GtkCellRenderer *gqv_cell_renderer_icon_new();
#endif /* __GQV_CELL_RENDERER_ICON_H__ */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
return FALSE; /* no change */
}
-static void collect_manager_refresh(void)
+static void collect_manager_refresh()
{
GList *list;
GList *work;
return TRUE;
}
-static gboolean collect_manager_process_entry_list(void)
+static gboolean collect_manager_process_entry_list()
{
GList *work;
collect_manager_add_action(action);
}
-void collect_manager_flush(void)
+void collect_manager_flush()
{
collect_manager_timer_push(TRUE);
* @headerfile collect_manager_flush
* commit pending operations to disk
*/
-void collect_manager_flush(void);
+void collect_manager_flush();
void collect_manager_notify_cb(FileData *fd, NotifyType type, gpointer data);
void collect_manager_list(GList **names_exc, GList **names_inc, GList **paths);
* Also saves window geometry for Collection windows that have
* no unsaved data
*/
-gboolean collection_window_modified_exists(void)
+gboolean collection_window_modified_exists()
{
GList *work;
gboolean ret;
void collection_window_close_by_collection(CollectionData *cd);
CollectWindow *collection_window_find(CollectionData *cd);
CollectWindow *collection_window_find_by_path(const gchar *path);
-gboolean collection_window_modified_exists(void);
+gboolean collection_window_modified_exists();
gboolean is_collection(const gchar *param);
gchar *collection_path(const gchar *param);
/* no op */
}
-void color_man_update(void)
+void color_man_update()
{
/* no op */
}
guchar *screen_data, guint screen_data_len);
void color_man_free(ColorMan *cm);
-void color_man_update(void);
+void color_man_update();
void color_man_correct_region(ColorMan *cm, GdkPixbuf *pixbuf, gint x, gint y, gint w, gint h);
static gint debug_level = DEBUG_LEVEL_MIN;
-gint get_debug_level(void)
+gint get_debug_level()
{
return debug_level;
}
return x->tv_sec < y->tv_sec;
}
-const gchar *get_exec_time(void)
+const gchar *get_exec_time()
{
static gchar timestr[30];
static struct timeval start_tv = {0, 0};
return timestr;
}
-void init_exec_time(void)
+void init_exec_time()
{
get_exec_time();
}
regexp = g_strdup(cmd_regexp);
}
-gchar *get_regexp(void)
+gchar *get_regexp()
{
return g_strdup(regexp);
}
#define DEBUG_LEVEL_MAX 4
void set_regexp(const gchar *regexp);
-gchar *get_regexp(void);
-gint get_debug_level(void);
+gchar *get_regexp();
+gint get_debug_level();
void set_debug_level(gint new_level);
void debug_level_add(gint delta);
gint required_debug_level(gint level);
-const gchar *get_exec_time(void);
-void init_exec_time(void);
+const gchar *get_exec_time();
+void init_exec_time();
#define DEBUG_N(n, ...) do \
{ \
}
}
-static void editor_list_window_create(void)
+static void editor_list_window_create()
{
GtkWidget *win_vbox;
GtkWidget *hbox;
*-----------------------------------------------------------------------------
*/
-void show_editor_list_window(void)
+void show_editor_list_window()
{
if (editor_list_window)
{
#ifndef DESKTOP_FILE_H
#define DESKTOP_FILE_H
-void show_editor_list_window(void);
+void show_editor_list_window();
#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
*
*
*/
-static guint64 msec_time(void)
+static guint64 msec_time()
{
struct timeval tv;
};
-DupeWindow *dupe_window_new(void);
+DupeWindow *dupe_window_new();
void dupe_window_clear(DupeWindow *dw);
void dupe_window_close(DupeWindow *dw);
return editor->hidden || editor->ignored;
}
-void editor_table_finish(void)
+void editor_table_finish()
{
g_hash_table_foreach_remove(editors, editor_remove_desktop_file_cb, nullptr);
editors_finished = TRUE;
}
-void editor_table_clear(void)
+void editor_table_clear()
{
if (desktop_file_list)
{
return list;
}
-GList *editor_get_desktop_files(void)
+GList *editor_get_desktop_files()
{
gchar *path;
gchar *xdg_data_dirs;
return ret;
}
-GList *editor_list_get(void)
+GList *editor_list_get()
{
GList *editors_list = nullptr;
extern GHashTable *editors;
-void editor_table_finish(void);
-void editor_table_clear(void);
-GList *editor_get_desktop_files(void);
+void editor_table_finish();
+void editor_table_clear();
+GList *editor_get_desktop_files();
gboolean editor_read_desktop_file(const gchar *path);
-GList *editor_list_get(void);
+GList *editor_list_get();
/**
fd->exif = nullptr;
}
-void exif_init_cache(void)
+void exif_init_cache()
{
g_assert(!exif_cache);
exif_cache = file_cache_new(exif_release_cb, 4);
*-----------------------------------------------------------------------------
*/
-void exif_init(void);
+void exif_init();
ExifData *exif_read(gchar *path, gchar *sidecar_path, GHashTable *modified_xmp);
-void exif_init(void)
+void exif_init()
{
#ifdef EXV_ENABLE_NLS
bind_textdomain_codeset (EXV_PACKAGE, "UTF-8");
*/
-static GHashTable *file_data_basename_hash_new(void)
+static GHashTable *file_data_basename_hash_new()
{
return g_hash_table_new_full(g_str_hash, g_str_equal, g_free, nullptr);
}
g_free(fe);
}
-GList *filter_get_list(void)
+GList *filter_get_list()
{
return filter_list;
}
filter_add(key, description, extensions, file_class, writable, allow_sidecar, enabled);
}
-void filter_reset(void)
+void filter_reset()
{
GList *work;
filter_list = nullptr;
}
-void filter_add_defaults(void)
+void filter_add_defaults()
{
/* formats supported by custom loaders */
filter_add_if_missing("dds", "DirectDraw Surface", ".dds", FORMAT_CLASS_IMAGE, FALSE, FALSE, TRUE);
}
-void filter_rebuild(void)
+void filter_rebuild()
{
GList *work;
guint i;
*-----------------------------------------------------------------------------
*/
-GList *sidecar_ext_get_list(void)
+GList *sidecar_ext_get_list()
{
return sidecar_ext_list;
}
-static void sidecar_ext_free_list(void)
+static void sidecar_ext_free_list()
{
GList *work;
* @headerfile filter_get_list
* you can change, but not add or remove entries from the returned list
*/
-GList *filter_get_list(void);
+GList *filter_get_list();
void filter_remove_entry(FilterEntry *fe);
void filter_add(const gchar *key, const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled);
void filter_add_unique(const gchar *description, const gchar *extensions, FileFormatClass file_class, gboolean writable, gboolean allow_sidecar, gboolean enabled);
-void filter_add_defaults(void);
-void filter_reset(void);
-void filter_rebuild(void);
+void filter_add_defaults();
+void filter_reset();
+void filter_rebuild();
GList *filter_to_list(const gchar *extensions);
const gchar *registered_extension_from_path(const gchar *name);
void sidecar_ext_parse(const gchar *text);
-gchar *sidecar_ext_to_string(void);
-GList *sidecar_ext_get_list(void);
+gchar *sidecar_ext_to_string();
+GList *sidecar_ext_get_list();
#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#define XSCREENSAVER_BINARY "xscreensaver-command"
#define XSCREENSAVER_COMMAND "xscreensaver-command -deactivate >&- 2>&- &"
-static void fullscreen_saver_deactivate(void)
+static void fullscreen_saver_deactivate()
{
static gboolean checked = FALSE;
static gboolean found = FALSE;
*----------------------------------------------------------------------------
*/
-GList *fullscreen_prefs_list(void)
+GList *fullscreen_prefs_list()
{
GList *list = nullptr;
GdkDisplay *display;
};
-GList *fullscreen_prefs_list(void);
+GList *fullscreen_prefs_list();
void fullscreen_prefs_list_free(GList *list);
ScreenData *fullscreen_prefs_list_find(GList *list, gint screen);
};
-Histogram *histogram_new(void)
+Histogram *histogram_new()
{
Histogram *histogram;
return t1;
}
-static HistMap *histmap_new(void)
+static HistMap *histmap_new()
{
auto histmap = g_new0(HistMap, 1);
return histmap;
#define HCHAN_DEFAULT HCHAN_RGB
-Histogram *histogram_new(void);
+Histogram *histogram_new();
void histogram_free(Histogram *histogram);
gint histogram_set_channel(Histogram *histogram, gint chan);
gint histogram_get_channel(Histogram *histogram);
static void image_loader_finalize(GObject *object);
static void image_loader_stop(ImageLoader *il);
-GType image_loader_get_type(void)
+GType image_loader_get_type()
{
static GType type = 0;
if (type == 0)
static gint image_loader_prio_num = 0;
-static void image_loader_thread_enter_high(void)
+static void image_loader_thread_enter_high()
{
g_mutex_lock(image_loader_prio_mutex);
image_loader_prio_num++;
g_mutex_unlock(image_loader_prio_mutex);
}
-static void image_loader_thread_leave_high(void)
+static void image_loader_thread_leave_high()
{
g_mutex_lock(image_loader_prio_mutex);
image_loader_prio_num--;
g_mutex_unlock(image_loader_prio_mutex);
}
-static void image_loader_thread_wait_high(void)
+static void image_loader_thread_wait_high()
{
g_mutex_lock(image_loader_prio_mutex);
while (image_loader_prio_num)
void (*percent)(ImageLoader *, gdouble, gpointer);
};
-GType image_loader_get_type(void);
+GType image_loader_get_type();
ImageLoader *image_loader_new(FileData *fd);
fd->pixbuf = nullptr;
}
-static FileCacheData *image_get_cache(void)
+static FileCacheData *image_get_cache()
{
static FileCacheData *cache = nullptr;
if (!cache) cache = file_cache_new(image_cache_release_cb, 1);
options->stereo.fixed_x2, options->stereo.fixed_y2);
}
-void image_options_sync(void)
+void image_options_sync()
{
GList *work;
* @headerfile image_options_sync
* reset default options
*/
-void image_options_sync(void);
+void image_options_sync();
void image_get_rectangle(gint *x1, gint *y1, gint *x2, gint *y2);
void image_update_title(ImageWindow *imd);
*-----------------------------------------------------------------------------
*/
-void view_window_colors_update(void)
+void view_window_colors_update()
{
GList *work;
void view_window_new_from_list(GList *list);
void view_window_new_from_collection(CollectionData *cd, CollectInfo *info);
-void view_window_colors_update(void);
+void view_window_colors_update();
gboolean view_window_find_image(ImageWindow *imd, gint *index, gint *total);
g_free(buf);
}
-GtkWidget *layout_config_new(void)
+GtkWidget *layout_config_new()
{
LayoutConfig *lc;
GtkWidget *hbox;
#include "layout.h"
-GtkWidget *layout_config_new(void);
+GtkWidget *layout_config_new();
void layout_config_set(GtkWidget *widget, gint style, const gchar *order);
gchar *layout_config_get(GtkWidget *widget, gint *style);
gtk_widget_set_sensitive(recent, (n != 0));
}
-void layout_recent_update_all(void)
+void layout_recent_update_all()
{
GList *work;
return G_SOURCE_CONTINUE;
}
-void layout_editors_reload_start(void)
+void layout_editors_reload_start()
{
DEBUG_1("%s layout_editors_reload_start", get_exec_time());
layout_editors_reload_idle_id = g_idle_add(layout_editors_reload_idle_cb, nullptr);
}
-void layout_editors_reload_finish(void)
+void layout_editors_reload_finish()
{
if (layout_editors_reload_idle_id != -1)
{
}
}
-void layout_util_status_update_write_all(void)
+void layout_util_status_update_write_all()
{
GList *work;
void layout_util_sync(LayoutWindow *lw);
void layout_util_status_update_write(LayoutWindow *lw);
-void layout_util_status_update_write_all(void);
+void layout_util_status_update_write_all();
//void layout_edit_update_all(void);
-void layout_recent_update_all(void);
+void layout_recent_update_all();
void layout_recent_add_path(const gchar *path);
-void layout_copy_path_update_all(void);
+void layout_copy_path_update_all();
-void layout_editors_reload_start(void);
-void layout_editors_reload_finish(void);
+void layout_editors_reload_start();
+void layout_editors_reload_finish();
void layout_actions_setup(LayoutWindow *lw);
void layout_actions_add_window(LayoutWindow *lw, GtkWidget *window);
GtkWidget *layout_actions_menu_bar(LayoutWindow *lw);
file_data_unref(dir_fd);
}
-void layout_colors_update(void)
+void layout_colors_update()
{
GList *work;
void layout_style_set(LayoutWindow *lw, gint style, const gchar *order);
-void layout_menu_update_edit(void);
-void layout_styles_update(void);
-void layout_colors_update(void);
+void layout_menu_update_edit();
+void layout_styles_update();
+void layout_colors_update();
gboolean layout_geometry_get_tools(LayoutWindow *lw, gint *x, gint *y, gint *w, gint *h, gint *divider_pos);
#define RC_HISTORY_NAME "history"
#define RC_MARKS_NAME "marks"
-static void setup_env_path(void)
+static void setup_env_path()
{
const gchar *old_path = g_getenv("PATH");
gchar *path = g_strconcat(gq_bindir, ":", old_path, NULL);
g_free(path);
}
-static void keys_load(void)
+static void keys_load()
{
gchar *path;
g_free(path);
}
-static void keys_save(void)
+static void keys_save()
{
gchar *path;
g_free(path);
}
-static void marks_load(void)
+static void marks_load()
{
gchar *path;
return TRUE;
}
-static gchar *accep_map_filename(void)
+static gchar *accep_map_filename()
{
return g_build_filename(get_rc_dir(), "accels", NULL);
}
-static void accel_map_save(void)
+static void accel_map_save()
{
gchar *path;
g_free(path);
}
-static void accel_map_load(void)
+static void accel_map_load()
{
gchar *path;
gchar *pathl;
g_free(path);
}
-static void gtkrc_load(void)
+static void gtkrc_load()
{
gchar *path;
gchar *pathl;
g_free(path);
}
-static void exit_program_final(void)
+static void exit_program_final()
{
LayoutWindow *lw = nullptr;
GList *list;
exit_program_final();
}
-static gint exit_confirm_dlg(void)
+static gint exit_confirm_dlg()
{
GtkWidget *parent;
LayoutWindow *lw;
if (success) exit_program();
}
-void exit_program(void)
+void exit_program()
{
layout_image_full_screen_stop(nullptr);
//#endif
//}
-static void setup_sig_handler(void)
+static void setup_sig_handler()
{
struct sigaction sigsegv_action;
sigfillset(&sigsegv_action.sa_mask);
void keyboard_scroll_calc(gint *x, gint *y, GdkEventKey *event);
gint key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
-void exit_program(void);
+void exit_program();
#define CASE_SORT(a, b) ( (options->file_sort.case_sensitive) ? strcmp((a), (b)) : strcasecmp((a), (b)) )
return success;
}
-gint metadata_queue_length(void)
+gint metadata_queue_length()
{
return g_list_length(metadata_write_queue);
}
}
-void keyword_tree_new(void)
+void keyword_tree_new()
{
if (keyword_tree) return;
return iter;
}
-void keyword_tree_new_default(void)
+void keyword_tree_new_default()
{
GtkTreeIter i1, i2;
gboolean metadata_write_queue_confirm(gboolean force_dialog, FileUtilDoneFunc done_func, gpointer done_data);
void metadata_notify_cb(FileData *fd, NotifyType type, gpointer data);
-gint metadata_queue_length(void);
+gint metadata_queue_length();
gboolean metadata_write_revert(FileData *fd, const gchar *key);
gboolean metadata_write_list(FileData *fd, const gchar *key, const GList *values);
void keyword_hide_unset_in(GtkTreeStore *keyword_tree, gpointer id, GList *keywords);
void keyword_show_set_in(GtkTreeStore *keyword_tree, gpointer id, GList *keywords);
-void keyword_tree_new_default(void);
-void keyword_tree_new(void);
+void keyword_tree_new_default();
+void keyword_tree_new();
void keyword_tree_write_config(GString *outstr, gint indent);
GtkTreeIter *keyword_add_from_config(GtkTreeStore *keyword_tree, GtkTreeIter *parent, const gchar **attribute_names, const gchar **attribute_values);
#include <langinfo.h>
-gdouble get_zoom_increment(void)
+gdouble get_zoom_increment()
{
return ((options->image.zoom_increment != 0) ? static_cast<gdouble>(options->image.zoom_increment) / 100.0 : 1.0);
}
return ret;
}
-gint get_cpu_cores(void)
+gint get_cpu_cores()
{
return sysconf(_SC_NPROCESSORS_ONLN);
}
#ifndef MISC_H
#define MISC_H
-gdouble get_zoom_increment(void);
+gdouble get_zoom_increment();
gchar *utf8_validate_or_convert(const gchar *text);
gint utf8_compare(const gchar *s1, const gchar *s2, gboolean case_sensitive);
gchar *expand_tilde(const gchar *filename);
gchar *date_get_abbreviated_day_name(gint day);
gchar *convert_rating_to_stars(gint rating);
gchar *get_symbolic_link(const gchar *path_utf8);
-gint get_cpu_cores(void);
+gint get_cpu_cores();
void tree_path_free_wrapper(void *data, void *useradata);
gchar *open_archive(FileData *fd);
#endif /* MISC_H */
pixbuf_renderer_init(pr);
}
-GType pixbuf_renderer_get_type(void)
+GType pixbuf_renderer_get_type()
{
static GType pixbuf_renderer_type = 0;
pr_source_tile_free_all(pr);
}
-PixbufRenderer *pixbuf_renderer_new(void)
+PixbufRenderer *pixbuf_renderer_new()
{
return static_cast<PixbufRenderer *>(g_object_new(TYPE_PIXBUF_RENDERER, nullptr));
}
-GType pixbuf_renderer_get_type(void);
+GType pixbuf_renderer_get_type();
-PixbufRenderer *pixbuf_renderer_new(void);
+PixbufRenderer *pixbuf_renderer_new();
void pixbuf_renderer_set_parent(PixbufRenderer *pr, GtkWindow *window);
GtkWindow *pixbuf_renderer_get_parent(PixbufRenderer *pr);
}
-void pixbuf_inline_register_stock_icons(void)
+void pixbuf_inline_register_stock_icons()
{
gint i;
gboolean pixbuf_to_file_as_png (GdkPixbuf *pixbuf, const gchar *filename);
gboolean pixbuf_to_file_as_jpg(GdkPixbuf *pixbuf, const gchar *filename, gint quality);
-void pixbuf_inline_register_stock_icons(void);
+void pixbuf_inline_register_stock_icons();
gboolean register_theme_icon_as_stock(const gchar *key, const gchar *icon);
GdkPixbuf *pixbuf_inline(const gchar *key);
}
-static void config_window_apply(void)
+static void config_window_apply()
{
gboolean refresh = FALSE;
#ifdef HAVE_LCMS2
gtk_widget_show(combo);
}
-static void filter_store_populate(void)
+static void filter_store_populate()
{
GList *work;
gtk_widget_destroy(dialog);
}
-static void accel_store_populate(void)
+static void accel_store_populate()
{
LayoutWindow *lw;
GList *groups, *actions;
gtk_widget_show(label);
}
-static GtkTreeModel *create_class_model(void)
+static GtkTreeModel *create_class_model()
{
GtkListStore *model;
GtkTreeIter iter;
}
}
-void remote_help(void)
+void remote_help()
{
gint i;
gchar *s_opt_param;
void remote_close(RemoteConnection *rc);
GList *remote_build_list(GList *list, gint argc, gchar *argv[], GList **errors);
-void remote_help(void);
+void remote_help();
void remote_control(const gchar *arg_exec, GList *remote_list, const gchar *path,
GList *cmd_list, GList *collection_list);
//return alternate_enabled;
//}
-ImageSimilarityData *image_sim_new(void)
+ImageSimilarityData *image_sim_new()
{
auto sd = g_new0(ImageSimilarityData, 1);
};
-ImageSimilarityData *image_sim_new(void);
+ImageSimilarityData *image_sim_new();
void image_sim_free(ImageSimilarityData *sd);
void image_sim_fill_data(ImageSimilarityData *sd, GdkPixbuf *pixbuf);
void image_sim_alternate_set(gboolean enable);
-gboolean image_sim_alternate_enabled(void);
+gboolean image_sim_alternate_enabled();
void image_sim_alternate_processing(ImageSimilarityData *sd);
return n;
}
-void file_util_trash_clear(void)
+void file_util_trash_clear()
{
file_util_safe_number(-1);
}
return success;
}
-gchar *file_util_safe_delete_status(void)
+gchar *file_util_safe_delete_status()
{
gchar *buf = nullptr;
#include "ui-utildlg.h"
-void file_util_trash_clear(void);
+void file_util_trash_clear();
gboolean file_util_safe_unlink(const gchar *path);
-gchar *file_util_safe_delete_status(void);
+gchar *file_util_safe_delete_status();
#endif /* TRASH_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
}
/* first we try the HOME environment var, if that doesn't work, we try g_get_homedir(). */
-const gchar *homedir(void)
+const gchar *homedir()
{
static gchar *home = nullptr;
return path_to_utf8(dir);
}
-const gchar *xdg_data_home_get(void)
+const gchar *xdg_data_home_get()
{
static const gchar *xdg_data_home = nullptr;
return xdg_data_home;
}
-const gchar *xdg_config_home_get(void)
+const gchar *xdg_config_home_get()
{
static const gchar *xdg_config_home = nullptr;
return xdg_config_home;
}
-const gchar *xdg_cache_home_get(void)
+const gchar *xdg_cache_home_get()
{
static const gchar *xdg_cache_home = nullptr;
return xdg_cache_home;
}
-const gchar *get_rc_dir(void)
+const gchar *get_rc_dir()
{
static gchar *rc_dir = nullptr;
return rc_dir;
}
-const gchar *get_collections_dir(void)
+const gchar *get_collections_dir()
{
static gchar *collections_dir = nullptr;
return collections_dir;
}
-const gchar *get_trash_dir(void)
+const gchar *get_trash_dir()
{
static gchar *trash_dir = nullptr;
return trash_dir;
}
-const gchar *get_window_layouts_dir(void)
+const gchar *get_window_layouts_dir()
{
static gchar *window_layouts_dir = nullptr;
return ret;
}
-gchar *get_current_dir(void)
+gchar *get_current_dir()
{
gchar *pathl;
gchar *path8;
gchar *path_from_utf8(const gchar *utf8);
#endif
-const gchar *xdg_data_home_get(void);
-const gchar *xdg_config_home_get(void);
-const gchar *xdg_cache_home_get(void);
-const gchar *homedir(void);
-const gchar *get_rc_dir(void);
-const gchar *get_collections_dir(void);
-const gchar *get_trash_dir(void);
-const gchar *get_window_layouts_dir(void);
+const gchar *xdg_data_home_get();
+const gchar *xdg_config_home_get();
+const gchar *xdg_cache_home_get();
+const gchar *homedir();
+const gchar *get_rc_dir();
+const gchar *get_collections_dir();
+const gchar *get_trash_dir();
+const gchar *get_window_layouts_dir();
gboolean stat_utf8(const gchar *s, struct stat *st);
gboolean lstat_utf8(const gchar *s, struct stat *st);
gboolean copy_file(const gchar *s, const gchar *t);
gboolean move_file(const gchar *s, const gchar *t);
gboolean rename_file(const gchar *s, const gchar *t);
-gchar *get_current_dir(void);
+gchar *get_current_dir();
/**
* @headerfile string_list_free
g_object_unref(G_OBJECT(data));
}
-GtkWidget *popup_menu_short_lived(void)
+GtkWidget *popup_menu_short_lived()
{
GtkWidget *menu;
GtkWidget *menu_item_add_simple(GtkWidget *menu, const gchar *label,
GCallback func, gpointer data);
-GtkWidget *popup_menu_short_lived(void);
+GtkWidget *popup_menu_short_lived();
/**
* @headerfile popup_menu_position_clamp
g_free(ds);
}
-GtkWidget *date_selection_new(void)
+GtkWidget *date_selection_new()
{
DateSelection *ds;
GtkWidget *arrow;
GtkWidget *pref_toolbar_spacer(GtkWidget *toolbar);
-GtkWidget *date_selection_new(void);
+GtkWidget *date_selection_new();
void date_selection_set(GtkWidget *widget, gint day, gint month, gint year);
void date_selection_get(GtkWidget *widget, gint *day, gint *month, gint *year);