File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ So the whole settings popover is here, deal with it.
3232public 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 ,
You can’t perform that action at this time.
0 commit comments