Skip to content

Commit 95e057b

Browse files
authored
Update MainWindow.vala
1 parent 92fb39e commit 95e057b

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/MainWindow.vala

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -224,27 +224,15 @@ namespace jorts {
224224
}
225225

226226

227-
public void reset_zoom() {
228-
if (this.zoom != 100) {
229-
this.remove_css_class (this.zoom.to_string());
230-
this.zoom = 100;
231-
this.add_css_class (this.zoom.to_string());
232-
}
233-
}
234-
235227
public void zoom_in() {
236228
if ((this.zoom + 25) <= max_zoom) {
237-
this.remove_css_class (this.zoom.to_string());
238-
this.zoom = this.zoom + 25;
239-
this.add_css_class (this.zoom.to_string());
229+
this.set_zoom((this.zoom + 25));
240230
}
241231
}
242232

243233
public void zoom_out() {
244234
if ((this.zoom - 25) >= min_zoom) {
245-
this.remove_css_class (this.zoom.to_string());
246-
this.zoom = this.zoom - 25;
247-
this.add_css_class (this.zoom.to_string());
235+
this.set_zoom((this.zoom - 25));
248236
}
249237
}
250238

0 commit comments

Comments
 (0)