*-------------------------------------------------------------------
*/
-/* this overrides the low default of a GtkCellRenderer from 100 to CELL_HEIGHT_OVERRIDE, something sane for our purposes */
-
-enum {
- CELL_HEIGHT_OVERRIDE = 512
-};
-
-void cell_renderer_height_override(GtkCellRenderer *renderer)
-{
- GParamSpec *spec;
-
- spec = g_object_class_find_property(G_OBJECT_GET_CLASS(G_OBJECT(renderer)), "height");
- if (spec && G_IS_PARAM_SPEC_INT(spec))
- {
- GParamSpecInt *spec_int;
-
- spec_int = G_PARAM_SPEC_INT(spec);
- if (spec_int->maximum < CELL_HEIGHT_OVERRIDE) spec_int->maximum = CELL_HEIGHT_OVERRIDE;
- }
-}
-
static GdkRGBA *dupe_listview_color_shifted(GtkWidget *widget)
{
static GdkRGBA color;
void dupe_window_add_collection(DupeWindow *dw, CollectionData *collection);
void dupe_window_add_files(DupeWindow *dw, GList *list, gboolean recurse);
-void cell_renderer_height_override(GtkCellRenderer *renderer); /**< cell max with/height hack utility */
-
#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#include "options.h"
#include "ui-fileops.h"
+namespace
+{
+
+constexpr int BUFSIZE = 128;
+
+constexpr gint CELL_HEIGHT_OVERRIDE = 512;
+
+} // namespace
+
gdouble get_zoom_increment()
{
return ((options->image.zoom_increment != 0) ? static_cast<gdouble>(options->image.zoom_increment) / 100.0 : 1.0);
*/
#define GEOCODE_NAME "geocode-parameters.awk"
-enum {
- BUFSIZE = 128
-};
gchar *decode_geo_script(const gchar *path_dir, const gchar *input_text)
{
gtk_grid_attach(grid, child, left_attach, top_attach, right_attach - left_attach, bottom_attach - top_attach);
}
+/* this overrides the low default of a GtkCellRenderer from 100 to CELL_HEIGHT_OVERRIDE, something sane for our purposes */
+void cell_renderer_height_override(GtkCellRenderer *renderer)
+{
+ GParamSpec *spec;
+
+ spec = g_object_class_find_property(G_OBJECT_GET_CLASS(G_OBJECT(renderer)), "height");
+ if (spec && G_IS_PARAM_SPEC_INT(spec))
+ {
+ GParamSpecInt *spec_int;
+
+ spec_int = G_PARAM_SPEC_INT(spec);
+ if (spec_int->maximum < CELL_HEIGHT_OVERRIDE) spec_int->maximum = CELL_HEIGHT_OVERRIDE;
+ }
+}
+
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
void convert_gdkcolor_to_gdkrgba(gpointer data, GdkRGBA *gdk_rgba);
#endif /* HAVE_GTK4 */
+void cell_renderer_height_override(GtkCellRenderer *renderer); /**< cell max with/height hack utility */
+
#endif /* MISC_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
#include "compat.h"
#include "debug.h"
#include "dnd.h"
-#include "dupe.h"
#include "editors.h"
#include "filedata.h"
#include "image-load.h"
}
-
-/* this overrides the low default of a GtkCellRenderer from 100 to CELL_HEIGHT_OVERRIDE, something sane for our purposes */
-
-enum {
- CELL_HEIGHT_OVERRIDE = 512
-};
-
-static void cell_renderer_height_override(GtkCellRenderer *renderer)
-{
- GParamSpec *spec;
-
- spec = g_object_class_find_property(G_OBJECT_GET_CLASS(G_OBJECT(renderer)), "height");
- if (spec && G_IS_PARAM_SPEC_INT(spec))
- {
- GParamSpecInt *spec_int;
-
- spec_int = G_PARAM_SPEC_INT(spec);
- if (spec_int->maximum < CELL_HEIGHT_OVERRIDE) spec_int->maximum = CELL_HEIGHT_OVERRIDE;
- }
-}
-
static GdkRGBA *vflist_listview_color_shifted(GtkWidget *widget)
{
static GdkRGBA color;