|
1 | 1 | /*
|
2 | 2 | This file is part of darktable,
|
3 |
| - Copyright (C) 2011-2024 darktable developers. |
| 3 | + Copyright (C) 2011-2025 darktable developers. |
4 | 4 |
|
5 | 5 | darktable is free software: you can redistribute it and/or modify
|
6 | 6 | it under the terms of the GNU General Public License as published by
|
@@ -128,7 +128,8 @@ enum _lib_snapshot_button_items
|
128 | 128 | _SNAPSHOT_BUTTON_ENTRY,
|
129 | 129 | } _lib_snapshot_button_items;
|
130 | 130 |
|
131 |
| -static GtkWidget *_lib_snapshot_button_get_item(GtkWidget *button, const int num) |
| 131 | +static GtkWidget *_lib_snapshot_button_get_item(GtkWidget *button, |
| 132 | + const int num) |
132 | 133 | {
|
133 | 134 | GtkWidget *cont = gtk_bin_get_child(GTK_BIN(button));
|
134 | 135 | GList *items = gtk_container_get_children(GTK_CONTAINER(cont));
|
@@ -419,7 +420,8 @@ int button_pressed(struct dt_lib_module_t *self,
|
419 | 420 | _lib_snapshot_rotation_cnt++;
|
420 | 421 |
|
421 | 422 | d->vertical = !d->vertical;
|
422 |
| - gtk_orientable_set_orientation(GTK_ORIENTABLE(gtk_widget_get_parent(dt_ui_snapshot(darktable.gui->ui))), d->vertical ? GTK_ORIENTATION_HORIZONTAL : GTK_ORIENTATION_VERTICAL); |
| 423 | + gtk_orientable_set_orientation(GTK_ORIENTABLE(gtk_widget_get_parent(dt_ui_snapshot(darktable.gui->ui))), |
| 424 | + d->vertical ? GTK_ORIENTATION_HORIZONTAL : GTK_ORIENTATION_VERTICAL); |
423 | 425 | if(_lib_snapshot_rotation_cnt % 2) d->inverted = !d->inverted;
|
424 | 426 | if(d->sidebyside)
|
425 | 427 | d->snap_requested = TRUE;
|
@@ -536,7 +538,8 @@ static gboolean _lib_button_button_pressed_callback(GtkWidget *widget,
|
536 | 538 | return gtk_widget_has_focus(d->snapshot[index].entry);
|
537 | 539 | }
|
538 | 540 |
|
539 |
| -static void _init_snapshot_entry(dt_lib_module_t *self, dt_lib_snapshot_t *s) |
| 541 | +static void _init_snapshot_entry(dt_lib_module_t *self, |
| 542 | + dt_lib_snapshot_t *s) |
540 | 543 | {
|
541 | 544 | /* create snapshot button */
|
542 | 545 | s->button = gtk_toggle_button_new();
|
@@ -687,7 +690,8 @@ static void _signal_image_removed(gpointer instance,
|
687 | 690 | }
|
688 | 691 | }
|
689 | 692 |
|
690 |
| -static void _signal_image_changed(gpointer instance, dt_lib_module_t *self) |
| 693 | +static void _signal_image_changed(gpointer instance, |
| 694 | + dt_lib_module_t *self) |
691 | 695 | {
|
692 | 696 | dt_lib_snapshots_t *d = self->data;
|
693 | 697 |
|
@@ -942,7 +946,8 @@ static int _lib_snapshots_get_activated(dt_lib_module_t *self, GtkWidget *widget
|
942 | 946 | return -1;
|
943 | 947 | }
|
944 | 948 |
|
945 |
| -static void _lib_snapshots_toggled_callback(GtkToggleButton *widget, dt_lib_module_t *self) |
| 949 | +static void _lib_snapshots_toggled_callback(GtkToggleButton *widget, |
| 950 | + dt_lib_module_t *self) |
946 | 951 | {
|
947 | 952 | dt_lib_snapshots_t *d = self->data;
|
948 | 953 |
|
@@ -971,7 +976,8 @@ static void _lib_snapshots_toggled_callback(GtkToggleButton *widget, dt_lib_modu
|
971 | 976 | dt_control_queue_redraw_center();
|
972 | 977 | }
|
973 | 978 |
|
974 |
| -static void _lib_snapshots_restore_callback(GtkButton *widget, dt_lib_module_t *self) |
| 979 | +static void _lib_snapshots_restore_callback(GtkButton *widget, |
| 980 | + dt_lib_module_t *self) |
975 | 981 | {
|
976 | 982 | dt_lib_snapshots_t *d = self->data;
|
977 | 983 |
|
|
0 commit comments