Skip to content

Commit 37df7de

Browse files
authored
Update SettingsPopover.vala
1 parent ddc0378 commit 37df7de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Widgets/SettingsPopover.vala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,23 @@ public class jorts.SettingsPopover : Gtk.Popover {
5555
_("Zoom out")
5656
) */
5757
};
58-
zoom_out_button.clicked.connect (() => (this.get_ancestor(Gtk.MainWindow)).zoom_out ());
58+
zoom_out_button.clicked.connect (() => (this.get_ancestor(Gtk.Window)).zoom_out ());
5959

6060
var zoom_default_button = new Gtk.Button () {
6161
/* tooltip_markup = Granite.markup_accel_tooltip (
6262
TerminalWidget.ACCELS_ZOOM_DEFAULT,
6363
_("Default zoom level")
6464
) */
6565
};
66-
zoom_default_button.clicked.connect (() => (this.get_ancestor(Gtk.MainWindow)).set_zoom (100));
66+
zoom_default_button.clicked.connect (() => (this.get_ancestor(Gtk.Window)).set_zoom (100));
6767

6868
var zoom_in_button = new Gtk.Button.from_icon_name ("zoom-in-symbolic") {
6969
/* tooltip_markup = Granite.markup_accel_tooltip (
7070
TerminalWidget.ACCELS_ZOOM_IN,
7171
_("Zoom in")
7272
) */
7373
};
74-
zoom_in_button.clicked.connect (() => (this.get_ancestor(Gtk.MainWindow)).zoom_in ());
74+
zoom_in_button.clicked.connect (() => (this.get_ancestor(Gtk.Window)).zoom_in ());
7575

7676
var font_size_box = new Gtk.Box (HORIZONTAL, 0) {
7777
homogeneous = true,

0 commit comments

Comments
 (0)