Skip to content

Commit c8a2ca3

Browse files
committed
more cleanups
1 parent 9d026dc commit c8a2ca3

File tree

13 files changed

+22
-27
lines changed

13 files changed

+22
-27
lines changed

TODO

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
- never connected to button "activate", always to "clicked"
2-
3-
fix names of signal handlers (sometimes call them _pressed)
4-
5-
- remove use of deprecated GtkInfoBar
6-
7-
use GtkActionBar instead, see imagewindow
8-
91
- try a flatpak build
102

113
will need a network connection

src/colourview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ colourview_class_init(ColourviewClass *class)
9595
BIND_VARIABLE(Colourview, imagedisplay);
9696
BIND_VARIABLE(Colourview, label);
9797

98-
BIND_CALLBACK(graphicview_click);
98+
BIND_CALLBACK(graphicview_pressed);
9999

100100
object_class->dispose = colourview_dispose;
101101

src/graphicview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ graphicview_rowview(Graphicview *graphicview)
6363
}
6464

6565
void
66-
graphicview_click(GtkGestureClick *gesture,
66+
graphicview_pressed(GtkGestureClick *gesture,
6767
guint n_press, double x, double y, Graphicview *graphicview)
6868
{
6969
if (n_press == 1) {

src/graphicview.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ typedef struct _GraphicviewClass {
5555
*/
5656
} GraphicviewClass;
5757

58-
void graphicview_click(GtkGestureClick *gesture,
58+
void graphicview_pressed(GtkGestureClick *gesture,
5959
guint n_press, double x, double y, Graphicview *Graphicview);
6060
GType graphicview_get_type(void);

src/gtk/colourview.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<child>
1010
<object class="GtkGestureClick">
1111
<property name="button">1</property>
12-
<signal name="pressed" handler="graphicview_click"/>
12+
<signal name="pressed" handler="graphicview_pressed"/>
1313
</object>
1414
</child>
1515

src/gtk/iimageview.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<child>
1010
<object class="GtkGestureClick">
1111
<property name="button">1</property>
12-
<signal name="pressed" handler="graphicview_click"/>
12+
<signal name="pressed" handler="graphicview_pressed"/>
1313
</object>
1414
</child>
1515

src/gtk/plotview.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<child>
1010
<object class="GtkGestureClick">
1111
<property name="button">1</property>
12-
<signal name="pressed" handler="graphicview_click"/>
12+
<signal name="pressed" handler="graphicview_pressed"/>
1313
</object>
1414
</child>
1515

src/gtk/valueview.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<child>
77
<object class="GtkGestureClick">
88
<property name="button">1</property>
9-
<signal name="pressed" handler="graphicview_click"/>
9+
<signal name="pressed" handler="graphicview_pressed"/>
1010
</object>
1111
</child>
1212

src/iimageview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ iimageview_class_init(iImageviewClass *class)
184184
BIND_VARIABLE(iImageview, imagedisplay);
185185
BIND_VARIABLE(iImageview, label);
186186

187-
BIND_CALLBACK(graphicview_click);
187+
BIND_CALLBACK(graphicview_pressed);
188188

189189
object_class->dispose = iimageview_dispose;
190190

src/plotview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ plotview_class_init(PlotviewClass *class)
118118
BIND_VARIABLE(Plotview, plotdisplay);
119119
BIND_VARIABLE(Plotview, label);
120120

121-
BIND_CALLBACK(graphicview_click);
121+
BIND_CALLBACK(graphicview_pressed);
122122

123123
gobject_class->dispose = plotview_dispose;
124124

0 commit comments

Comments
 (0)