Skip to content

Commit ea2f3c7

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Widgets/SettingsPopover.vala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ So the whole settings popover is here, deal with it.
3232
public class jorts.SettingsPopover : Gtk.Popover {
3333
public string selected;
3434
public signal void theme_changed (string selected);
35+
public signal void zoom_changed (string zoomkind);
3536

3637
public SettingsPopover (string theme) {
3738
this.set_position (Gtk.PositionType.TOP);
@@ -55,23 +56,23 @@ public class jorts.SettingsPopover : Gtk.Popover {
5556
_("Zoom out")
5657
) */
5758
};
58-
zoom_out_button.clicked.connect (() => (this.get_ancestor(Gtk.Window)).zoom_out ());
59+
zoom_out_button.clicked.connect (() => (this.zoom_changed("zoom_out"));
5960

6061
var zoom_default_button = new Gtk.Button () {
6162
/* tooltip_markup = Granite.markup_accel_tooltip (
6263
TerminalWidget.ACCELS_ZOOM_DEFAULT,
6364
_("Default zoom level")
6465
) */
6566
};
66-
zoom_default_button.clicked.connect (() => (this.get_ancestor(Gtk.Window)).set_zoom (100));
67+
zoom_default_button.clicked.connect (() => (this.zoom_changed("reset"));
6768

6869
var zoom_in_button = new Gtk.Button.from_icon_name ("zoom-in-symbolic") {
6970
/* tooltip_markup = Granite.markup_accel_tooltip (
7071
TerminalWidget.ACCELS_ZOOM_IN,
7172
_("Zoom in")
7273
) */
7374
};
74-
zoom_in_button.clicked.connect (() => (this.get_ancestor(Gtk.Window)).zoom_in ());
75+
zoom_in_button.clicked.connect (() => (this.zoom_changed("zoom_in"));
7576

7677
var font_size_box = new Gtk.Box (HORIZONTAL, 0) {
7778
homogeneous = true,

0 commit comments

Comments
 (0)