2016-12-23 11:08:39 -05:00
|
|
|
/*
|
|
|
|
|
* This file is part of the Dash-To-Panel extension for Gnome 3
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* Credits:
|
|
|
|
|
* This file is based on code from the Dash to Dock extension by micheleg.
|
|
|
|
|
* Some code was also adapted from the upstream Gnome Shell source code.
|
|
|
|
|
*/
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2023-08-13 02:49:56 +02:00
|
|
|
import GdkPixbuf from 'gi://GdkPixbuf';
|
|
|
|
|
import Gio from 'gi://Gio';
|
|
|
|
|
import GLib from 'gi://GLib';
|
|
|
|
|
import GObject from 'gi://GObject';
|
|
|
|
|
import Gtk from 'gi://Gtk';
|
|
|
|
|
import Gdk from 'gi://Gdk';
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2023-08-13 02:49:56 +02:00
|
|
|
import * as PanelSettings from './panelSettings.js';
|
|
|
|
|
import * as Pos from './panelPositions.js';
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2023-08-20 17:36:57 +02:00
|
|
|
import {ExtensionPreferences, gettext as _, ngettext} from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js';
|
2023-08-13 03:06:39 +02:00
|
|
|
|
2016-12-22 18:12:04 -05:00
|
|
|
const SCALE_UPDATE_TIMEOUT = 500;
|
|
|
|
|
const DEFAULT_PANEL_SIZES = [ 128, 96, 64, 48, 32, 24, 16 ];
|
2016-12-23 16:19:46 -05:00
|
|
|
const DEFAULT_FONT_SIZES = [ 96, 64, 48, 32, 24, 16, 0 ];
|
2017-01-04 09:11:09 -05:00
|
|
|
const DEFAULT_MARGIN_SIZES = [ 32, 24, 16, 12, 8, 4, 0 ];
|
|
|
|
|
const DEFAULT_PADDING_SIZES = [ 32, 24, 16, 12, 8, 4, 0, -1 ];
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
// Minimum length could be 0, but a higher value may help prevent confusion about where the panel went.
|
|
|
|
|
const LENGTH_MARKS = [ 100, 90, 80, 70, 60, 50, 40, 30, 20, 10 ];
|
2017-02-19 08:17:15 -05:00
|
|
|
const MAX_WINDOW_INDICATOR = 4;
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2018-12-09 17:12:23 -05:00
|
|
|
const SCHEMA_PATH = '/org/gnome/shell/extensions/dash-to-panel/';
|
|
|
|
|
|
2017-02-18 17:22:05 -05:00
|
|
|
/**
|
|
|
|
|
* This function was copied from the activities-config extension
|
|
|
|
|
* https://github.com/nls1729/acme-code/tree/master/activities-config
|
|
|
|
|
* by Norman L. Smith.
|
|
|
|
|
*/
|
|
|
|
|
function cssHexString(css) {
|
|
|
|
|
let rrggbb = '#';
|
|
|
|
|
let start;
|
|
|
|
|
for (let loop = 0; loop < 3; loop++) {
|
|
|
|
|
let end = 0;
|
|
|
|
|
let xx = '';
|
|
|
|
|
for (let loop = 0; loop < 2; loop++) {
|
|
|
|
|
while (true) {
|
|
|
|
|
let x = css.slice(end, end + 1);
|
|
|
|
|
if ((x == '(') || (x == ',') || (x == ')'))
|
|
|
|
|
break;
|
|
|
|
|
end++;
|
|
|
|
|
}
|
|
|
|
|
if (loop == 0) {
|
|
|
|
|
end++;
|
|
|
|
|
start = end;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
xx = parseInt(css.slice(start, end)).toString(16);
|
|
|
|
|
if (xx.length == 1)
|
|
|
|
|
xx = '0' + xx;
|
|
|
|
|
rrggbb += xx;
|
|
|
|
|
css = css.slice(end);
|
|
|
|
|
}
|
|
|
|
|
return rrggbb;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-24 22:10:17 -04:00
|
|
|
function setShortcut(settings, shortcutName) {
|
|
|
|
|
let shortcut_text = settings.get_string(shortcutName + '-text');
|
2022-04-07 22:06:28 -04:00
|
|
|
let [success, key, mods] = Gtk.accelerator_parse(shortcut_text);
|
2017-05-26 17:03:57 -04:00
|
|
|
|
2022-04-07 22:06:28 -04:00
|
|
|
if (success && Gtk.accelerator_valid(key, mods)) {
|
2017-05-26 17:03:57 -04:00
|
|
|
let shortcut = Gtk.accelerator_name(key, mods);
|
2018-10-24 22:10:17 -04:00
|
|
|
settings.set_strv(shortcutName, [shortcut]);
|
2017-05-26 17:03:57 -04:00
|
|
|
}
|
|
|
|
|
else {
|
2018-10-24 22:10:17 -04:00
|
|
|
settings.set_strv(shortcutName, []);
|
2017-05-26 17:03:57 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-28 15:51:59 -04:00
|
|
|
function checkHotkeyPrefix(settings) {
|
|
|
|
|
settings.delay();
|
|
|
|
|
|
|
|
|
|
let hotkeyPrefix = settings.get_string('hotkey-prefix-text');
|
|
|
|
|
if (hotkeyPrefix == 'Super')
|
|
|
|
|
hotkeyPrefix = '<Super>';
|
|
|
|
|
else if (hotkeyPrefix == 'SuperAlt')
|
|
|
|
|
hotkeyPrefix = '<Super><Alt>';
|
2022-04-07 22:20:43 -04:00
|
|
|
let [ , , mods] = Gtk.accelerator_parse(hotkeyPrefix);
|
|
|
|
|
let [ , , shift_mods] = Gtk.accelerator_parse('<Shift>' + hotkeyPrefix);
|
|
|
|
|
let [ , , ctrl_mods] = Gtk.accelerator_parse('<Ctrl>' + hotkeyPrefix);
|
2017-03-28 15:51:59 -04:00
|
|
|
|
|
|
|
|
let numHotkeys = 10;
|
|
|
|
|
for (let i = 1; i <= numHotkeys; i++) {
|
|
|
|
|
let number = i;
|
|
|
|
|
if (number == 10)
|
|
|
|
|
number = 0;
|
|
|
|
|
let key = Gdk.keyval_from_name(number.toString());
|
|
|
|
|
let key_kp = Gdk.keyval_from_name('KP_' + number.toString());
|
|
|
|
|
if (Gtk.accelerator_valid(key, mods)) {
|
|
|
|
|
let shortcut = Gtk.accelerator_name(key, mods);
|
|
|
|
|
let shortcut_kp = Gtk.accelerator_name(key_kp, mods);
|
|
|
|
|
|
|
|
|
|
// Setup shortcut strings
|
|
|
|
|
settings.set_strv('app-hotkey-' + i, [shortcut]);
|
|
|
|
|
settings.set_strv('app-hotkey-kp-' + i, [shortcut_kp]);
|
|
|
|
|
|
|
|
|
|
// With <Shift>
|
|
|
|
|
shortcut = Gtk.accelerator_name(key, shift_mods);
|
|
|
|
|
shortcut_kp = Gtk.accelerator_name(key_kp, shift_mods);
|
|
|
|
|
settings.set_strv('app-shift-hotkey-' + i, [shortcut]);
|
|
|
|
|
settings.set_strv('app-shift-hotkey-kp-' + i, [shortcut_kp]);
|
|
|
|
|
|
|
|
|
|
// With <Control>
|
|
|
|
|
shortcut = Gtk.accelerator_name(key, ctrl_mods);
|
|
|
|
|
shortcut_kp = Gtk.accelerator_name(key_kp, ctrl_mods);
|
|
|
|
|
settings.set_strv('app-ctrl-hotkey-' + i, [shortcut]);
|
|
|
|
|
settings.set_strv('app-ctrl-hotkey-kp-' + i, [shortcut_kp]);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
// Reset default settings for the relevant keys if the
|
|
|
|
|
// accelerators are invalid
|
|
|
|
|
let keys = ['app-hotkey-' + i, 'app-shift-hotkey-' + i, 'app-ctrl-hotkey-' + i, // Regular numbers
|
|
|
|
|
'app-hotkey-kp-' + i, 'app-shift-hotkey-kp-' + i, 'app-ctrl-hotkey-kp-' + i]; // Key-pad numbers
|
|
|
|
|
keys.forEach(function(val) {
|
|
|
|
|
settings.set_value(val, settings.get_default_value(val));
|
|
|
|
|
}, this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
settings.apply();
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-09 17:12:23 -05:00
|
|
|
function mergeObjects(main, bck) {
|
2023-09-21 23:10:07 -07:00
|
|
|
for (const prop in bck) {
|
2018-12-09 17:12:23 -05:00
|
|
|
if (!main.hasOwnProperty(prop) && bck.hasOwnProperty(prop)) {
|
|
|
|
|
main[prop] = bck[prop];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return main;
|
2023-09-21 19:22:30 -07:00
|
|
|
}
|
2018-12-09 17:12:23 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
const Preferences = class {
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2023-08-13 20:12:56 +02:00
|
|
|
constructor(window, settings, path) {
|
|
|
|
|
// this._settings = ExtensionUtils.getSettings('org.gnome.shell.extensions.dash-to-panel');
|
2016-12-22 18:12:04 -05:00
|
|
|
this._rtl = (Gtk.Widget.get_default_direction() == Gtk.TextDirection.RTL);
|
|
|
|
|
this._builder = new Gtk.Builder();
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
this._builder.set_scope(new BuilderScope(this));
|
2024-04-03 00:35:40 +03:00
|
|
|
this._settings = settings;
|
|
|
|
|
this._path = path;
|
|
|
|
|
|
|
|
|
|
this._metadata = ExtensionPreferences.lookupByURL(import.meta.url).metadata;
|
|
|
|
|
this._builder.set_translation_domain(this._metadata['gettext-domain']);
|
2022-04-06 19:56:18 +02:00
|
|
|
|
2022-04-18 16:51:35 +02:00
|
|
|
window.set_search_enabled(true);
|
|
|
|
|
|
|
|
|
|
// dialogs
|
2023-08-13 20:12:56 +02:00
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxAnimateAppIconHoverOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxDotOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxShowDesktopOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxDynamicOpacityOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxIntellihideOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxShowApplicationsOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxWindowPreviewOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxGroupAppsOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxMiddleClickOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxOverlayShortcut.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxSecondaryMenuOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxScrollPanelOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxScrollIconOptions.ui');
|
|
|
|
|
this._builder.add_from_file(this._path + '/ui/BoxAdvancedOptions.ui');
|
2022-04-18 16:51:35 +02:00
|
|
|
|
|
|
|
|
// pages
|
2023-08-13 20:12:56 +02:00
|
|
|
this._builder.add_from_file(this._path + '/ui/SettingsPosition.ui');
|
2022-04-18 16:51:35 +02:00
|
|
|
let pagePosition = this._builder.get_object('position');
|
|
|
|
|
window.add(pagePosition);
|
|
|
|
|
|
2023-08-13 20:12:56 +02:00
|
|
|
this._builder.add_from_file(this._path + '/ui/SettingsStyle.ui');
|
2022-04-18 16:51:35 +02:00
|
|
|
let pageStyle = this._builder.get_object('style');
|
|
|
|
|
window.add(pageStyle);
|
|
|
|
|
|
2023-08-13 20:12:56 +02:00
|
|
|
this._builder.add_from_file(this._path + '/ui/SettingsBehavior.ui');
|
2022-04-18 16:51:35 +02:00
|
|
|
let pageBehavior = this._builder.get_object('behavior');
|
|
|
|
|
window.add(pageBehavior);
|
|
|
|
|
|
2023-08-13 20:12:56 +02:00
|
|
|
this._builder.add_from_file(this._path + '/ui/SettingsAction.ui');
|
2022-04-18 16:51:35 +02:00
|
|
|
let pageAction = this._builder.get_object('action');
|
|
|
|
|
window.add(pageAction);
|
|
|
|
|
|
2023-08-13 20:12:56 +02:00
|
|
|
this._builder.add_from_file(this._path + '/ui/SettingsFineTune.ui');
|
2022-04-18 16:51:35 +02:00
|
|
|
let pageFineTune = this._builder.get_object('finetune');
|
|
|
|
|
window.add(pageFineTune);
|
|
|
|
|
|
2025-01-29 16:56:08 -05:00
|
|
|
this._builder.add_from_file(this._path + '/ui/SettingsDonation.ui');
|
|
|
|
|
let pageDonation = this._builder.get_object('donation');
|
|
|
|
|
window.add(pageDonation);
|
|
|
|
|
|
2023-08-13 20:12:56 +02:00
|
|
|
this._builder.add_from_file(this._path + '/ui/SettingsAbout.ui');
|
2022-04-18 16:51:35 +02:00
|
|
|
let pageAbout = this._builder.get_object('about');
|
|
|
|
|
window.add(pageAbout);
|
|
|
|
|
|
|
|
|
|
let listbox = this._builder.get_object('taskbar_display_listbox');
|
|
|
|
|
let provider = new Gtk.CssProvider();
|
2023-02-18 13:55:39 +01:00
|
|
|
provider.load_from_data('list { background-color: transparent; }', -1);
|
2022-04-18 16:51:35 +02:00
|
|
|
let context = listbox.get_style_context();
|
|
|
|
|
context.add_provider(provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
|
|
|
|
|
|
|
|
|
|
// set the window as notebook, it is being used as parent for dialogs
|
|
|
|
|
this.notebook = window;
|
2016-12-22 18:12:04 -05:00
|
|
|
|
|
|
|
|
// Timeout to delay the update of the settings
|
|
|
|
|
this._panel_size_timeout = 0;
|
2017-02-17 23:48:12 -05:00
|
|
|
this._dot_height_timeout = 0;
|
2016-12-31 08:24:23 -05:00
|
|
|
this._tray_size_timeout = 0;
|
|
|
|
|
this._leftbox_size_timeout = 0;
|
|
|
|
|
this._appicon_margin_timeout = 0;
|
2018-04-12 17:23:59 -05:00
|
|
|
this._appicon_padding_timeout = 0;
|
2018-10-14 13:35:07 -04:00
|
|
|
this._opacity_timeout = 0;
|
2017-01-04 09:11:09 -05:00
|
|
|
this._tray_padding_timeout = 0;
|
|
|
|
|
this._statusicon_padding_timeout = 0;
|
|
|
|
|
this._leftbox_padding_timeout = 0;
|
2021-05-10 04:14:15 +02:00
|
|
|
this._addFormatValueCallbacks();
|
2016-12-22 18:12:04 -05:00
|
|
|
this._bindSettings();
|
2025-01-29 16:56:08 -05:00
|
|
|
|
|
|
|
|
let targetPageName = settings.get_string('target-prefs-page')
|
|
|
|
|
|
|
|
|
|
if (targetPageName) {
|
|
|
|
|
window.set_visible_page_name(targetPageName)
|
|
|
|
|
settings.set_string('target-prefs-page', '')
|
|
|
|
|
}
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2016-12-22 18:12:04 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Connect signals
|
|
|
|
|
*/
|
2022-04-04 13:25:45 -04:00
|
|
|
_connector(builder, object, signal, handler) {
|
|
|
|
|
object.connect(signal, this._SignalHandler[handler].bind(this));
|
|
|
|
|
}
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
_updateVerticalRelatedOptions() {
|
2020-06-14 15:28:49 -04:00
|
|
|
let position = this._getPanelPosition(this._currentMonitorIndex);
|
|
|
|
|
let isVertical = position == Pos.LEFT || position == Pos.RIGHT;
|
2019-09-15 17:00:55 -04:00
|
|
|
let showDesktopWidthLabel = this._builder.get_object('show_showdesktop_width_label');
|
2020-05-12 19:00:51 -04:00
|
|
|
|
2022-04-18 16:51:35 +02:00
|
|
|
showDesktopWidthLabel.set_title(isVertical ? _('Show Desktop button height (px)') : _('Show Desktop button width (px)'));
|
2020-05-12 19:00:51 -04:00
|
|
|
|
2020-06-14 15:28:49 -04:00
|
|
|
this._displayPanelPositionsForMonitor(this._currentMonitorIndex);
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2020-05-12 19:00:51 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
_maybeDisableTopPosition() {
|
2020-06-14 15:28:49 -04:00
|
|
|
let keepTopPanel = this._settings.get_boolean('stockgs-keep-top-panel');
|
|
|
|
|
let monitorSync = this._settings.get_boolean('panel-element-positions-monitors-sync');
|
|
|
|
|
let topAvailable = !keepTopPanel || (!monitorSync && this._currentMonitorIndex != this.monitors[0]);
|
|
|
|
|
let topRadio = this._builder.get_object('position_top_button');
|
|
|
|
|
|
|
|
|
|
topRadio.set_sensitive(topAvailable);
|
|
|
|
|
topRadio.set_tooltip_text(!topAvailable ? _('Unavailable when gnome-shell top panel is present') : '');
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2020-06-14 15:28:49 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
_getPanelPosition(monitorIndex) {
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
return PanelSettings.getPanelPosition(this._settings, monitorIndex);
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2020-06-14 15:28:49 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
_setPanelPosition(position) {
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
const monitorSync = this._settings.get_boolean('panel-element-positions-monitors-sync');
|
|
|
|
|
const monitorsToSetFor = monitorSync ? this.monitors : [this._currentMonitorIndex];
|
|
|
|
|
monitorsToSetFor.forEach(monitorIndex => {
|
|
|
|
|
PanelSettings.setPanelPosition(this._settings, monitorIndex, position);
|
|
|
|
|
});
|
|
|
|
|
this._setAnchorLabels(this._currentMonitorIndex);
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2020-06-14 15:28:49 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
_setPositionRadios(position) {
|
2020-06-14 15:28:49 -04:00
|
|
|
this._ignorePositionRadios = true;
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
|
2020-06-14 15:28:49 -04:00
|
|
|
switch (position) {
|
|
|
|
|
case Pos.BOTTOM:
|
|
|
|
|
this._builder.get_object('position_bottom_button').set_active(true);
|
|
|
|
|
break;
|
|
|
|
|
case Pos.TOP:
|
|
|
|
|
this._builder.get_object('position_top_button').set_active(true);
|
|
|
|
|
break;
|
|
|
|
|
case Pos.LEFT:
|
|
|
|
|
this._builder.get_object('position_left_button').set_active(true);
|
|
|
|
|
break;
|
|
|
|
|
case Pos.RIGHT:
|
|
|
|
|
this._builder.get_object('position_right_button').set_active(true);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this._ignorePositionRadios = false;
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2020-06-14 15:28:49 -04:00
|
|
|
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
/**
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
* Set panel anchor combo labels according to whether the monitor's panel is vertical
|
|
|
|
|
* or horizontal, or if all monitors' panels are being configured and they are a mix
|
|
|
|
|
* of vertical and horizontal.
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
*/
|
2022-04-04 13:25:45 -04:00
|
|
|
_setAnchorLabels(currentMonitorIndex) {
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
const monitorSync = this._settings.get_boolean('panel-element-positions-monitors-sync');
|
|
|
|
|
const monitorsToSetFor = monitorSync ? this.monitors : [currentMonitorIndex];
|
|
|
|
|
const allVertical = monitorsToSetFor.every(i => {
|
|
|
|
|
const position = PanelSettings.getPanelPosition(this._settings, i);
|
|
|
|
|
return position === Pos.LEFT || position === Pos.RIGHT
|
|
|
|
|
});
|
|
|
|
|
const allHorizontal = monitorsToSetFor.every(i => {
|
|
|
|
|
const position = PanelSettings.getPanelPosition(this._settings, i);
|
|
|
|
|
return position === Pos.TOP || position === Pos.BOTTOM;
|
|
|
|
|
});
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
|
|
|
|
|
const anchor_combo = this._builder.get_object('panel_anchor_combo');
|
|
|
|
|
anchor_combo.remove_all();
|
|
|
|
|
|
|
|
|
|
if (allHorizontal) {
|
|
|
|
|
anchor_combo.append(Pos.START, _('Left'));
|
|
|
|
|
anchor_combo.append(Pos.MIDDLE, _('Center'));
|
|
|
|
|
anchor_combo.append(Pos.END, _('Right'));
|
|
|
|
|
} else if (allVertical) {
|
|
|
|
|
anchor_combo.append(Pos.START, _('Top'));
|
|
|
|
|
anchor_combo.append(Pos.MIDDLE, _('Middle'));
|
|
|
|
|
anchor_combo.append(Pos.END, _('Bottom'));
|
|
|
|
|
} else {
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
// Setting for a mix of horizontal and vertical panels on different monitors.
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
anchor_combo.append(Pos.START, _('Start'));
|
|
|
|
|
anchor_combo.append(Pos.MIDDLE, _('Middle'));
|
|
|
|
|
anchor_combo.append(Pos.END, _('End'));
|
|
|
|
|
}
|
|
|
|
|
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
// Set combo box after re-populating its options. But only if it's for a single-panel
|
|
|
|
|
// configuration, or a multi-panel configuration where they all have the same anchor
|
|
|
|
|
// setting. So don't set the combo box if there is a multi-panel configuration with
|
|
|
|
|
// different anchor settings.
|
|
|
|
|
const someAnchor = PanelSettings.getPanelAnchor(this._settings, currentMonitorIndex);
|
|
|
|
|
if (monitorsToSetFor.every(i =>
|
|
|
|
|
PanelSettings.getPanelAnchor(this._settings, i) === someAnchor)) {
|
|
|
|
|
const panel_anchor = PanelSettings.getPanelAnchor(this._settings, currentMonitorIndex);
|
|
|
|
|
this._builder.get_object('panel_anchor_combo').set_active_id(panel_anchor);
|
|
|
|
|
}
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* When a monitor is selected, update the widgets for panel position, size, anchoring,
|
|
|
|
|
* and contents so they accurately show the settings for the panel on that monitor.
|
|
|
|
|
*/
|
2022-04-04 13:25:45 -04:00
|
|
|
_updateWidgetSettingsForMonitor(monitorIndex) {
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
// Update display of panel screen position setting
|
|
|
|
|
this._maybeDisableTopPosition();
|
|
|
|
|
const panelPosition = this._getPanelPosition(monitorIndex);
|
|
|
|
|
this._setPositionRadios(panelPosition);
|
|
|
|
|
|
|
|
|
|
// Update display of thickness, length, and anchor settings
|
|
|
|
|
const panel_size_scale = this._builder.get_object('panel_size_scale');
|
|
|
|
|
const size = PanelSettings.getPanelSize(this._settings, monitorIndex);
|
|
|
|
|
panel_size_scale.set_value(size);
|
|
|
|
|
|
|
|
|
|
const panel_length_scale = this._builder.get_object('panel_length_scale');
|
|
|
|
|
const length = PanelSettings.getPanelLength(this._settings, monitorIndex);
|
|
|
|
|
panel_length_scale.set_value(length);
|
|
|
|
|
this._setAnchorWidgetSensitivity(length);
|
|
|
|
|
|
|
|
|
|
this._setAnchorLabels(monitorIndex);
|
|
|
|
|
|
|
|
|
|
// Update display of panel content settings
|
|
|
|
|
this._displayPanelPositionsForMonitor(monitorIndex);
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Anchor is only relevant if panel length is less than 100%. Enable or disable
|
|
|
|
|
* anchor widget sensitivity accordingly.
|
|
|
|
|
*/
|
2022-04-04 13:25:45 -04:00
|
|
|
_setAnchorWidgetSensitivity(panelLength) {
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
const isPartialLength = panelLength < 100;
|
|
|
|
|
this._builder.get_object('panel_anchor_label').set_sensitive(isPartialLength);
|
|
|
|
|
this._builder.get_object('panel_anchor_combo').set_sensitive(isPartialLength);
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
_displayPanelPositionsForMonitor(monitorIndex) {
|
2020-05-12 19:00:51 -04:00
|
|
|
let taskbarListBox = this._builder.get_object('taskbar_display_listbox');
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
|
|
|
|
|
while(taskbarListBox.get_first_child())
|
|
|
|
|
{
|
|
|
|
|
taskbarListBox.remove(taskbarListBox.get_first_child());
|
|
|
|
|
}
|
2020-05-12 19:00:51 -04:00
|
|
|
|
|
|
|
|
let labels = {};
|
2020-06-14 15:28:49 -04:00
|
|
|
let panelPosition = this._getPanelPosition(monitorIndex);
|
|
|
|
|
let isVertical = panelPosition == Pos.LEFT || panelPosition == Pos.RIGHT;
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
let panelElementPositionsSettings = PanelSettings.getSettingsJson(this._settings, 'panel-element-positions');
|
2020-06-14 15:28:49 -04:00
|
|
|
let panelElementPositions = panelElementPositionsSettings[monitorIndex] || Pos.defaults;
|
|
|
|
|
let updateElementsSettings = () => {
|
|
|
|
|
let newPanelElementPositions = [];
|
2020-05-17 09:42:07 -04:00
|
|
|
let monitorSync = this._settings.get_boolean('panel-element-positions-monitors-sync');
|
|
|
|
|
let monitors = monitorSync ? this.monitors : [monitorIndex];
|
2020-05-12 19:00:51 -04:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
let child = taskbarListBox.get_first_child();
|
|
|
|
|
while (child != null)
|
|
|
|
|
{
|
2020-06-14 15:28:49 -04:00
|
|
|
newPanelElementPositions.push({
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
element: child.id,
|
|
|
|
|
visible: child.visibleToggleBtn.get_active(),
|
|
|
|
|
position: child.positionCombo.get_active_id()
|
2020-05-12 19:00:51 -04:00
|
|
|
});
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
child = child.get_next_sibling();
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-14 15:28:49 -04:00
|
|
|
monitors.forEach(m => panelElementPositionsSettings[m] = newPanelElementPositions);
|
|
|
|
|
this._settings.set_string('panel-element-positions', JSON.stringify(panelElementPositionsSettings));
|
2020-05-12 19:00:51 -04:00
|
|
|
};
|
|
|
|
|
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
|
2020-05-12 19:00:51 -04:00
|
|
|
labels[Pos.SHOW_APPS_BTN] = _('Show Applications button');
|
|
|
|
|
labels[Pos.ACTIVITIES_BTN] = _('Activities button');
|
|
|
|
|
labels[Pos.TASKBAR] = _('Taskbar');
|
|
|
|
|
labels[Pos.DATE_MENU] = _('Date menu');
|
|
|
|
|
labels[Pos.SYSTEM_MENU] = _('System menu');
|
|
|
|
|
labels[Pos.LEFT_BOX] = _('Left box');
|
|
|
|
|
labels[Pos.CENTER_BOX] = _('Center box');
|
|
|
|
|
labels[Pos.RIGHT_BOX] = _('Right box');
|
|
|
|
|
labels[Pos.DESKTOP_BTN] = _('Desktop button');
|
|
|
|
|
|
2020-06-14 15:28:49 -04:00
|
|
|
panelElementPositions.forEach(el => {
|
2020-05-12 19:00:51 -04:00
|
|
|
let row = new Gtk.ListBoxRow();
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
let grid = new Gtk.Grid({ margin_start: 12, margin_end: 12, column_spacing: 8 });
|
2020-05-12 19:00:51 -04:00
|
|
|
let upDownGrid = new Gtk.Grid({ column_spacing: 2 });
|
|
|
|
|
let upBtn = new Gtk.Button({ tooltip_text: _('Move up') });
|
|
|
|
|
let upImg = new Gtk.Image({ icon_name: 'go-up-symbolic', pixel_size: 12 });
|
|
|
|
|
let downBtn = new Gtk.Button({ tooltip_text: _('Move down') });
|
|
|
|
|
let downImg = new Gtk.Image({ icon_name: 'go-down-symbolic', pixel_size: 12 });
|
|
|
|
|
let visibleToggleBtn = new Gtk.ToggleButton({ label: _('Visible'), active: el.visible });
|
|
|
|
|
let positionCombo = new Gtk.ComboBoxText({ tooltip_text: _('Select element position') });
|
|
|
|
|
let upDownClickHandler = limit => {
|
|
|
|
|
let index = row.get_index();
|
|
|
|
|
|
|
|
|
|
if (index != limit) {
|
|
|
|
|
taskbarListBox.remove(row);
|
|
|
|
|
taskbarListBox.insert(row, index + (!limit ? -1 : 1));
|
2020-06-14 15:28:49 -04:00
|
|
|
updateElementsSettings();
|
2020-05-12 19:00:51 -04:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2020-05-17 09:42:07 -04:00
|
|
|
positionCombo.append(Pos.STACKED_TL, isVertical ? _('Stacked to top') : _('Stacked to left'));
|
|
|
|
|
positionCombo.append(Pos.STACKED_BR, isVertical ? _('Stacked to bottom') :_('Stacked to right'));
|
2020-05-12 19:00:51 -04:00
|
|
|
positionCombo.append(Pos.CENTERED, _('Centered'));
|
|
|
|
|
positionCombo.append(Pos.CENTERED_MONITOR, _('Monitor Center'));
|
|
|
|
|
positionCombo.set_active_id(el.position);
|
|
|
|
|
|
|
|
|
|
upBtn.connect('clicked', () => upDownClickHandler(0));
|
2020-06-14 15:28:49 -04:00
|
|
|
downBtn.connect('clicked', () => upDownClickHandler(panelElementPositions.length - 1));
|
|
|
|
|
visibleToggleBtn.connect('toggled', () => updateElementsSettings());
|
|
|
|
|
positionCombo.connect('changed', () => updateElementsSettings());
|
2020-05-12 19:00:51 -04:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
upBtn.set_child(upImg);
|
|
|
|
|
downBtn.set_child(downImg);
|
2020-05-12 19:00:51 -04:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
upDownGrid.attach(upBtn, 0, 0, 1, 1);
|
|
|
|
|
upDownGrid.attach(downBtn, 1, 0, 1, 1);
|
2020-05-12 19:00:51 -04:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
grid.attach(upDownGrid, 0, 0, 1, 1);
|
|
|
|
|
grid.attach(new Gtk.Label({ label: labels[el.element], xalign: 0, hexpand: true }), 1, 0, 1, 1);
|
2020-05-12 19:00:51 -04:00
|
|
|
|
|
|
|
|
if (Pos.optionDialogFunctions[el.element]) {
|
|
|
|
|
let cogImg = new Gtk.Image({ icon_name: 'emblem-system-symbolic' });
|
|
|
|
|
let optionsBtn = new Gtk.Button({ tooltip_text: _('More options') });
|
|
|
|
|
|
|
|
|
|
optionsBtn.get_style_context().add_class('circular');
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
optionsBtn.set_child(cogImg);
|
|
|
|
|
grid.attach(optionsBtn, 2, 0, 1, 1);
|
2020-05-12 19:00:51 -04:00
|
|
|
|
|
|
|
|
optionsBtn.connect('clicked', () => this[Pos.optionDialogFunctions[el.element]]());
|
|
|
|
|
}
|
|
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
grid.attach(visibleToggleBtn, 3, 0, 1, 1);
|
|
|
|
|
grid.attach(positionCombo, 4, 0, 1, 1);
|
2020-05-12 19:00:51 -04:00
|
|
|
|
|
|
|
|
row.id = el.element;
|
|
|
|
|
row.visibleToggleBtn = visibleToggleBtn;
|
|
|
|
|
row.positionCombo = positionCombo;
|
|
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
row.set_child(grid);
|
|
|
|
|
taskbarListBox.insert(row, -1);
|
2020-05-12 19:00:51 -04:00
|
|
|
});
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2020-05-12 19:00:51 -04:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
_createPreferencesDialog(title, content, reset_function = null) {
|
|
|
|
|
let dialog;
|
|
|
|
|
|
2022-04-18 23:25:55 +02:00
|
|
|
dialog = new Gtk.Dialog({ title: title,
|
|
|
|
|
transient_for: this.notebook.get_root(),
|
|
|
|
|
use_header_bar: true,
|
|
|
|
|
modal: true });
|
|
|
|
|
|
|
|
|
|
// GTK+ leaves positive values for application-defined response ids.
|
|
|
|
|
// Use +1 for the reset action
|
|
|
|
|
if (reset_function != null)
|
|
|
|
|
dialog.add_button(_('Reset to defaults'), 1);
|
|
|
|
|
|
|
|
|
|
dialog.get_content_area().append(content);
|
|
|
|
|
|
|
|
|
|
dialog.connect('response', (dialog, id) => {
|
|
|
|
|
if (id == 1) {
|
|
|
|
|
// restore default settings
|
|
|
|
|
if (reset_function)
|
|
|
|
|
reset_function();
|
|
|
|
|
} else {
|
|
|
|
|
// remove the settings content so it doesn't get destroyed;
|
|
|
|
|
dialog.get_content_area().remove(content);
|
|
|
|
|
dialog.destroy();
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
});
|
|
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
return dialog;
|
|
|
|
|
}
|
2020-05-12 19:00:51 -04:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
_showShowAppsButtonOptions() {
|
2020-05-12 19:00:51 -04:00
|
|
|
let box = this._builder.get_object('show_applications_options');
|
2022-04-07 00:35:37 +02:00
|
|
|
|
|
|
|
|
let dialog = this._createPreferencesDialog(_('Show Applications options'), box, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings
|
|
|
|
|
this._settings.set_value('show-apps-icon-side-padding', this._settings.get_default_value('show-apps-icon-side-padding'));
|
|
|
|
|
this._builder.get_object('show_applications_side_padding_spinbutton').set_value(this._settings.get_int('show-apps-icon-side-padding'));
|
|
|
|
|
this._settings.set_value('show-apps-override-escape', this._settings.get_default_value('show-apps-override-escape'));
|
|
|
|
|
handleIconChange.call(this, null);
|
|
|
|
|
});
|
2020-05-12 19:00:51 -04:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
let fileChooserButton = this._builder.get_object('show_applications_icon_file_filebutton');
|
|
|
|
|
let fileChooser = new Gtk.FileChooserNative({ title: _('Open icon'), transient_for: dialog });
|
2020-05-12 19:00:51 -04:00
|
|
|
let fileImage = this._builder.get_object('show_applications_current_icon_image');
|
|
|
|
|
let fileFilter = new Gtk.FileFilter();
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
fileFilter.add_pixbuf_formats();
|
|
|
|
|
fileChooser.filter = fileFilter;
|
|
|
|
|
|
2020-05-12 19:00:51 -04:00
|
|
|
let handleIconChange = function(newIconPath) {
|
|
|
|
|
if (newIconPath && GLib.file_test(newIconPath, GLib.FileTest.EXISTS)) {
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
let file = Gio.File.new_for_path(newIconPath);
|
2020-05-12 19:00:51 -04:00
|
|
|
let pixbuf = GdkPixbuf.Pixbuf.new_from_stream_at_scale(file.read(null), 32, 32, true, null);
|
|
|
|
|
|
|
|
|
|
fileImage.set_from_pixbuf(pixbuf);
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
fileChooser.set_file(file);
|
|
|
|
|
fileChooserButton.set_label(newIconPath);
|
2020-05-12 19:00:51 -04:00
|
|
|
} else {
|
|
|
|
|
newIconPath = '';
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
fileImage.set_from_icon_name('view-app-grid-symbolic');
|
|
|
|
|
let picturesFolder = Gio.File.new_for_path(GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_PICTURES));
|
|
|
|
|
fileChooser.set_file(picturesFolder);
|
|
|
|
|
fileChooserButton.set_label("(None)");
|
2020-05-12 19:00:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this._settings.set_string('show-apps-icon-file', newIconPath || '');
|
|
|
|
|
};
|
|
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
fileChooserButton.connect('clicked', () => {
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
fileChooser.show();
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
|
|
|
|
|
fileChooser.connect('response', widget => handleIconChange.call(this, widget.get_file().get_path()));
|
2020-05-12 19:00:51 -04:00
|
|
|
handleIconChange.call(this, this._settings.get_string('show-apps-icon-file'));
|
|
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
// we have to destroy the fileChooser as well
|
2022-04-04 13:25:45 -04:00
|
|
|
dialog.connect('response', (dialog, id) => {
|
2022-04-07 00:35:37 +02:00
|
|
|
if (id != 1) {
|
2021-07-14 22:06:39 +02:00
|
|
|
fileChooser.destroy();
|
2020-05-12 19:00:51 -04:00
|
|
|
}
|
|
|
|
|
return;
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-09-15 17:00:55 -04:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(1, 1);
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2020-05-12 19:00:51 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
_showDesktopButtonOptions() {
|
2022-04-07 00:35:37 +02:00
|
|
|
let box = this._builder.get_object('box_show_showdesktop_options');
|
|
|
|
|
|
|
|
|
|
let dialog = this._createPreferencesDialog(_('Show Desktop options'), box, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings
|
|
|
|
|
this._settings.set_value('showdesktop-button-width', this._settings.get_default_value('showdesktop-button-width'));
|
|
|
|
|
this._builder.get_object('show_showdesktop_width_spinbutton').set_value(this._settings.get_int('showdesktop-button-width'));
|
2020-05-12 19:00:51 -04:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('desktop-line-use-custom-color', this._settings.get_default_value('desktop-line-use-custom-color'));
|
2020-05-12 19:00:51 -04:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('show-showdesktop-hover', this._settings.get_default_value('show-showdesktop-hover'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('show-showdesktop-delay', this._settings.get_default_value('show-showdesktop-delay'));
|
|
|
|
|
this._builder.get_object('show_showdesktop_delay_spinbutton').set_value(this._settings.get_int('show-showdesktop-delay'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('show-showdesktop-time', this._settings.get_default_value('show-showdesktop-time'));
|
|
|
|
|
this._builder.get_object('show_showdesktop_time_spinbutton').set_value(this._settings.get_int('show-showdesktop-time'));
|
|
|
|
|
});
|
2020-05-12 19:00:51 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('show_showdesktop_width_spinbutton').set_value(this._settings.get_int('showdesktop-button-width'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('show_showdesktop_width_spinbutton').connect('value-changed', (widget) => {
|
2020-05-12 19:00:51 -04:00
|
|
|
this._settings.set_int('showdesktop-button-width', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2020-05-12 19:00:51 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('show_showdesktop_delay_spinbutton').set_value(this._settings.get_int('show-showdesktop-delay'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('show_showdesktop_delay_spinbutton').connect('value-changed', (widget) => {
|
2020-05-12 19:00:51 -04:00
|
|
|
this._settings.set_int('show-showdesktop-delay', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2020-05-12 19:00:51 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('show_showdesktop_time_spinbutton').set_value(this._settings.get_int('show-showdesktop-time'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('show_showdesktop_time_spinbutton').connect('value-changed', (widget) => {
|
2020-05-12 19:00:51 -04:00
|
|
|
this._settings.set_int('show-showdesktop-time', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2020-05-12 19:00:51 -04:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(1, 1);
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2019-09-10 09:58:14 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
_addFormatValueCallbacks() {
|
2021-05-10 04:14:15 +02:00
|
|
|
// position
|
|
|
|
|
this._builder.get_object('panel_size_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return value + ' px';
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
// style
|
|
|
|
|
this._builder.get_object('appicon_margin_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return value + ' px';
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
this._builder.get_object('appicon_padding_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return value + ' px';
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
// fine-tune box1
|
|
|
|
|
this._builder.get_object('tray_size_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return value + ' px';
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
this._builder.get_object('leftbox_size_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return value + ' px';
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
// fine-tune box2
|
|
|
|
|
this._builder.get_object('tray_padding_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return value + ' px';
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
this._builder.get_object('statusicon_padding_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return value + ' px';
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
this._builder.get_object('leftbox_padding_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return value + ' px';
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
// animate hovering app icons dialog
|
|
|
|
|
this._builder.get_object('animate_appicon_hover_options_duration_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return _("%d ms").format(value);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
this._builder.get_object('animate_appicon_hover_options_rotation_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return _("%d °").format(value);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
this._builder.get_object('animate_appicon_hover_options_travel_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return _("%d %%").format(value);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
this._builder.get_object('animate_appicon_hover_options_zoom_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return _("%d %%").format(value);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
this._builder.get_object('animate_appicon_hover_options_convexity_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2021-05-10 04:14:15 +02:00
|
|
|
return _("%.1f").format(value);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2021-05-10 04:14:15 +02:00
|
|
|
|
|
|
|
|
this._builder.get_object('animate_appicon_hover_options_extent_scale')
|
2022-04-04 13:25:45 -04:00
|
|
|
.set_format_value_func((scale, value) => {
|
2023-08-20 17:36:57 +02:00
|
|
|
return ngettext("%d icon", "%d icons", value).format(value);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
|
|
|
|
}
|
2021-05-10 04:14:15 +02:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
_bindSettings() {
|
2016-12-22 18:12:04 -05:00
|
|
|
// size options
|
|
|
|
|
let panel_size_scale = this._builder.get_object('panel_size_scale');
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
panel_size_scale.set_range(DEFAULT_PANEL_SIZES[DEFAULT_PANEL_SIZES.length - 1], DEFAULT_PANEL_SIZES[0]);
|
2016-12-22 18:12:04 -05:00
|
|
|
DEFAULT_PANEL_SIZES.slice(1, -1).forEach(function(val) {
|
|
|
|
|
panel_size_scale.add_mark(val, Gtk.PositionType.TOP, val.toString());
|
|
|
|
|
});
|
|
|
|
|
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
// Correct for rtl languages
|
2016-12-22 18:12:04 -05:00
|
|
|
if (this._rtl) {
|
|
|
|
|
// Flip value position: this is not done automatically
|
|
|
|
|
panel_size_scale.set_value_pos(Gtk.PositionType.LEFT);
|
|
|
|
|
// I suppose due to a bug, having a more than one mark and one above a value of 100
|
|
|
|
|
// makes the rendering of the marks wrong in rtl. This doesn't happen setting the scale as not flippable
|
|
|
|
|
// and then manually inverting it
|
|
|
|
|
panel_size_scale.set_flippable(false);
|
|
|
|
|
panel_size_scale.set_inverted(true);
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-17 18:09:44 +03:00
|
|
|
// App icon style option
|
|
|
|
|
this._builder.get_object('appicon_style_combo').set_active_id(this._settings.get_string('appicon-style'));
|
|
|
|
|
this._builder.get_object('appicon_style_combo').connect('changed', (widget) => {
|
|
|
|
|
this._settings.set_string('appicon-style', widget.get_active_id());
|
|
|
|
|
});
|
|
|
|
|
|
2016-12-30 18:24:22 -05:00
|
|
|
// Dots Position option
|
|
|
|
|
let dotPosition = this._settings.get_string('dot-position');
|
|
|
|
|
|
|
|
|
|
switch (dotPosition) {
|
|
|
|
|
case 'BOTTOM':
|
|
|
|
|
this._builder.get_object('dots_bottom_button').set_active(true);
|
|
|
|
|
break;
|
|
|
|
|
case 'TOP':
|
|
|
|
|
this._builder.get_object('dots_top_button').set_active(true);
|
|
|
|
|
break;
|
2019-09-05 22:58:48 -04:00
|
|
|
case 'LEFT':
|
|
|
|
|
this._builder.get_object('dots_left_button').set_active(true);
|
|
|
|
|
break;
|
|
|
|
|
case 'RIGHT':
|
|
|
|
|
this._builder.get_object('dots_right_button').set_active(true);
|
|
|
|
|
break;
|
2016-12-30 18:24:22 -05:00
|
|
|
}
|
|
|
|
|
|
2017-02-17 23:48:12 -05:00
|
|
|
this._builder.get_object('dot_style_focused_combo').set_active_id(this._settings.get_string('dot-style-focused'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('dot_style_focused_combo').connect('changed', (widget) => {
|
2017-02-17 23:48:12 -05:00
|
|
|
this._settings.set_string('dot-style-focused', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-02-17 23:48:12 -05:00
|
|
|
|
|
|
|
|
this._builder.get_object('dot_style_unfocused_combo').set_active_id(this._settings.get_string('dot-style-unfocused'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('dot_style_unfocused_combo').connect('changed', (widget) => {
|
2017-02-17 23:48:12 -05:00
|
|
|
this._settings.set_string('dot-style-unfocused', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-02-17 23:48:12 -05:00
|
|
|
|
2017-02-19 08:17:15 -05:00
|
|
|
for (let i = 1; i <= MAX_WINDOW_INDICATOR; i++) {
|
|
|
|
|
let idx = i;
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('dot_color_' + idx + '_colorbutton').connect('color-set', (button) => {
|
2017-02-19 08:17:15 -05:00
|
|
|
let rgba = button.get_rgba();
|
|
|
|
|
let css = rgba.to_string();
|
|
|
|
|
let hexString = cssHexString(css);
|
|
|
|
|
this._settings.set_string('dot-color-' + idx, hexString);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-02-22 16:57:53 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('dot_color_unfocused_' + idx + '_colorbutton').connect('color-set', (button) => {
|
2017-02-22 16:57:53 -05:00
|
|
|
let rgba = button.get_rgba();
|
|
|
|
|
let css = rgba.to_string();
|
|
|
|
|
let hexString = cssHexString(css);
|
|
|
|
|
this._settings.set_string('dot-color-unfocused-' + idx, hexString);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-02-19 08:17:15 -05:00
|
|
|
}
|
2017-02-18 17:22:05 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('dot_color_apply_all_button').connect('clicked', () => {
|
2017-02-22 16:57:53 -05:00
|
|
|
for (let i = 2; i <= MAX_WINDOW_INDICATOR; i++) {
|
2018-01-14 13:53:58 -05:00
|
|
|
this._settings.set_value('dot-color-' + i, this._settings.get_value('dot-color-1'));
|
|
|
|
|
let rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('dot-color-' + i));
|
|
|
|
|
this._builder.get_object('dot_color_' + i + '_colorbutton').set_rgba(rgba);
|
2017-02-22 16:57:53 -05:00
|
|
|
}
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-02-22 16:57:53 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('dot_color_unfocused_apply_all_button').connect('clicked', () => {
|
2017-02-22 16:57:53 -05:00
|
|
|
for (let i = 2; i <= MAX_WINDOW_INDICATOR; i++) {
|
2018-01-14 13:53:58 -05:00
|
|
|
this._settings.set_value('dot-color-unfocused-' + i, this._settings.get_value('dot-color-unfocused-1'));
|
|
|
|
|
let rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('dot-color-unfocused-' + i));
|
|
|
|
|
this._builder.get_object('dot_color_unfocused_' + i + '_colorbutton').set_rgba(rgba);
|
2017-02-22 16:57:53 -05:00
|
|
|
}
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-02-22 16:57:53 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('focus_highlight_color_colorbutton').connect('color-set', (button) => {
|
2018-01-14 13:53:58 -05:00
|
|
|
let rgba = button.get_rgba();
|
|
|
|
|
let css = rgba.to_string();
|
|
|
|
|
let hexString = cssHexString(css);
|
|
|
|
|
this._settings.set_string('focus-highlight-color', hexString);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-01-14 13:53:58 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('dot_style_options_button').connect('clicked', () => {
|
2022-04-07 00:35:37 +02:00
|
|
|
let box = this._builder.get_object('box_dots_options');
|
|
|
|
|
|
|
|
|
|
let dialog = this._createPreferencesDialog(_('Running Indicator Options'), box, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings
|
|
|
|
|
this._settings.set_value('dot-color-dominant', this._settings.get_default_value('dot-color-dominant'));
|
|
|
|
|
this._settings.set_value('dot-color-override', this._settings.get_default_value('dot-color-override'));
|
|
|
|
|
this._settings.set_value('dot-color-unfocused-different', this._settings.get_default_value('dot-color-unfocused-different'));
|
2017-02-17 22:11:16 -05:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('focus-highlight-color', this._settings.get_default_value('focus-highlight-color'));
|
|
|
|
|
let rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('focus-highlight-color'));
|
|
|
|
|
this._builder.get_object('focus_highlight_color_colorbutton').set_rgba(rgba);
|
2017-02-17 22:11:16 -05:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('focus-highlight-opacity', this._settings.get_default_value('focus-highlight-opacity'));
|
|
|
|
|
this._builder.get_object('focus_highlight_opacity_spinbutton').set_value(this._settings.get_int('focus-highlight-opacity'));
|
2017-02-17 22:11:16 -05:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
for (let i = 1; i <= MAX_WINDOW_INDICATOR; i++) {
|
|
|
|
|
this._settings.set_value('dot-color-' + i, this._settings.get_default_value('dot-color-' + i));
|
|
|
|
|
rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('dot-color-' + i));
|
|
|
|
|
this._builder.get_object('dot_color_' + i + '_colorbutton').set_rgba(rgba);
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('dot-color-unfocused-' + i, this._settings.get_default_value('dot-color-unfocused-' + i));
|
|
|
|
|
rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('dot-color-unfocused-' + i));
|
|
|
|
|
this._builder.get_object('dot_color_unfocused_' + i + '_colorbutton').set_rgba(rgba);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('dot-size', this._settings.get_default_value('dot-size'));
|
|
|
|
|
this._builder.get_object('dot_size_spinbutton').set_value(this._settings.get_int('dot-size'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('focus-highlight', this._settings.get_default_value('focus-highlight'));
|
|
|
|
|
this._settings.set_value('focus-highlight-dominant', this._settings.get_default_value('focus-highlight-dominant'));
|
|
|
|
|
});
|
2017-02-17 22:11:16 -05:00
|
|
|
|
2019-05-02 10:08:14 -07:00
|
|
|
this._settings.bind('dot-color-dominant',
|
|
|
|
|
this._builder.get_object('dot_color_dominant_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2017-02-17 23:48:12 -05:00
|
|
|
this._settings.bind('dot-color-override',
|
|
|
|
|
this._builder.get_object('dot_color_override_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2017-02-22 16:57:53 -05:00
|
|
|
|
2019-05-02 10:08:14 -07:00
|
|
|
// when either becomes active, turn the other off
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('dot_color_dominant_switch').connect('state-set', (widget) => {
|
2019-05-02 10:08:14 -07:00
|
|
|
if (widget.get_active()) this._settings.set_boolean('dot-color-override', false);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
|
|
|
|
this._builder.get_object('dot_color_override_switch').connect('state-set', (widget) => {
|
2019-05-02 10:08:14 -07:00
|
|
|
if (widget.get_active()) this._settings.set_boolean('dot-color-dominant', false);
|
2022-04-18 16:51:35 +02:00
|
|
|
else this._settings.set_boolean('dot-color-unfocused-different', false);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-05-02 10:08:14 -07:00
|
|
|
|
2017-02-22 16:57:53 -05:00
|
|
|
this._settings.bind('dot-color-unfocused-different',
|
|
|
|
|
this._builder.get_object('dot_color_unfocused_different_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('dot-color-override',
|
|
|
|
|
this._builder.get_object('grid_dot_color'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2017-02-19 08:17:15 -05:00
|
|
|
|
2017-02-22 16:57:53 -05:00
|
|
|
this._settings.bind('dot-color-override',
|
|
|
|
|
this._builder.get_object('dot_color_unfocused_box'),
|
2017-02-19 08:17:15 -05:00
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2017-02-22 16:57:53 -05:00
|
|
|
this._settings.bind('dot-color-unfocused-different',
|
|
|
|
|
this._builder.get_object('grid_dot_color_unfocused'),
|
2017-02-19 08:17:15 -05:00
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2017-02-22 16:57:53 -05:00
|
|
|
|
|
|
|
|
for (let i = 1; i <= MAX_WINDOW_INDICATOR; i++) {
|
2017-02-19 08:17:15 -05:00
|
|
|
let rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('dot-color-' + i));
|
|
|
|
|
this._builder.get_object('dot_color_' + i + '_colorbutton').set_rgba(rgba);
|
2017-02-22 16:57:53 -05:00
|
|
|
|
|
|
|
|
rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('dot-color-unfocused-' + i));
|
|
|
|
|
this._builder.get_object('dot_color_unfocused_' + i + '_colorbutton').set_rgba(rgba);
|
2017-02-19 08:17:15 -05:00
|
|
|
}
|
2017-02-17 23:48:12 -05:00
|
|
|
|
|
|
|
|
this._settings.bind('focus-highlight',
|
|
|
|
|
this._builder.get_object('focus_highlight_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2018-01-17 12:37:32 -05:00
|
|
|
this._settings.bind('focus-highlight',
|
|
|
|
|
this._builder.get_object('grid_focus_highlight_options'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2019-05-02 21:21:13 -07:00
|
|
|
this._settings.bind('focus-highlight-dominant',
|
|
|
|
|
this._builder.get_object('focus_highlight_dominant_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('focus-highlight-dominant',
|
|
|
|
|
this._builder.get_object('focus_highlight_color_label'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.INVERT_BOOLEAN);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('focus-highlight-dominant',
|
|
|
|
|
this._builder.get_object('focus_highlight_color_colorbutton'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.INVERT_BOOLEAN);
|
|
|
|
|
|
|
|
|
|
|
2018-01-14 13:53:58 -05:00
|
|
|
(function() {
|
|
|
|
|
let rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('focus-highlight-color'));
|
|
|
|
|
this._builder.get_object('focus_highlight_color_colorbutton').set_rgba(rgba);
|
|
|
|
|
}).apply(this);
|
|
|
|
|
|
|
|
|
|
this._builder.get_object('focus_highlight_opacity_spinbutton').set_value(this._settings.get_int('focus-highlight-opacity'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('focus_highlight_opacity_spinbutton').connect('value-changed', (widget) => {
|
2018-01-14 13:53:58 -05:00
|
|
|
this._settings.set_int('focus-highlight-opacity', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-01-14 13:53:58 -05:00
|
|
|
|
2017-02-17 23:48:12 -05:00
|
|
|
this._builder.get_object('dot_size_spinbutton').set_value(this._settings.get_int('dot-size'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('dot_size_spinbutton').connect('value-changed', (widget) => {
|
2017-02-17 23:48:12 -05:00
|
|
|
this._settings.set_int('dot-size', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-02-17 22:11:16 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(1, 1);
|
2017-02-17 22:11:16 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-02-17 22:11:16 -05:00
|
|
|
|
2018-10-04 21:36:56 -04:00
|
|
|
//multi-monitor
|
2020-06-14 15:28:49 -04:00
|
|
|
this.monitors = this._settings.get_value('available-monitors').deep_unpack();
|
|
|
|
|
|
|
|
|
|
let dtpPrimaryMonitorIndex = this.monitors.indexOf(this._settings.get_int('primary-monitor'));
|
|
|
|
|
|
|
|
|
|
if (dtpPrimaryMonitorIndex < 0) {
|
|
|
|
|
dtpPrimaryMonitorIndex = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this._currentMonitorIndex = this.monitors[dtpPrimaryMonitorIndex];
|
|
|
|
|
|
|
|
|
|
this._settings.connect('changed::panel-positions', () => this._updateVerticalRelatedOptions());
|
|
|
|
|
this._updateVerticalRelatedOptions();
|
2020-05-12 19:00:51 -04:00
|
|
|
|
|
|
|
|
for (let i = 0; i < this.monitors.length; ++i) {
|
2022-04-06 13:51:55 -04:00
|
|
|
//the gnome-shell primary index is the first one in the "available-monitors" setting
|
2020-05-12 19:00:51 -04:00
|
|
|
let label = !i ? _('Primary monitor') : _('Monitor ') + (i + 1);
|
2018-10-04 21:36:56 -04:00
|
|
|
|
2020-05-12 19:00:51 -04:00
|
|
|
this._builder.get_object('multimon_primary_combo').append_text(label);
|
|
|
|
|
this._builder.get_object('taskbar_position_monitor_combo').append_text(label);
|
2018-10-04 21:36:56 -04:00
|
|
|
}
|
2020-06-14 15:28:49 -04:00
|
|
|
|
2020-05-13 20:49:59 -04:00
|
|
|
this._builder.get_object('multimon_primary_combo').set_active(dtpPrimaryMonitorIndex);
|
|
|
|
|
this._builder.get_object('taskbar_position_monitor_combo').set_active(dtpPrimaryMonitorIndex);
|
2020-05-12 19:00:51 -04:00
|
|
|
|
2020-05-17 09:42:07 -04:00
|
|
|
this._settings.bind('panel-element-positions-monitors-sync',
|
|
|
|
|
this._builder.get_object('taskbar_position_sync_button'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('panel-element-positions-monitors-sync',
|
|
|
|
|
this._builder.get_object('taskbar_position_monitor_combo'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.INVERT_BOOLEAN);
|
|
|
|
|
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
this._settings.connect('changed::panel-element-positions-monitors-sync', () => {
|
|
|
|
|
this._maybeDisableTopPosition();
|
|
|
|
|
// The anchor combo box may has different labels for single- or all-monitor configuration.
|
|
|
|
|
this._setAnchorLabels(this._currentMonitorIndex);
|
|
|
|
|
});
|
2020-06-14 15:28:49 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('multimon_primary_combo').connect('changed', (widget) => {
|
2020-05-12 19:00:51 -04:00
|
|
|
this._settings.set_int('primary-monitor', this.monitors[widget.get_active()]);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2020-05-12 19:00:51 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('taskbar_position_monitor_combo').connect('changed', (widget) => {
|
2020-06-14 15:28:49 -04:00
|
|
|
this._currentMonitorIndex = this.monitors[widget.get_active()];
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
this._updateWidgetSettingsForMonitor(this._currentMonitorIndex);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-04 21:36:56 -04:00
|
|
|
|
|
|
|
|
this._settings.bind('multi-monitors',
|
|
|
|
|
this._builder.get_object('multimon_multi_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2020-05-12 19:00:51 -04:00
|
|
|
if (this.monitors.length === 1) {
|
2020-05-13 20:49:59 -04:00
|
|
|
this._builder.get_object('multimon_multi_switch').set_sensitive(false);
|
2018-10-22 18:02:02 -04:00
|
|
|
}
|
2020-07-31 15:58:33 -06:00
|
|
|
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
const panel_length_scale = this._builder.get_object('panel_length_scale');
|
2022-04-04 13:25:45 -04:00
|
|
|
panel_length_scale.connect('value-changed', (widget) => {
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
const value = widget.get_value();
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
const monitorSync = this._settings.get_boolean('panel-element-positions-monitors-sync');
|
|
|
|
|
const monitorsToSetFor = monitorSync ? this.monitors : [this._currentMonitorIndex];
|
|
|
|
|
monitorsToSetFor.forEach(monitorIndex => {
|
|
|
|
|
PanelSettings.setPanelLength(this._settings, monitorIndex, value);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this._setAnchorWidgetSensitivity(value);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2020-07-31 15:58:33 -06:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('panel_anchor_combo').connect('changed', (widget) => {
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
const value = widget.get_active_id();
|
|
|
|
|
// Value can be null while anchor labels are being swapped out
|
|
|
|
|
if (value !== null) {
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
const monitorSync = this._settings.get_boolean('panel-element-positions-monitors-sync');
|
|
|
|
|
const monitorsToSetFor = monitorSync ? this.monitors : [this._currentMonitorIndex];
|
|
|
|
|
monitorsToSetFor.forEach(monitorIndex => {
|
|
|
|
|
PanelSettings.setPanelAnchor(this._settings, monitorIndex, value);
|
|
|
|
|
});
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
}
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2020-07-31 15:58:33 -06:00
|
|
|
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
this._updateWidgetSettingsForMonitor(this._currentMonitorIndex);
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
|
2018-10-14 13:35:07 -04:00
|
|
|
//dynamic opacity
|
|
|
|
|
this._settings.bind('trans-use-custom-bg',
|
|
|
|
|
this._builder.get_object('trans_bg_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('trans-use-custom-bg',
|
|
|
|
|
this._builder.get_object('trans_bg_color_colorbutton'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
let rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('trans-bg-color'));
|
|
|
|
|
this._builder.get_object('trans_bg_color_colorbutton').set_rgba(rgba);
|
|
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('trans_bg_color_colorbutton').connect('color-set', (button) => {
|
2018-10-14 13:35:07 -04:00
|
|
|
let rgba = button.get_rgba();
|
|
|
|
|
let css = rgba.to_string();
|
|
|
|
|
let hexString = cssHexString(css);
|
|
|
|
|
this._settings.set_string('trans-bg-color', hexString);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-14 13:35:07 -04:00
|
|
|
|
|
|
|
|
this._settings.bind('trans-use-custom-opacity',
|
|
|
|
|
this._builder.get_object('trans_opacity_override_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('trans-use-custom-opacity',
|
|
|
|
|
this._builder.get_object('trans_opacity_box'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2022-04-18 16:51:35 +02:00
|
|
|
this._settings.bind('trans-use-custom-opacity',
|
|
|
|
|
this._builder.get_object('trans_opacity_box2'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2022-04-07 20:38:04 +02:00
|
|
|
|
2018-10-14 13:35:07 -04:00
|
|
|
this._builder.get_object('trans_opacity_override_switch').connect('notify::active', (widget) => {
|
|
|
|
|
if (!widget.get_active())
|
|
|
|
|
this._builder.get_object('trans_dyn_switch').set_active(false);
|
|
|
|
|
});
|
|
|
|
|
|
2018-10-17 13:21:51 -04:00
|
|
|
this._builder.get_object('trans_opacity_spinbutton').set_value(this._settings.get_double('trans-panel-opacity') * 100);
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('trans_opacity_spinbutton').connect('value-changed', (widget) => {
|
2018-10-17 13:21:51 -04:00
|
|
|
this._settings.set_double('trans-panel-opacity', widget.get_value() * 0.01);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-14 13:35:07 -04:00
|
|
|
|
|
|
|
|
this._settings.bind('trans-use-dynamic-opacity',
|
|
|
|
|
this._builder.get_object('trans_dyn_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('trans-use-dynamic-opacity',
|
|
|
|
|
this._builder.get_object('trans_dyn_options_button'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2018-10-15 10:21:34 -04:00
|
|
|
this._settings.bind('trans-dynamic-behavior',
|
|
|
|
|
this._builder.get_object('trans_options_window_type_combo'),
|
|
|
|
|
'active-id',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2018-10-17 13:21:51 -04:00
|
|
|
this._settings.bind('trans-use-custom-gradient',
|
|
|
|
|
this._builder.get_object('trans_gradient_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('trans-use-custom-gradient',
|
|
|
|
|
this._builder.get_object('trans_gradient_box'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2022-04-18 16:51:35 +02:00
|
|
|
this._settings.bind('trans-use-custom-gradient',
|
|
|
|
|
this._builder.get_object('trans_gradient_box2'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2022-04-07 20:38:04 +02:00
|
|
|
|
2018-10-17 13:21:51 -04:00
|
|
|
rgba.parse(this._settings.get_string('trans-gradient-top-color'));
|
|
|
|
|
this._builder.get_object('trans_gradient_color1_colorbutton').set_rgba(rgba);
|
|
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('trans_gradient_color1_colorbutton').connect('color-set', (button) => {
|
2018-10-17 13:21:51 -04:00
|
|
|
let rgba = button.get_rgba();
|
|
|
|
|
let css = rgba.to_string();
|
|
|
|
|
let hexString = cssHexString(css);
|
|
|
|
|
this._settings.set_string('trans-gradient-top-color', hexString);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-17 13:21:51 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('trans_gradient_color1_spinbutton').set_value(this._settings.get_double('trans-gradient-top-opacity') * 100);
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('trans_gradient_color1_spinbutton').connect('value-changed', (widget) => {
|
2018-10-17 13:21:51 -04:00
|
|
|
this._settings.set_double('trans-gradient-top-opacity', widget.get_value() * 0.01);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-17 13:21:51 -04:00
|
|
|
|
|
|
|
|
rgba.parse(this._settings.get_string('trans-gradient-bottom-color'));
|
|
|
|
|
this._builder.get_object('trans_gradient_color2_colorbutton').set_rgba(rgba);
|
|
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('trans_gradient_color2_colorbutton').connect('color-set', (button) => {
|
2018-10-17 13:21:51 -04:00
|
|
|
let rgba = button.get_rgba();
|
|
|
|
|
let css = rgba.to_string();
|
|
|
|
|
let hexString = cssHexString(css);
|
|
|
|
|
this._settings.set_string('trans-gradient-bottom-color', hexString);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-17 13:21:51 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('trans_gradient_color2_spinbutton').set_value(this._settings.get_double('trans-gradient-bottom-opacity') * 100);
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('trans_gradient_color2_spinbutton').connect('value-changed', (widget) => {
|
2018-10-17 13:21:51 -04:00
|
|
|
this._settings.set_double('trans-gradient-bottom-opacity', widget.get_value() * 0.01);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-17 13:21:51 -04:00
|
|
|
|
2018-10-14 13:35:07 -04:00
|
|
|
this._builder.get_object('trans_options_distance_spinbutton').set_value(this._settings.get_int('trans-dynamic-distance'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('trans_options_distance_spinbutton').connect('value-changed', (widget) => {
|
2018-10-14 13:35:07 -04:00
|
|
|
this._settings.set_int('trans-dynamic-distance', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-14 13:35:07 -04:00
|
|
|
|
2018-10-17 13:21:51 -04:00
|
|
|
this._builder.get_object('trans_options_min_opacity_spinbutton').set_value(this._settings.get_double('trans-dynamic-anim-target') * 100);
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('trans_options_min_opacity_spinbutton').connect('value-changed', (widget) => {
|
2018-10-17 13:21:51 -04:00
|
|
|
this._settings.set_double('trans-dynamic-anim-target', widget.get_value() * 0.01);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-17 13:21:51 -04:00
|
|
|
|
2018-10-14 13:35:07 -04:00
|
|
|
this._builder.get_object('trans_options_anim_time_spinbutton').set_value(this._settings.get_int('trans-dynamic-anim-time'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('trans_options_anim_time_spinbutton').connect('value-changed', (widget) => {
|
2018-10-14 13:35:07 -04:00
|
|
|
this._settings.set_int('trans-dynamic-anim-time', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-14 13:35:07 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('trans_dyn_options_button').connect('clicked', () => {
|
2018-10-14 13:35:07 -04:00
|
|
|
let box = this._builder.get_object('box_dynamic_opacity_options');
|
|
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
let dialog = this._createPreferencesDialog(_('Dynamic opacity options'), box, () =>
|
|
|
|
|
{
|
2018-10-14 13:35:07 -04:00
|
|
|
// restore default settings
|
2018-10-15 10:21:34 -04:00
|
|
|
this._settings.set_value('trans-dynamic-behavior', this._settings.get_default_value('trans-dynamic-behavior'));
|
|
|
|
|
|
2018-10-14 13:35:07 -04:00
|
|
|
this._settings.set_value('trans-dynamic-distance', this._settings.get_default_value('trans-dynamic-distance'));
|
|
|
|
|
this._builder.get_object('trans_options_distance_spinbutton').set_value(this._settings.get_int('trans-dynamic-distance'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('trans-dynamic-anim-target', this._settings.get_default_value('trans-dynamic-anim-target'));
|
2018-10-18 00:33:37 -04:00
|
|
|
this._builder.get_object('trans_options_min_opacity_spinbutton').set_value(this._settings.get_double('trans-dynamic-anim-target') * 100);
|
2018-10-14 13:35:07 -04:00
|
|
|
|
|
|
|
|
this._settings.set_value('trans-dynamic-anim-time', this._settings.get_default_value('trans-dynamic-anim-time'));
|
|
|
|
|
this._builder.get_object('trans_options_anim_time_spinbutton').set_value(this._settings.get_int('trans-dynamic-anim-time'));
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-14 13:35:07 -04:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(1, 1);
|
2018-10-14 13:35:07 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2020-07-26 18:57:11 -03:00
|
|
|
|
|
|
|
|
this._settings.bind('desktop-line-use-custom-color',
|
|
|
|
|
this._builder.get_object('override_show_desktop_line_color_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('desktop-line-use-custom-color',
|
|
|
|
|
this._builder.get_object('override_show_desktop_line_color_colorbutton'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
rgba.parse(this._settings.get_string('desktop-line-custom-color'));
|
|
|
|
|
this._builder.get_object('override_show_desktop_line_color_colorbutton').set_rgba(rgba);
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('override_show_desktop_line_color_colorbutton').connect('color-set', (button) => {
|
2020-07-26 18:57:11 -03:00
|
|
|
let rgba = button.get_rgba();
|
|
|
|
|
let css = rgba.to_string();
|
|
|
|
|
this._settings.set_string('desktop-line-custom-color', css);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-14 13:35:07 -04:00
|
|
|
|
|
|
|
|
|
2018-03-10 12:08:22 -06:00
|
|
|
this._settings.bind('intellihide',
|
|
|
|
|
this._builder.get_object('intellihide_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('intellihide',
|
|
|
|
|
this._builder.get_object('intellihide_options_button'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('intellihide-hide-from-windows',
|
|
|
|
|
this._builder.get_object('intellihide_window_hide_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('intellihide-hide-from-windows',
|
|
|
|
|
this._builder.get_object('intellihide_behaviour_options'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('intellihide-behaviour',
|
|
|
|
|
this._builder.get_object('intellihide_behaviour_combo'),
|
|
|
|
|
'active-id',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('intellihide-use-pressure',
|
|
|
|
|
this._builder.get_object('intellihide_use_pressure_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('intellihide-use-pressure',
|
|
|
|
|
this._builder.get_object('intellihide_use_pressure_options'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2022-04-18 16:51:35 +02:00
|
|
|
this._settings.bind('intellihide-use-pressure',
|
|
|
|
|
this._builder.get_object('intellihide_use_pressure_options2'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2022-04-09 15:45:47 +02:00
|
|
|
|
2018-03-10 12:08:22 -06:00
|
|
|
this._settings.bind('intellihide-show-in-fullscreen',
|
|
|
|
|
this._builder.get_object('intellihide_show_in_fullscreen_switch'),
|
|
|
|
|
'active',
|
2019-02-02 20:59:10 -05:00
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('intellihide-only-secondary',
|
|
|
|
|
this._builder.get_object('intellihide_only_secondary_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('multi-monitors',
|
|
|
|
|
this._builder.get_object('grid_intellihide_only_secondary'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._builder.get_object('multimon_multi_switch').connect('notify::active', (widget) => {
|
|
|
|
|
if (!widget.get_active())
|
|
|
|
|
this._builder.get_object('intellihide_only_secondary_switch').set_active(false);
|
|
|
|
|
});
|
2018-03-10 12:08:22 -06:00
|
|
|
|
|
|
|
|
this._builder.get_object('intellihide_pressure_threshold_spinbutton').set_value(this._settings.get_int('intellihide-pressure-threshold'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('intellihide_pressure_threshold_spinbutton').connect('value-changed', (widget) => {
|
2018-03-10 12:08:22 -06:00
|
|
|
this._settings.set_int('intellihide-pressure-threshold', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-03-10 12:08:22 -06:00
|
|
|
|
|
|
|
|
this._builder.get_object('intellihide_pressure_time_spinbutton').set_value(this._settings.get_int('intellihide-pressure-time'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('intellihide_pressure_time_spinbutton').connect('value-changed', (widget) => {
|
2018-03-10 12:08:22 -06:00
|
|
|
this._settings.set_int('intellihide-pressure-time', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-03-10 12:08:22 -06:00
|
|
|
|
2018-10-24 22:10:17 -04:00
|
|
|
this._settings.bind('intellihide-key-toggle-text',
|
|
|
|
|
this._builder.get_object('intellihide_toggle_entry'),
|
|
|
|
|
'text',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
this._settings.connect('changed::intellihide-key-toggle-text', () => setShortcut(this._settings, 'intellihide-key-toggle'));
|
|
|
|
|
|
2018-03-10 12:08:22 -06:00
|
|
|
this._builder.get_object('intellihide_animation_time_spinbutton').set_value(this._settings.get_int('intellihide-animation-time'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('intellihide_animation_time_spinbutton').connect('value-changed', (widget) => {
|
2018-03-10 12:08:22 -06:00
|
|
|
this._settings.set_int('intellihide-animation-time', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-03-10 12:08:22 -06:00
|
|
|
|
|
|
|
|
this._builder.get_object('intellihide_close_delay_spinbutton').set_value(this._settings.get_int('intellihide-close-delay'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('intellihide_close_delay_spinbutton').connect('value-changed', (widget) => {
|
2018-03-10 12:08:22 -06:00
|
|
|
this._settings.set_int('intellihide-close-delay', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-03-10 12:08:22 -06:00
|
|
|
|
2019-09-28 17:50:07 -04:00
|
|
|
this._builder.get_object('intellihide_enable_start_delay_spinbutton').set_value(this._settings.get_int('intellihide-enable-start-delay'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('intellihide_enable_start_delay_spinbutton').connect('value-changed', (widget) => {
|
2019-09-28 17:50:07 -04:00
|
|
|
this._settings.set_int('intellihide-enable-start-delay', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-09-28 17:50:07 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('intellihide_options_button').connect('clicked', () => {
|
2018-03-10 12:08:22 -06:00
|
|
|
let box = this._builder.get_object('box_intellihide_options');
|
|
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
let dialog = this._createPreferencesDialog(_('Intellihide options'), box, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings
|
|
|
|
|
this._settings.set_value('intellihide-hide-from-windows', this._settings.get_default_value('intellihide-hide-from-windows'));
|
|
|
|
|
this._settings.set_value('intellihide-behaviour', this._settings.get_default_value('intellihide-behaviour'));
|
|
|
|
|
this._settings.set_value('intellihide-use-pressure', this._settings.get_default_value('intellihide-use-pressure'));
|
|
|
|
|
this._settings.set_value('intellihide-show-in-fullscreen', this._settings.get_default_value('intellihide-show-in-fullscreen'));
|
|
|
|
|
this._settings.set_value('intellihide-only-secondary', this._settings.get_default_value('intellihide-only-secondary'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('intellihide-pressure-threshold', this._settings.get_default_value('intellihide-pressure-threshold'));
|
|
|
|
|
this._builder.get_object('intellihide_pressure_threshold_spinbutton').set_value(this._settings.get_int('intellihide-pressure-threshold'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('intellihide-pressure-time', this._settings.get_default_value('intellihide-pressure-time'));
|
|
|
|
|
this._builder.get_object('intellihide_pressure_time_spinbutton').set_value(this._settings.get_int('intellihide-pressure-time'));
|
2018-03-10 12:08:22 -06:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('intellihide-key-toggle-text', this._settings.get_default_value('intellihide-key-toggle-text'));
|
2018-10-24 22:10:17 -04:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('intellihide-animation-time', this._settings.get_default_value('intellihide-animation-time'));
|
|
|
|
|
this._builder.get_object('intellihide_animation_time_spinbutton').set_value(this._settings.get_int('intellihide-animation-time'));
|
2018-03-10 12:08:22 -06:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('intellihide-close-delay', this._settings.get_default_value('intellihide-close-delay'));
|
|
|
|
|
this._builder.get_object('intellihide_close_delay_spinbutton').set_value(this._settings.get_int('intellihide-close-delay'));
|
2019-09-28 17:50:07 -04:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('intellihide-enable-start-delay', this._settings.get_default_value('intellihide-enable-start-delay'));
|
|
|
|
|
this._builder.get_object('intellihide_enable_start_delay_spinbutton').set_value(this._settings.get_int('intellihide-enable-start-delay'));
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-03-10 12:08:22 -06:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(1, 1);
|
2018-03-10 12:08:22 -06:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-03-10 12:08:22 -06:00
|
|
|
|
2016-12-22 18:12:04 -05:00
|
|
|
// Behavior panel
|
|
|
|
|
|
2019-01-14 22:53:14 -05:00
|
|
|
this._builder.get_object('show_applications_side_padding_spinbutton').set_value(this._settings.get_int('show-apps-icon-side-padding'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('show_applications_side_padding_spinbutton').connect('value-changed', (widget) => {
|
2019-01-14 22:53:14 -05:00
|
|
|
this._settings.set_int('show-apps-icon-side-padding', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-03-11 16:09:21 -06:00
|
|
|
|
2020-05-01 17:40:55 -04:00
|
|
|
this._settings.bind('show-apps-override-escape',
|
|
|
|
|
this._builder.get_object('show_applications_esc_key_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2018-01-23 10:37:04 -05:00
|
|
|
|
2019-02-04 21:59:37 -05:00
|
|
|
this._settings.bind('show-showdesktop-hover',
|
|
|
|
|
this._builder.get_object('show_showdesktop_hide_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('show-showdesktop-hover',
|
|
|
|
|
this._builder.get_object('grid_show_showdesktop_hide_options'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2022-04-18 16:51:35 +02:00
|
|
|
this._settings.bind('show-showdesktop-hover',
|
|
|
|
|
this._builder.get_object('grid_show_showdesktop_hide_options2'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2022-04-09 00:04:04 +02:00
|
|
|
|
2017-01-10 20:17:01 -05:00
|
|
|
this._settings.bind('show-window-previews',
|
|
|
|
|
this._builder.get_object('show_window_previews_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2019-02-03 10:16:31 -05:00
|
|
|
|
|
|
|
|
this._settings.bind('show-window-previews',
|
2017-04-15 15:20:56 +02:00
|
|
|
this._builder.get_object('show_window_previews_button'),
|
2017-02-06 22:42:22 -05:00
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2019-02-03 10:16:31 -05:00
|
|
|
|
|
|
|
|
this._settings.bind('show-tooltip',
|
|
|
|
|
this._builder.get_object('show_tooltip_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2017-06-27 11:05:18 +02:00
|
|
|
this._settings.bind('show-favorites',
|
|
|
|
|
this._builder.get_object('show_favorite_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2017-04-15 15:20:56 +02:00
|
|
|
|
2020-05-04 19:39:17 -04:00
|
|
|
this._settings.bind('show-favorites-all-monitors',
|
|
|
|
|
this._builder.get_object('multimon_multi_show_favorites_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('show-favorites',
|
|
|
|
|
this._builder.get_object('multimon_multi_show_favorites_switch'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2019-06-25 17:32:47 -04:00
|
|
|
this._settings.bind('show-running-apps',
|
|
|
|
|
this._builder.get_object('show_runnning_apps_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2019-08-22 08:56:31 -04:00
|
|
|
this._setPreviewTitlePosition();
|
2019-05-24 20:41:55 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('grid_preview_title_font_color_colorbutton').connect('color-set', (button) => {
|
2019-05-23 20:08:49 -04:00
|
|
|
let rgba = button.get_rgba();
|
|
|
|
|
let css = rgba.to_string();
|
|
|
|
|
let hexString = cssHexString(css);
|
|
|
|
|
this._settings.set_string('window-preview-title-font-color', hexString);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-05-23 20:08:49 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('show_window_previews_button').connect('clicked', () => {
|
2022-04-07 00:35:37 +02:00
|
|
|
let scrolledWindow = this._builder.get_object('box_window_preview_options');
|
2017-04-15 15:20:56 +02:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
let dialog = this._createPreferencesDialog(_('Window preview options'), scrolledWindow, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings
|
|
|
|
|
this._settings.set_value('show-window-previews-timeout', this._settings.get_default_value('show-window-previews-timeout'));
|
|
|
|
|
this._builder.get_object('preview_timeout_spinbutton').set_value(this._settings.get_int('show-window-previews-timeout'));
|
2017-04-15 15:20:56 +02:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('leave-timeout', this._settings.get_default_value('leave-timeout'));
|
|
|
|
|
this._builder.get_object('leave_timeout_spinbutton').set_value(this._settings.get_int('leave-timeout'));
|
2017-04-15 15:20:56 +02:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('window-preview-hide-immediate-click', this._settings.get_default_value('window-preview-hide-immediate-click'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('window-preview-animation-time', this._settings.get_default_value('window-preview-animation-time'));
|
|
|
|
|
this._builder.get_object('animation_time_spinbutton').set_value(this._settings.get_int('window-preview-animation-time'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('preview-use-custom-opacity', this._settings.get_default_value('preview-use-custom-opacity'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('window-preview-use-custom-icon-size', this._settings.get_default_value('window-preview-use-custom-icon-size'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('preview-custom-opacity', this._settings.get_default_value('preview-custom-opacity'));
|
|
|
|
|
this._builder.get_object('preview_custom_opacity_spinbutton').set_value(this._settings.get_int('preview-custom-opacity'));
|
2019-06-02 21:34:02 -04:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('window-preview-title-position', this._settings.get_default_value('window-preview-title-position'));
|
|
|
|
|
this._setPreviewTitlePosition();
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('peek-mode', this._settings.get_default_value('peek-mode'));
|
|
|
|
|
this._settings.set_value('window-preview-show-title', this._settings.get_default_value('window-preview-show-title'));
|
|
|
|
|
this._settings.set_value('enter-peek-mode-timeout', this._settings.get_default_value('enter-peek-mode-timeout'));
|
|
|
|
|
this._builder.get_object('enter_peek_mode_timeout_spinbutton').set_value(this._settings.get_int('enter-peek-mode-timeout'));
|
|
|
|
|
this._settings.set_value('peek-mode-opacity', this._settings.get_default_value('peek-mode-opacity'));
|
|
|
|
|
this._builder.get_object('peek_mode_opacity_spinbutton').set_value(this._settings.get_int('peek-mode-opacity'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('window-preview-size', this._settings.get_default_value('window-preview-size'));
|
|
|
|
|
this._builder.get_object('preview_size_spinbutton').set_value(this._settings.get_int('window-preview-size'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('window-preview-fixed-x', this._settings.get_default_value('window-preview-fixed-x'));
|
|
|
|
|
this._settings.set_value('window-preview-fixed-y', this._settings.get_default_value('window-preview-fixed-y'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('window-preview-aspect-ratio-x', this._settings.get_default_value('window-preview-aspect-ratio-x'));
|
|
|
|
|
this._builder.get_object('preview_aspect_ratio_x_combo').set_active_id(this._settings.get_int('window-preview-aspect-ratio-x').toString());
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('window-preview-aspect-ratio-y', this._settings.get_default_value('window-preview-aspect-ratio-y'));
|
|
|
|
|
this._builder.get_object('preview_aspect_ratio_y_combo').set_active_id(this._settings.get_int('window-preview-aspect-ratio-y').toString());
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('window-preview-padding', this._settings.get_default_value('window-preview-padding'));
|
|
|
|
|
this._builder.get_object('preview_padding_spinbutton').set_value(this._settings.get_int('window-preview-padding'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('preview-middle-click-close', this._settings.get_default_value('preview-middle-click-close'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('window-preview-title-font-size', this._settings.get_default_value('window-preview-title-font-size'));
|
|
|
|
|
this._builder.get_object('preview_title_size_spinbutton').set_value(this._settings.get_int('window-preview-title-font-size'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('window-preview-custom-icon-size', this._settings.get_default_value('window-preview-custom-icon-size'));
|
|
|
|
|
this._builder.get_object('preview_custom_icon_size_spinbutton').set_value(this._settings.get_int('window-preview-custom-icon-size'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('window-preview-title-font-weight', this._settings.get_default_value('window-preview-title-font-weight'));
|
|
|
|
|
this._builder.get_object('grid_preview_title_weight_combo').set_active_id(this._settings.get_string('window-preview-title-font-weight'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('window-preview-title-font-color', this._settings.get_default_value('window-preview-title-font-color'));
|
|
|
|
|
let rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('window-preview-title-font-color'));
|
|
|
|
|
this._builder.get_object('grid_preview_title_font_color_colorbutton').set_rgba(rgba);
|
|
|
|
|
});
|
2017-04-15 15:20:56 +02:00
|
|
|
|
|
|
|
|
this._builder.get_object('preview_timeout_spinbutton').set_value(this._settings.get_int('show-window-previews-timeout'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('preview_timeout_spinbutton').connect('value-changed', (widget) => {
|
2017-04-15 15:20:56 +02:00
|
|
|
this._settings.set_int('show-window-previews-timeout', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-04-15 15:20:56 +02:00
|
|
|
|
2019-05-23 20:08:49 -04:00
|
|
|
this._settings.bind('preview-middle-click-close',
|
|
|
|
|
this._builder.get_object('preview_middle_click_close_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2019-05-29 21:24:25 -04:00
|
|
|
this._settings.bind('window-preview-fixed-x',
|
|
|
|
|
this._builder.get_object('preview_aspect_ratio_x_fixed_togglebutton'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('window-preview-fixed-y',
|
|
|
|
|
this._builder.get_object('preview_aspect_ratio_y_fixed_togglebutton'),
|
2019-05-26 13:43:42 -04:00
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2019-06-06 23:02:01 -04:00
|
|
|
|
|
|
|
|
this._settings.bind('preview-use-custom-opacity',
|
|
|
|
|
this._builder.get_object('preview_custom_opacity_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
this._settings.bind('preview-use-custom-opacity',
|
|
|
|
|
this._builder.get_object('preview_custom_opacity_spinbutton'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2020-07-25 11:36:56 -03:00
|
|
|
this._settings.bind('window-preview-use-custom-icon-size',
|
|
|
|
|
this._builder.get_object('preview_custom_icon_size_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
this._settings.bind('window-preview-use-custom-icon-size',
|
|
|
|
|
this._builder.get_object('preview_custom_icon_size_spinbutton'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2019-06-06 23:02:01 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('preview_custom_opacity_spinbutton').set_value(this._settings.get_int('preview-custom-opacity'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('preview_custom_opacity_spinbutton').connect('value-changed', (widget) => {
|
2019-06-06 23:02:01 -04:00
|
|
|
this._settings.set_int('preview-custom-opacity', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-05-26 13:43:42 -04:00
|
|
|
|
2017-04-15 15:20:56 +02:00
|
|
|
this._settings.bind('peek-mode',
|
2017-04-07 22:14:47 +02:00
|
|
|
this._builder.get_object('peek_mode_switch'),
|
|
|
|
|
'active',
|
2017-02-06 22:42:22 -05:00
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2019-05-23 20:08:49 -04:00
|
|
|
this._settings.bind('peek-mode',
|
|
|
|
|
this._builder.get_object('grid_enter_peek_mode_timeout'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
this._settings.bind('peek-mode',
|
|
|
|
|
this._builder.get_object('grid_peek_mode_opacity'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2018-04-05 23:03:50 -05:00
|
|
|
this._settings.bind('window-preview-show-title',
|
|
|
|
|
this._builder.get_object('preview_show_title_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2020-08-02 11:02:28 -04:00
|
|
|
this._settings.bind('window-preview-show-title',
|
|
|
|
|
this._builder.get_object('grid_preview_custom_icon_size'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2019-05-23 20:08:49 -04:00
|
|
|
this._settings.bind('window-preview-show-title',
|
|
|
|
|
this._builder.get_object('grid_preview_title_size'),
|
2017-05-12 16:58:31 -04:00
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2019-05-23 20:08:49 -04:00
|
|
|
this._settings.bind('window-preview-show-title',
|
|
|
|
|
this._builder.get_object('grid_preview_title_weight'),
|
2017-05-12 16:58:31 -04:00
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2019-05-23 20:08:49 -04:00
|
|
|
this._settings.bind('window-preview-show-title',
|
|
|
|
|
this._builder.get_object('grid_preview_title_font_color'),
|
|
|
|
|
'sensitive',
|
2017-09-27 17:44:44 +01:00
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2017-02-06 18:03:42 -05:00
|
|
|
|
2017-04-15 15:20:56 +02:00
|
|
|
this._builder.get_object('enter_peek_mode_timeout_spinbutton').set_value(this._settings.get_int('enter-peek-mode-timeout'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('enter_peek_mode_timeout_spinbutton').connect('value-changed', (widget) => {
|
2017-04-15 15:20:56 +02:00
|
|
|
this._settings.set_int('enter-peek-mode-timeout', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-04-15 15:20:56 +02:00
|
|
|
|
2019-05-23 20:08:49 -04:00
|
|
|
this._builder.get_object('leave_timeout_spinbutton').set_value(this._settings.get_int('leave-timeout'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('leave_timeout_spinbutton').connect('value-changed', (widget) => {
|
2019-05-23 20:08:49 -04:00
|
|
|
this._settings.set_int('leave-timeout', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-04-15 15:20:56 +02:00
|
|
|
|
2019-08-22 08:10:35 -04:00
|
|
|
this._settings.bind('window-preview-hide-immediate-click',
|
|
|
|
|
this._builder.get_object('preview_immediate_click_button'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2019-05-24 18:17:13 -04:00
|
|
|
this._builder.get_object('animation_time_spinbutton').set_value(this._settings.get_int('window-preview-animation-time'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('animation_time_spinbutton').connect('value-changed', (widget) => {
|
2019-05-24 18:17:13 -04:00
|
|
|
this._settings.set_int('window-preview-animation-time', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-05-24 18:17:13 -04:00
|
|
|
|
2019-05-23 20:08:49 -04:00
|
|
|
this._builder.get_object('peek_mode_opacity_spinbutton').set_value(this._settings.get_int('peek-mode-opacity'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('peek_mode_opacity_spinbutton').connect('value-changed', (widget) => {
|
2017-04-15 15:20:56 +02:00
|
|
|
this._settings.set_int('peek-mode-opacity', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-04-15 15:20:56 +02:00
|
|
|
|
2019-05-23 20:08:49 -04:00
|
|
|
this._builder.get_object('preview_size_spinbutton').set_value(this._settings.get_int('window-preview-size'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('preview_size_spinbutton').connect('value-changed', (widget) => {
|
2019-05-23 20:08:49 -04:00
|
|
|
this._settings.set_int('window-preview-size', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-04-08 08:12:52 -05:00
|
|
|
|
2019-05-29 21:24:25 -04:00
|
|
|
this._builder.get_object('preview_aspect_ratio_x_combo').set_active_id(this._settings.get_int('window-preview-aspect-ratio-x').toString());
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('preview_aspect_ratio_x_combo').connect('changed', (widget) => {
|
2019-05-29 21:24:25 -04:00
|
|
|
this._settings.set_int('window-preview-aspect-ratio-x', parseInt(widget.get_active_id(), 10));
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-05-29 21:24:25 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('preview_aspect_ratio_y_combo').set_active_id(this._settings.get_int('window-preview-aspect-ratio-y').toString());
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('preview_aspect_ratio_y_combo').connect('changed', (widget) => {
|
2019-05-29 21:24:25 -04:00
|
|
|
this._settings.set_int('window-preview-aspect-ratio-y', parseInt(widget.get_active_id(), 10));
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-05-29 21:24:25 -04:00
|
|
|
|
2018-04-08 08:12:52 -05:00
|
|
|
this._builder.get_object('preview_padding_spinbutton').set_value(this._settings.get_int('window-preview-padding'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('preview_padding_spinbutton').connect('value-changed', (widget) => {
|
2018-04-08 08:12:52 -05:00
|
|
|
this._settings.set_int('window-preview-padding', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-04-05 22:20:00 -05:00
|
|
|
|
2019-05-23 20:08:49 -04:00
|
|
|
this._builder.get_object('preview_title_size_spinbutton').set_value(this._settings.get_int('window-preview-title-font-size'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('preview_title_size_spinbutton').connect('value-changed', (widget) => {
|
2019-05-23 20:08:49 -04:00
|
|
|
this._settings.set_int('window-preview-title-font-size', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2020-07-25 11:36:56 -03:00
|
|
|
|
|
|
|
|
this._builder.get_object('preview_custom_icon_size_spinbutton').set_value(this._settings.get_int('window-preview-custom-icon-size'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('preview_custom_icon_size_spinbutton').connect('value-changed', (widget) => {
|
2020-07-25 11:36:56 -03:00
|
|
|
this._settings.set_int('window-preview-custom-icon-size', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-05-23 20:08:49 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('grid_preview_title_weight_combo').set_active_id(this._settings.get_string('window-preview-title-font-weight'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('grid_preview_title_weight_combo').connect('changed', (widget) => {
|
2019-05-23 20:08:49 -04:00
|
|
|
this._settings.set_string('window-preview-title-font-weight', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-05-23 20:08:49 -04:00
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
|
let rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('window-preview-title-font-color'));
|
|
|
|
|
this._builder.get_object('grid_preview_title_font_color_colorbutton').set_rgba(rgba);
|
|
|
|
|
}).apply(this);
|
|
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
2017-04-15 15:20:56 +02:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-02-06 18:03:42 -05:00
|
|
|
|
2017-01-02 20:46:35 -05:00
|
|
|
this._settings.bind('isolate-workspaces',
|
|
|
|
|
this._builder.get_object('isolate_workspaces_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2020-05-04 19:39:17 -04:00
|
|
|
this._settings.bind('isolate-monitors',
|
|
|
|
|
this._builder.get_object('multimon_multi_isolate_monitor_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2020-08-02 17:52:57 -04:00
|
|
|
this._settings.bind('overview-click-to-exit',
|
|
|
|
|
this._builder.get_object('clicktoexit_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
this._settings.bind('hide-overview-on-startup',
|
|
|
|
|
this._builder.get_object('hide_overview_on_startup_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2018-01-14 13:53:58 -05:00
|
|
|
this._settings.bind('group-apps',
|
|
|
|
|
this._builder.get_object('group_apps_switch'),
|
|
|
|
|
'active',
|
2018-01-17 16:17:37 -05:00
|
|
|
Gio.SettingsBindFlags.DEFAULT | Gio.SettingsBindFlags.INVERT_BOOLEAN);
|
2018-01-14 13:53:58 -05:00
|
|
|
|
2018-01-16 20:44:09 -05:00
|
|
|
this._settings.bind('group-apps',
|
|
|
|
|
this._builder.get_object('show_group_apps_options_button'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT | Gio.SettingsBindFlags.INVERT_BOOLEAN);
|
|
|
|
|
|
2022-04-09 01:00:19 -05:00
|
|
|
this._settings.bind('progress-show-count',
|
|
|
|
|
this._builder.get_object('show_notification_badge_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('group_apps_label_font_color_colorbutton').connect('color-set', (button) => {
|
2018-01-16 20:28:59 -05:00
|
|
|
let rgba = button.get_rgba();
|
|
|
|
|
let css = rgba.to_string();
|
|
|
|
|
let hexString = cssHexString(css);
|
|
|
|
|
this._settings.set_string('group-apps-label-font-color', hexString);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-01-16 20:28:59 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('group_apps_label_font_color_minimized_colorbutton').connect('color-set', (button) => {
|
2020-05-03 00:17:18 +02:00
|
|
|
let rgba = button.get_rgba();
|
|
|
|
|
let css = rgba.to_string();
|
|
|
|
|
let hexString = cssHexString(css);
|
|
|
|
|
this._settings.set_string('group-apps-label-font-color-minimized', hexString);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2020-05-03 00:17:18 +02:00
|
|
|
|
2018-01-14 13:53:58 -05:00
|
|
|
this._settings.bind('group-apps-use-fixed-width',
|
|
|
|
|
this._builder.get_object('group_apps_use_fixed_width_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('group-apps-underline-unfocused',
|
|
|
|
|
this._builder.get_object('group_apps_underline_unfocused_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('group-apps-use-launchers',
|
|
|
|
|
this._builder.get_object('group_apps_use_launchers_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('show_group_apps_options_button').connect('clicked', () => {
|
2022-04-07 00:35:37 +02:00
|
|
|
let box = this._builder.get_object('box_group_apps_options');
|
2018-01-14 13:53:58 -05:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
let dialog = this._createPreferencesDialog(_('Ungrouped application options'), box, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings
|
|
|
|
|
this._settings.set_value('group-apps-label-font-size', this._settings.get_default_value('group-apps-label-font-size'));
|
|
|
|
|
this._builder.get_object('group_apps_label_font_size_spinbutton').set_value(this._settings.get_int('group-apps-label-font-size'));
|
2018-01-14 13:53:58 -05:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('group-apps-label-font-weight', this._settings.get_default_value('group-apps-label-font-weight'));
|
|
|
|
|
this._builder.get_object('group_apps_label_font_weight_combo').set_active_id(this._settings.get_string('group-apps-label-font-weight'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('group-apps-label-font-color', this._settings.get_default_value('group-apps-label-font-color'));
|
|
|
|
|
let rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('group-apps-label-font-color'));
|
|
|
|
|
this._builder.get_object('group_apps_label_font_color_colorbutton').set_rgba(rgba);
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('group-apps-label-font-color-minimized', this._settings.get_default_value('group-apps-label-font-color-minimized'));
|
|
|
|
|
let minimizedFontColor = new Gdk.RGBA();
|
|
|
|
|
minimizedFontColor.parse(this._settings.get_string('group-apps-label-font-color-minimized'));
|
|
|
|
|
this._builder.get_object('group_apps_label_font_color_minimized_colorbutton').set_rgba(minimizedFontColor);
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('group-apps-label-max-width', this._settings.get_default_value('group-apps-label-max-width'));
|
|
|
|
|
this._builder.get_object('group_apps_label_max_width_spinbutton').set_value(this._settings.get_int('group-apps-label-max-width'));
|
|
|
|
|
|
|
|
|
|
this._settings.set_value('group-apps-use-fixed-width', this._settings.get_default_value('group-apps-use-fixed-width'));
|
|
|
|
|
this._settings.set_value('group-apps-underline-unfocused', this._settings.get_default_value('group-apps-underline-unfocused'));
|
|
|
|
|
this._settings.set_value('group-apps-use-launchers', this._settings.get_default_value('group-apps-use-launchers'));
|
|
|
|
|
});
|
2018-01-14 13:53:58 -05:00
|
|
|
|
|
|
|
|
this._builder.get_object('group_apps_label_font_size_spinbutton').set_value(this._settings.get_int('group-apps-label-font-size'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('group_apps_label_font_size_spinbutton').connect('value-changed', (widget) => {
|
2018-01-14 13:53:58 -05:00
|
|
|
this._settings.set_int('group-apps-label-font-size', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-01-14 13:53:58 -05:00
|
|
|
|
2018-07-26 21:12:35 +03:00
|
|
|
this._builder.get_object('group_apps_label_font_weight_combo').set_active_id(this._settings.get_string('group-apps-label-font-weight'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('group_apps_label_font_weight_combo').connect('changed', (widget) => {
|
2018-07-26 21:12:35 +03:00
|
|
|
this._settings.set_string('group-apps-label-font-weight', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-07-26 21:12:35 +03:00
|
|
|
|
2018-01-16 20:28:59 -05:00
|
|
|
(function() {
|
|
|
|
|
let rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('group-apps-label-font-color'));
|
|
|
|
|
this._builder.get_object('group_apps_label_font_color_colorbutton').set_rgba(rgba);
|
|
|
|
|
}).apply(this);
|
|
|
|
|
|
2020-05-03 00:17:18 +02:00
|
|
|
(function() {
|
|
|
|
|
let rgba = new Gdk.RGBA();
|
|
|
|
|
rgba.parse(this._settings.get_string('group-apps-label-font-color-minimized'));
|
|
|
|
|
this._builder.get_object('group_apps_label_font_color_minimized_colorbutton').set_rgba(rgba);
|
|
|
|
|
}).apply(this);
|
|
|
|
|
|
2018-01-14 13:53:58 -05:00
|
|
|
this._builder.get_object('group_apps_label_max_width_spinbutton').set_value(this._settings.get_int('group-apps-label-max-width'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('group_apps_label_max_width_spinbutton').connect('value-changed', (widget) => {
|
2018-01-14 13:53:58 -05:00
|
|
|
this._settings.set_int('group-apps-label-max-width', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-01-14 13:53:58 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(600, 1);
|
2018-01-14 13:53:58 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-01-14 13:53:58 -05:00
|
|
|
|
2016-12-28 20:22:12 -05:00
|
|
|
this._builder.get_object('click_action_combo').set_active_id(this._settings.get_string('click-action'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('click_action_combo').connect('changed', (widget) => {
|
2016-12-28 20:22:12 -05:00
|
|
|
this._settings.set_string('click-action', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('shift_click_action_combo').connect('changed', (widget) => {
|
2016-12-28 20:22:12 -05:00
|
|
|
this._settings.set_string('shift-click-action', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('middle_click_action_combo').connect('changed', (widget) => {
|
2016-12-28 20:22:12 -05:00
|
|
|
this._settings.set_string('middle-click-action', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
|
|
|
|
this._builder.get_object('shift_middle_click_action_combo').connect('changed', (widget) => {
|
2016-12-28 20:22:12 -05:00
|
|
|
this._settings.set_string('shift-middle-click-action', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2016-12-22 18:12:04 -05:00
|
|
|
|
|
|
|
|
// Create dialog for middle-click options
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('middle_click_options_button').connect('clicked', () => {
|
2016-12-22 18:12:04 -05:00
|
|
|
let box = this._builder.get_object('box_middle_click_options');
|
2022-04-07 00:35:37 +02:00
|
|
|
|
|
|
|
|
let dialog = this._createPreferencesDialog(_('Customize middle-click behavior'), box, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings for the relevant keys
|
|
|
|
|
let keys = ['shift-click-action', 'middle-click-action', 'shift-middle-click-action'];
|
|
|
|
|
keys.forEach(function(val) {
|
|
|
|
|
this._settings.set_value(val, this._settings.get_default_value(val));
|
|
|
|
|
}, this);
|
|
|
|
|
this._builder.get_object('shift_click_action_combo').set_active_id(this._settings.get_string('shift-click-action'));
|
|
|
|
|
this._builder.get_object('middle_click_action_combo').set_active_id(this._settings.get_string('middle-click-action'));
|
|
|
|
|
this._builder.get_object('shift_middle_click_action_combo').set_active_id(this._settings.get_string('shift-middle-click-action'));
|
|
|
|
|
});
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2016-12-28 20:22:12 -05:00
|
|
|
this._builder.get_object('shift_click_action_combo').set_active_id(this._settings.get_string('shift-click-action'));
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2016-12-28 20:22:12 -05:00
|
|
|
this._builder.get_object('middle_click_action_combo').set_active_id(this._settings.get_string('middle-click-action'));
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2016-12-28 20:22:12 -05:00
|
|
|
this._builder.get_object('shift_middle_click_action_combo').set_active_id(this._settings.get_string('shift-middle-click-action'));
|
2016-12-22 18:12:04 -05:00
|
|
|
|
|
|
|
|
this._settings.bind('shift-click-action',
|
|
|
|
|
this._builder.get_object('shift_click_action_combo'),
|
|
|
|
|
'active-id',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
this._settings.bind('middle-click-action',
|
|
|
|
|
this._builder.get_object('middle_click_action_combo'),
|
|
|
|
|
'active-id',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
this._settings.bind('shift-middle-click-action',
|
|
|
|
|
this._builder.get_object('shift_middle_click_action_combo'),
|
|
|
|
|
'active-id',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(700, 1);
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2016-12-22 18:12:04 -05:00
|
|
|
|
2019-08-19 22:20:46 -04:00
|
|
|
this._builder.get_object('scroll_panel_combo').set_active_id(this._settings.get_string('scroll-panel-action'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('scroll_panel_combo').connect('changed', (widget) => {
|
2019-08-19 22:20:46 -04:00
|
|
|
this._settings.set_string('scroll-panel-action', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-08-19 22:20:46 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('scroll_icon_combo').set_active_id(this._settings.get_string('scroll-icon-action'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('scroll_icon_combo').connect('changed', (widget) => {
|
2019-08-19 22:20:46 -04:00
|
|
|
this._settings.set_string('scroll-icon-action', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-08-19 22:20:46 -04:00
|
|
|
|
|
|
|
|
// Create dialog for panel scroll options
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('scroll_panel_options_button').connect('clicked', () => {
|
2022-04-07 00:35:37 +02:00
|
|
|
let box = this._builder.get_object('scroll_panel_options_box');
|
2019-08-19 22:20:46 -04:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
let dialog = this._createPreferencesDialog(_('Customize panel scroll behavior'), box, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings
|
|
|
|
|
this._settings.set_value('scroll-panel-delay', this._settings.get_default_value('scroll-panel-delay'));
|
|
|
|
|
this._builder.get_object('scroll_panel_options_delay_spinbutton').set_value(this._settings.get_int('scroll-panel-delay'));
|
2019-08-19 22:20:46 -04:00
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
this._settings.set_value('scroll-panel-show-ws-popup', this._settings.get_default_value('scroll-panel-show-ws-popup'));
|
|
|
|
|
});
|
2019-08-19 22:20:46 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('scroll_panel_options_delay_spinbutton').set_value(this._settings.get_int('scroll-panel-delay'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('scroll_panel_options_delay_spinbutton').connect('value-changed', (widget) => {
|
2019-08-19 22:20:46 -04:00
|
|
|
this._settings.set_int('scroll-panel-delay', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-08-19 22:20:46 -04:00
|
|
|
|
2020-06-13 14:32:44 +02:00
|
|
|
this._settings.bind('scroll-panel-show-ws-popup',
|
|
|
|
|
this._builder.get_object('scroll_panel_options_show_ws_popup_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(640, 1);
|
2019-08-19 22:20:46 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-08-19 22:20:46 -04:00
|
|
|
|
|
|
|
|
// Create dialog for icon scroll options
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('scroll_icon_options_button').connect('clicked', () => {
|
2019-08-19 22:20:46 -04:00
|
|
|
let box = this._builder.get_object('scroll_icon_options_box');
|
2022-04-07 00:35:37 +02:00
|
|
|
|
|
|
|
|
let dialog = this._createPreferencesDialog(_('Customize icon scroll behavior'), box, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings
|
|
|
|
|
this._settings.set_value('scroll-icon-delay', this._settings.get_default_value('scroll-icon-delay'));
|
|
|
|
|
this._builder.get_object('scroll_icon_options_delay_spinbutton').set_value(this._settings.get_int('scroll-icon-delay'));
|
|
|
|
|
});
|
2019-08-19 22:20:46 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('scroll_icon_options_delay_spinbutton').set_value(this._settings.get_int('scroll-icon-delay'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('scroll_icon_options_delay_spinbutton').connect('value-changed', (widget) => {
|
2019-08-19 22:20:46 -04:00
|
|
|
this._settings.set_int('scroll-icon-delay', widget.get_value());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-08-19 22:20:46 -04:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(640, 1);
|
2019-08-19 22:20:46 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-08-19 22:20:46 -04:00
|
|
|
|
2017-01-27 10:21:23 -05:00
|
|
|
this._settings.bind('hot-keys',
|
|
|
|
|
this._builder.get_object('hot_keys_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2017-02-11 18:49:40 -05:00
|
|
|
this._settings.bind('hot-keys',
|
|
|
|
|
this._builder.get_object('overlay_button'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('overlay_combo').connect('changed', (widget) => {
|
2017-05-26 18:22:06 -04:00
|
|
|
this._settings.set_string('hotkeys-overlay-combo', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-05-26 18:22:06 -04:00
|
|
|
|
2018-10-27 09:21:24 -04:00
|
|
|
this._settings.bind('shortcut-previews',
|
|
|
|
|
this._builder.get_object('shortcut_preview_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2019-09-08 10:06:32 -04:00
|
|
|
this._builder.get_object('shortcut_num_keys_combo').set_active_id(this._settings.get_string('shortcut-num-keys'));
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('shortcut_num_keys_combo').connect('changed', (widget) => {
|
2019-09-08 10:06:32 -04:00
|
|
|
this._settings.set_string('shortcut-num-keys', widget.get_active_id());
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2019-09-08 10:06:32 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._settings.connect('changed::hotkey-prefix-text', () => {checkHotkeyPrefix(this._settings);});
|
2018-10-27 09:21:24 -04:00
|
|
|
|
|
|
|
|
this._builder.get_object('hotkey_prefix_combo').set_active_id(this._settings.get_string('hotkey-prefix-text'));
|
|
|
|
|
|
|
|
|
|
this._settings.bind('hotkey-prefix-text',
|
|
|
|
|
this._builder.get_object('hotkey_prefix_combo'),
|
|
|
|
|
'active-id',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._builder.get_object('overlay_combo').set_active_id(this._settings.get_string('hotkeys-overlay-combo'));
|
|
|
|
|
|
|
|
|
|
this._settings.bind('hotkeys-overlay-combo',
|
|
|
|
|
this._builder.get_object('overlay_combo'),
|
|
|
|
|
'active-id',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('overlay-timeout',
|
|
|
|
|
this._builder.get_object('timeout_spinbutton'),
|
|
|
|
|
'value',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
if (this._settings.get_string('hotkeys-overlay-combo') !== 'TEMPORARILY') {
|
|
|
|
|
this._builder.get_object('timeout_spinbutton').set_sensitive(false);
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._settings.connect('changed::hotkeys-overlay-combo', () => {
|
2018-10-27 09:21:24 -04:00
|
|
|
if (this._settings.get_string('hotkeys-overlay-combo') !== 'TEMPORARILY')
|
|
|
|
|
this._builder.get_object('timeout_spinbutton').set_sensitive(false);
|
|
|
|
|
else
|
|
|
|
|
this._builder.get_object('timeout_spinbutton').set_sensitive(true);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-27 09:21:24 -04:00
|
|
|
|
|
|
|
|
this._settings.bind('shortcut-text',
|
|
|
|
|
this._builder.get_object('shortcut_entry'),
|
|
|
|
|
'text',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2022-04-04 13:25:45 -04:00
|
|
|
this._settings.connect('changed::shortcut-text', () => {setShortcut(this._settings, 'shortcut');});
|
2018-10-27 09:21:24 -04:00
|
|
|
|
2017-02-11 18:49:40 -05:00
|
|
|
// Create dialog for number overlay options
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('overlay_button').connect('clicked', () => {
|
2017-02-11 18:49:40 -05:00
|
|
|
let box = this._builder.get_object('box_overlay_shortcut');
|
|
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
let dialog = this._createPreferencesDialog(_('Advanced hotkeys options'), box, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings for the relevant keys
|
|
|
|
|
let keys = ['hotkey-prefix-text', 'shortcut-text', 'hotkeys-overlay-combo', 'overlay-timeout', 'shortcut-previews'];
|
|
|
|
|
keys.forEach(function(val) {
|
|
|
|
|
this._settings.set_value(val, this._settings.get_default_value(val));
|
|
|
|
|
}, this);
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-02-11 18:49:40 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(600, 1);
|
2017-02-11 18:49:40 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-03-24 22:31:43 -04:00
|
|
|
|
|
|
|
|
// setup dialog for secondary menu options
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('secondarymenu_options_button').connect('clicked', () => {
|
2017-03-24 22:31:43 -04:00
|
|
|
let box = this._builder.get_object('box_secondarymenu_options');
|
2022-04-07 00:35:37 +02:00
|
|
|
|
|
|
|
|
let dialog = this._createPreferencesDialog(_('Secondary Menu Options'), box, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings
|
|
|
|
|
this._settings.set_value('secondarymenu-contains-appmenu', this._settings.get_default_value('secondarymenu-contains-appmenu'));
|
|
|
|
|
this._settings.set_value('secondarymenu-contains-showdetails', this._settings.get_default_value('secondarymenu-contains-showdetails'));
|
|
|
|
|
});
|
2017-03-24 22:31:43 -04:00
|
|
|
|
2023-08-20 23:33:03 +02:00
|
|
|
// TODO setting secondarymenu-contains-appmenu is not being used anywhere
|
2017-03-24 22:31:43 -04:00
|
|
|
this._settings.bind('secondarymenu-contains-appmenu',
|
|
|
|
|
this._builder.get_object('secondarymenu_appmenu_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('secondarymenu-contains-showdetails',
|
|
|
|
|
this._builder.get_object('secondarymenu_showdetails_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(480, 1);
|
2017-03-24 22:31:43 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-01-27 10:21:23 -05:00
|
|
|
|
2017-01-24 23:11:51 -05:00
|
|
|
// setup dialog for advanced options
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('button_advanced_options').connect('clicked', () => {
|
2017-01-24 23:11:51 -05:00
|
|
|
let box = this._builder.get_object('box_advanced_options');
|
|
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
let dialog = this._createPreferencesDialog(_('Advanced Options'), box);
|
2017-01-24 23:11:51 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
|
|
|
|
dialog.set_default_size(480, 1);
|
2017-01-24 23:11:51 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2017-01-24 23:11:51 -05:00
|
|
|
|
2017-02-17 22:11:16 -05:00
|
|
|
// Fine-tune panel
|
2016-12-23 16:19:46 -05:00
|
|
|
|
|
|
|
|
let sizeScales = [
|
2016-12-31 08:24:23 -05:00
|
|
|
{objectName: 'tray_size_scale', valueName: 'tray-size', range: DEFAULT_FONT_SIZES },
|
|
|
|
|
{objectName: 'leftbox_size_scale', valueName: 'leftbox-size', range: DEFAULT_FONT_SIZES },
|
|
|
|
|
{objectName: 'appicon_margin_scale', valueName: 'appicon-margin', range: DEFAULT_MARGIN_SIZES },
|
2018-04-12 17:23:59 -05:00
|
|
|
{objectName: 'appicon_padding_scale', valueName: 'appicon-padding', range: DEFAULT_MARGIN_SIZES },
|
2017-01-04 09:11:09 -05:00
|
|
|
{objectName: 'tray_padding_scale', valueName: 'tray-padding', range: DEFAULT_PADDING_SIZES },
|
|
|
|
|
{objectName: 'leftbox_padding_scale', valueName: 'leftbox-padding', range: DEFAULT_PADDING_SIZES },
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
{objectName: 'statusicon_padding_scale', valueName: 'status-icon-padding', range: DEFAULT_PADDING_SIZES },
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
{objectName: 'panel_length_scale', valueName: '', range: LENGTH_MARKS }
|
2016-12-23 16:19:46 -05:00
|
|
|
];
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
|
2023-09-21 23:10:07 -07:00
|
|
|
for(const idx in sizeScales) {
|
2016-12-23 16:19:46 -05:00
|
|
|
let size_scale = this._builder.get_object(sizeScales[idx].objectName);
|
2016-12-31 08:24:23 -05:00
|
|
|
let range = sizeScales[idx].range;
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
size_scale.set_range(range[range.length - 1], range[0]);
|
|
|
|
|
let value;
|
|
|
|
|
if (sizeScales[idx].objectName === 'panel_length_scale') {
|
|
|
|
|
value = PanelSettings.getPanelLength(this._settings, this._currentMonitorIndex);
|
|
|
|
|
} else {
|
|
|
|
|
value = this._settings.get_int(sizeScales[idx].valueName);
|
|
|
|
|
}
|
|
|
|
|
size_scale.set_value(value);
|
Move length and anchor to Styles tab
* Moved length and anchor setting to Styles tab, as it is
an all-monitor setting currently.
* Changed length from spinbox to slider, and shortened label.
* Turned off anchor combobox sensitivity if length is 100%.
* Set anchor labels to the more intuitive "Left, Center, Right" and
"Top, Middle, Bottom" if all monitor panels are horizontal or
vertical. If monitors have panels in a mix of orientations, use
"Start, Middle, End". The schema retains the generic START, MIDDLE,
END.
* Changed "Panel Size" label to "Panel thickness" to more precisely
describe what is being set now that the panel can be changed in two
dimensions. "Panel thickness" and "Panel length" can
describe the sizing of the panel for either horizontal or vertical
orientations.
* Changed now-shortened Position label to "Anchor", to reduce
confusion with other Position setting, regarding which edge of the
screen.
2020-08-03 20:10:00 -06:00
|
|
|
// Add marks from range arrays, omitting the first and last values.
|
2016-12-31 08:24:23 -05:00
|
|
|
range.slice(1, -1).forEach(function(val) {
|
2016-12-23 16:19:46 -05:00
|
|
|
size_scale.add_mark(val, Gtk.PositionType.TOP, val.toString());
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Corrent for rtl languages
|
|
|
|
|
if (this._rtl) {
|
|
|
|
|
// Flip value position: this is not done automatically
|
|
|
|
|
size_scale.set_value_pos(Gtk.PositionType.LEFT);
|
|
|
|
|
// I suppose due to a bug, having a more than one mark and one above a value of 100
|
|
|
|
|
// makes the rendering of the marks wrong in rtl. This doesn't happen setting the scale as not flippable
|
|
|
|
|
// and then manually inverting it
|
|
|
|
|
size_scale.set_flippable(false);
|
|
|
|
|
size_scale.set_inverted(true);
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-17 23:48:12 -05:00
|
|
|
|
|
|
|
|
this._settings.bind('animate-app-switch',
|
2020-12-20 06:11:40 +01:00
|
|
|
this._builder.get_object('animate_app_switch_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2017-02-17 23:48:12 -05:00
|
|
|
|
|
|
|
|
this._settings.bind('animate-window-launch',
|
2020-12-20 06:11:40 +01:00
|
|
|
this._builder.get_object('animate_window_launch_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('animate-appicon-hover',
|
|
|
|
|
this._builder.get_object('animate_appicon_hover_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
this._settings.bind('animate-appicon-hover',
|
|
|
|
|
this._builder.get_object('animate_appicon_hover_button'),
|
|
|
|
|
'sensitive',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
this._settings.bind('animate-appicon-hover-animation-type',
|
|
|
|
|
this._builder.get_object('animate_appicon_hover_options_type_combo'),
|
|
|
|
|
'active-id',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
|
|
|
|
let scales = [
|
|
|
|
|
['animate_appicon_hover_options_duration_scale', 'animate-appicon-hover-animation-duration', 1],
|
|
|
|
|
['animate_appicon_hover_options_rotation_scale', 'animate-appicon-hover-animation-rotation', 1],
|
|
|
|
|
['animate_appicon_hover_options_travel_scale', 'animate-appicon-hover-animation-travel', 100],
|
|
|
|
|
['animate_appicon_hover_options_zoom_scale', 'animate-appicon-hover-animation-zoom', 100],
|
|
|
|
|
['animate_appicon_hover_options_convexity_scale', 'animate-appicon-hover-animation-convexity', 1],
|
|
|
|
|
['animate_appicon_hover_options_extent_scale', 'animate-appicon-hover-animation-extent', 1],
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
let updateScale = scale => {
|
|
|
|
|
let [id, key, factor] = scale;
|
|
|
|
|
let type = this._settings.get_string('animate-appicon-hover-animation-type');
|
|
|
|
|
let value = this._settings.get_value(key).deep_unpack()[type];
|
|
|
|
|
let defaultValue = this._settings.get_default_value(key).deep_unpack()[type];
|
|
|
|
|
this._builder.get_object(id).sensitive = defaultValue !== undefined;
|
|
|
|
|
this._builder.get_object(id).set_value(value * factor || 0);
|
|
|
|
|
this._builder.get_object(id).clear_marks();
|
|
|
|
|
this._builder.get_object(id).add_mark(defaultValue * factor, Gtk.PositionType.TOP,
|
|
|
|
|
defaultValue !== undefined ? (defaultValue * factor).toString() : ' ');
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
scales.forEach(scale => {
|
|
|
|
|
let [id, key, factor] = scale;
|
|
|
|
|
this._settings.connect('changed::' + key, () => updateScale(scale));
|
|
|
|
|
this._builder.get_object(id).connect('value-changed', widget => {
|
|
|
|
|
let type = this._settings.get_string('animate-appicon-hover-animation-type');
|
|
|
|
|
let variant = this._settings.get_value(key);
|
|
|
|
|
let unpacked = variant.deep_unpack();
|
|
|
|
|
if (unpacked[type] != widget.get_value() / factor) {
|
|
|
|
|
unpacked[type] = widget.get_value() / factor;
|
|
|
|
|
this._settings.set_value(key, new GLib.Variant(variant.get_type_string(), unpacked));
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this._settings.connect('changed::animate-appicon-hover-animation-type', () => scales.forEach(updateScale));
|
|
|
|
|
scales.forEach(updateScale);
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
this._builder.get_object('animate_appicon_hover_button').connect('clicked', () => {
|
2020-12-20 06:11:40 +01:00
|
|
|
let box = this._builder.get_object('animate_appicon_hover_options');
|
|
|
|
|
|
2022-04-07 00:35:37 +02:00
|
|
|
let dialog = this._createPreferencesDialog(_('App icon animation options'), box, () =>
|
|
|
|
|
{
|
|
|
|
|
// restore default settings
|
|
|
|
|
this._settings.set_value('animate-appicon-hover-animation-type', this._settings.get_default_value('animate-appicon-hover-animation-type'));
|
|
|
|
|
this._settings.set_value('animate-appicon-hover-animation-duration', this._settings.get_default_value('animate-appicon-hover-animation-duration'));
|
|
|
|
|
this._settings.set_value('animate-appicon-hover-animation-rotation', this._settings.get_default_value('animate-appicon-hover-animation-rotation'));
|
|
|
|
|
this._settings.set_value('animate-appicon-hover-animation-travel', this._settings.get_default_value('animate-appicon-hover-animation-travel'));
|
|
|
|
|
this._settings.set_value('animate-appicon-hover-animation-zoom', this._settings.get_default_value('animate-appicon-hover-animation-zoom'));
|
|
|
|
|
this._settings.set_value('animate-appicon-hover-animation-convexity', this._settings.get_default_value('animate-appicon-hover-animation-convexity'));
|
|
|
|
|
this._settings.set_value('animate-appicon-hover-animation-extent', this._settings.get_default_value('animate-appicon-hover-animation-extent'));
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2020-12-20 06:11:40 +01:00
|
|
|
|
2021-05-10 04:14:15 +02:00
|
|
|
dialog.show();
|
2020-12-20 06:11:40 +01:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2018-10-28 12:06:20 -04:00
|
|
|
|
|
|
|
|
this._settings.bind('stockgs-keep-dash',
|
|
|
|
|
this._builder.get_object('stockgs_dash_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2019-02-02 12:32:41 -05:00
|
|
|
|
2020-05-02 12:57:21 -04:00
|
|
|
this._settings.bind('stockgs-keep-top-panel',
|
|
|
|
|
this._builder.get_object('stockgs_top_panel_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2020-06-14 15:28:49 -04:00
|
|
|
|
2020-05-02 12:57:21 -04:00
|
|
|
|
2020-06-14 15:28:49 -04:00
|
|
|
this._settings.connect('changed::stockgs-keep-top-panel', () => this._maybeDisableTopPosition());
|
2020-05-04 19:39:17 -04:00
|
|
|
|
2020-06-14 15:28:49 -04:00
|
|
|
this._maybeDisableTopPosition();
|
2020-05-02 12:57:21 -04:00
|
|
|
|
2019-02-02 12:32:41 -05:00
|
|
|
this._settings.bind('stockgs-panelbtn-click-only',
|
|
|
|
|
this._builder.get_object('stockgs_panelbtn_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
2017-01-11 20:52:32 -05:00
|
|
|
|
2020-01-14 17:58:53 -05:00
|
|
|
this._settings.bind('stockgs-force-hotcorner',
|
|
|
|
|
this._builder.get_object('stockgs_hotcorner_switch'),
|
|
|
|
|
'active',
|
|
|
|
|
Gio.SettingsBindFlags.DEFAULT);
|
|
|
|
|
|
2017-01-11 20:52:32 -05:00
|
|
|
// About Panel
|
2016-12-23 16:19:46 -05:00
|
|
|
|
2024-04-03 00:35:40 +03:00
|
|
|
this._builder.get_object('extension_version').set_label(this._metadata.version.toString() + (this._metadata.commit ? ' (' + this._metadata.commit + ')' : ''));
|
2018-12-09 17:12:23 -05:00
|
|
|
|
|
|
|
|
this._builder.get_object('importexport_export_button').connect('clicked', widget => {
|
|
|
|
|
this._showFileChooser(
|
|
|
|
|
_('Export settings'),
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
{ action: Gtk.FileChooserAction.SAVE },
|
|
|
|
|
"Save",
|
2018-12-09 17:12:23 -05:00
|
|
|
filename => {
|
|
|
|
|
let file = Gio.file_new_for_path(filename);
|
|
|
|
|
let raw = file.replace(null, false, Gio.FileCreateFlags.NONE, null);
|
|
|
|
|
let out = Gio.BufferedOutputStream.new_sized(raw, 4096);
|
|
|
|
|
|
|
|
|
|
out.write_all(GLib.spawn_command_line_sync('dconf dump ' + SCHEMA_PATH)[1], null);
|
|
|
|
|
out.close(null);
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this._builder.get_object('importexport_import_button').connect('clicked', widget => {
|
|
|
|
|
this._showFileChooser(
|
|
|
|
|
_('Import settings'),
|
2018-12-09 17:54:59 -05:00
|
|
|
{ action: Gtk.FileChooserAction.OPEN },
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
"Open",
|
2018-12-09 17:12:23 -05:00
|
|
|
filename => {
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
if (filename && GLib.file_test(filename, GLib.FileTest.EXISTS)) {
|
|
|
|
|
let settingsFile = Gio.File.new_for_path(filename);
|
|
|
|
|
let [ , pid, stdin, stdout, stderr] =
|
|
|
|
|
GLib.spawn_async_with_pipes(
|
|
|
|
|
null,
|
|
|
|
|
['dconf', 'load', SCHEMA_PATH],
|
|
|
|
|
null,
|
|
|
|
|
GLib.SpawnFlags.SEARCH_PATH | GLib.SpawnFlags.DO_NOT_REAP_CHILD,
|
|
|
|
|
null
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
stdin = new Gio.UnixOutputStream({ fd: stdin, close_fd: true });
|
|
|
|
|
GLib.close(stdout);
|
|
|
|
|
GLib.close(stderr);
|
|
|
|
|
|
|
|
|
|
stdin.splice(settingsFile.read(null), Gio.OutputStreamSpliceFlags.CLOSE_SOURCE | Gio.OutputStreamSpliceFlags.CLOSE_TARGET, null);
|
2018-12-09 17:12:23 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
});
|
2019-10-28 23:59:13 -04:00
|
|
|
|
2025-01-29 16:56:08 -05:00
|
|
|
// Donation panel
|
|
|
|
|
|
|
|
|
|
let revealDonateTimeout = 0;
|
|
|
|
|
let donationIconSwitch = this._builder.get_object('donation_icon_switch')
|
|
|
|
|
let donationRevealer = this._builder.get_object('donation_revealer');
|
|
|
|
|
let hiddenDonateIcon = !!this._settings.get_string('hide-donate-icon-unixtime')
|
|
|
|
|
|
|
|
|
|
this._builder.get_object('donation_logo').set_from_file(`${this._path}/img/dash-to-panel-logo-light.svg`)
|
|
|
|
|
this._builder.get_object('paypal_logo').set_from_file(`${this._path}/img/paypal.png`)
|
|
|
|
|
this._builder.get_object('stripe_logo').set_from_file(`${this._path}/img/stripe.png`)
|
|
|
|
|
this._builder.get_object('kofi_logo').set_from_file(`${this._path}/img/kofi.png`)
|
|
|
|
|
|
|
|
|
|
donationIconSwitch.set_active(hiddenDonateIcon)
|
|
|
|
|
donationRevealer.set_reveal_child(hiddenDonateIcon)
|
|
|
|
|
|
|
|
|
|
donationIconSwitch.connect('notify::active', (widget) =>
|
|
|
|
|
this._settings.set_string('hide-donate-icon-unixtime', widget.get_active() ? Date.now().toString() : '')
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
this.notebook.connect('notify::visible-page', () => {
|
|
|
|
|
clearTimeout(revealDonateTimeout)
|
|
|
|
|
|
|
|
|
|
if (this.notebook.visible_page_name == 'donation' && !donationRevealer.get_reveal_child())
|
|
|
|
|
revealDonateTimeout = setTimeout(() => donationRevealer.set_reveal_child(true), 14000)
|
|
|
|
|
})
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2018-12-09 17:12:23 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
_setPreviewTitlePosition() {
|
2019-08-22 08:56:31 -04:00
|
|
|
switch (this._settings.get_string('window-preview-title-position')) {
|
|
|
|
|
case 'BOTTOM':
|
|
|
|
|
this._builder.get_object('preview_title_position_bottom_button').set_active(true);
|
|
|
|
|
break;
|
|
|
|
|
case 'TOP':
|
|
|
|
|
this._builder.get_object('preview_title_position_top_button').set_active(true);
|
|
|
|
|
break;
|
|
|
|
|
}
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2019-08-22 08:56:31 -04:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
_showFileChooser(title, params, acceptBtn, acceptHandler) {
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
let dialog = new Gtk.FileChooserDialog(mergeObjects({ title: title, transient_for: this.notebook.get_root() }, params));
|
2018-12-09 17:12:23 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.add_button("Cancel", Gtk.ResponseType.CANCEL);
|
2018-12-09 17:12:23 -05:00
|
|
|
dialog.add_button(acceptBtn, Gtk.ResponseType.ACCEPT);
|
|
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.show();
|
2018-12-09 17:12:23 -05:00
|
|
|
|
2022-04-04 13:25:45 -04:00
|
|
|
dialog.connect('response', (dialog, id) => {
|
2022-04-14 12:46:30 -04:00
|
|
|
if (id == Gtk.ResponseType.ACCEPT)
|
|
|
|
|
acceptHandler.call(this, dialog.get_file().get_path());
|
|
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dialog.destroy();
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
}
|
2022-04-04 13:25:45 -04:00
|
|
|
}
|
2016-12-22 18:12:04 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
|
|
|
|
|
const BuilderScope = GObject.registerClass({
|
|
|
|
|
Implements: [Gtk.BuilderScope],
|
|
|
|
|
}, class BuilderScope extends GObject.Object {
|
|
|
|
|
|
|
|
|
|
_init(preferences) {
|
|
|
|
|
this._preferences = preferences;
|
|
|
|
|
super._init();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
vfunc_create_closure(builder, handlerName, flags, connectObject) {
|
|
|
|
|
if (flags & Gtk.BuilderClosureFlags.SWAPPED)
|
|
|
|
|
throw new Error('Unsupported template signal flag "swapped"');
|
2019-07-30 19:25:30 -04:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
if (typeof this[handlerName] === 'undefined')
|
|
|
|
|
throw new Error(`${handlerName} is undefined`);
|
|
|
|
|
|
|
|
|
|
return this[handlerName].bind(connectObject || this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
on_btn_click(connectObject) {
|
|
|
|
|
connectObject.set_label("Clicked");
|
|
|
|
|
}
|
Configure panel thickness, length, and anchor per-monitor
Settings.ui:
- Move thickness, length, and anchor from Style tab to Position tab.
Group together with position in the same frame.
schema:
- Remove unpublished panel-length and panel-anchor settings, replacing
them with panel-lengths and panel-anchors JSON objects (like
panel-positions).
- Remove unpublished anchor enum, since panel-anchors is being managed
by the extension in JSON, not typed by the schema.
- Deprecate panel-size in favour of new panel-sizes JSON, storing
per-monitor panel sizes.
- Mention that panel-position is deprecated.
Introduce panelSettings.js:
- Functions to fetch or set panel settings that are stored as JSON.
Grown from now-removed getSettingsPositions() in panelPositions.js.
prefs.js:
- Group together the different UI widget label and value refreshing
into method _updateWidgetSettingsForMonitor().
- Change multi-panel behaviour of _setAnchorLabels(). Previously, all
panels shared the same anchor setting, and so setAnchorLabels
considered all monitors. Now, panels are configured either
independently, or sometimes all together; set labels according to
orientation(s) of panel(s) being configured.
- Omitting preventTop handling in refactored _setPanelPosition()
method. Previously, it was written to set the first monitor's panel to
Pos.BOTTOM if the user clicked the Top position radio button, if
stockgs-keep-top-panel was also set. But the user can't activate the
Top button anyway if stockgs is set (likely implemented later).
panelManager.js:
- Removing panelPositions, as it is not needed any more.
2020-10-27 16:04:19 -06:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
position_bottom_button_clicked_cb(button) {
|
|
|
|
|
if (!this._preferences._ignorePositionRadios && button.get_active()) this._preferences._setPanelPosition(Pos.BOTTOM);
|
|
|
|
|
}
|
2016-12-31 08:24:23 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
position_top_button_clicked_cb(button) {
|
|
|
|
|
if (!this._preferences._ignorePositionRadios && button.get_active()) this._preferences._setPanelPosition(Pos.TOP);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
position_left_button_clicked_cb(button) {
|
|
|
|
|
if (!this._preferences._ignorePositionRadios && button.get_active()) this._preferences._setPanelPosition(Pos.LEFT);
|
|
|
|
|
}
|
2016-12-31 08:24:23 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
position_right_button_clicked_cb(button) {
|
|
|
|
|
if (!this._preferences._ignorePositionRadios && button.get_active()) this._preferences._setPanelPosition(Pos.RIGHT);
|
|
|
|
|
}
|
2016-12-31 08:24:23 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dots_bottom_button_toggled_cb(button) {
|
|
|
|
|
if (button.get_active())
|
|
|
|
|
this._preferences._settings.set_string('dot-position', "BOTTOM");
|
|
|
|
|
}
|
2017-01-04 09:11:09 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dots_top_button_toggled_cb(button) {
|
|
|
|
|
if (button.get_active())
|
|
|
|
|
this._preferences._settings.set_string('dot-position', "TOP");
|
|
|
|
|
}
|
2018-04-12 17:23:59 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dots_left_button_toggled_cb(button) {
|
|
|
|
|
if (button.get_active())
|
|
|
|
|
this._preferences._settings.set_string('dot-position', "LEFT");
|
|
|
|
|
}
|
2018-04-12 17:23:59 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
dots_right_button_toggled_cb(button) {
|
|
|
|
|
if (button.get_active())
|
|
|
|
|
this._preferences._settings.set_string('dot-position', "RIGHT");
|
|
|
|
|
}
|
2018-04-12 17:23:59 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
preview_title_position_bottom_button_toggled_cb(button) {
|
|
|
|
|
if (button.get_active())
|
|
|
|
|
this._preferences._settings.set_string('window-preview-title-position', 'BOTTOM');
|
|
|
|
|
}
|
2017-01-04 09:11:09 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
preview_title_position_top_button_toggled_cb(button) {
|
|
|
|
|
if (button.get_active())
|
|
|
|
|
this._preferences._settings.set_string('window-preview-title-position', 'TOP');
|
|
|
|
|
}
|
2017-01-04 09:11:09 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
panel_size_scale_value_changed_cb(scale) {
|
2021-05-10 04:13:51 +02:00
|
|
|
// Avoid settings the size continuously
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
if (this._preferences._panel_size_timeout > 0)
|
2023-09-21 19:22:31 -07:00
|
|
|
GLib.Source.remove(this._preferences._panel_size_timeout);
|
2021-05-10 04:13:51 +02:00
|
|
|
|
2023-09-21 19:22:31 -07:00
|
|
|
this._preferences._panel_size_timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, SCALE_UPDATE_TIMEOUT, () => {
|
2021-05-10 04:13:51 +02:00
|
|
|
const value = scale.get_value();
|
2022-04-05 01:50:40 +02:00
|
|
|
const monitorSync = this._preferences._settings.get_boolean('panel-element-positions-monitors-sync');
|
|
|
|
|
const monitorsToSetFor = monitorSync ? this._preferences.monitors : [this._preferences._currentMonitorIndex];
|
2021-05-10 04:13:51 +02:00
|
|
|
monitorsToSetFor.forEach(monitorIndex => {
|
2022-04-05 01:50:40 +02:00
|
|
|
PanelSettings.setPanelSize(this._preferences._settings, monitorIndex, value);
|
2021-05-10 04:13:51 +02:00
|
|
|
});
|
2017-01-04 09:11:09 -05:00
|
|
|
|
2022-04-05 01:50:40 +02:00
|
|
|
this._preferences._panel_size_timeout = 0;
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
return GLib.SOURCE_REMOVE;
|
2023-09-21 19:22:31 -07:00
|
|
|
});
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
}
|
2017-01-04 09:11:09 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
tray_size_scale_value_changed_cb(scale) {
|
|
|
|
|
// Avoid settings the size consinuosly
|
|
|
|
|
if (this._preferences._tray_size_timeout > 0)
|
2023-09-21 19:22:31 -07:00
|
|
|
GLib.Source.remove(this._preferences._tray_size_timeout);
|
2017-01-04 09:11:09 -05:00
|
|
|
|
2023-09-22 08:39:34 -04:00
|
|
|
this._preferences._tray_size_timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, SCALE_UPDATE_TIMEOUT, () => {
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
this._preferences._settings.set_int('tray-size', scale.get_value());
|
|
|
|
|
this._preferences._tray_size_timeout = 0;
|
|
|
|
|
return GLib.SOURCE_REMOVE;
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
}
|
2017-01-04 09:11:09 -05:00
|
|
|
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
leftbox_size_scale_value_changed_cb(scale) {
|
|
|
|
|
// Avoid settings the size consinuosly
|
|
|
|
|
if (this._preferences._leftbox_size_timeout > 0)
|
2023-09-21 19:22:31 -07:00
|
|
|
GLib.Source.remove(this._preferences._leftbox_size_timeout);
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
|
2023-09-21 19:22:31 -07:00
|
|
|
this._preferences._leftbox_size_timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, SCALE_UPDATE_TIMEOUT, () => {
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
this._preferences._settings.set_int('leftbox-size', scale.get_value());
|
|
|
|
|
this._preferences._leftbox_size_timeout = 0;
|
|
|
|
|
return GLib.SOURCE_REMOVE;
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
appicon_margin_scale_value_changed_cb(scale) {
|
|
|
|
|
// Avoid settings the size consinuosly
|
|
|
|
|
if (this._preferences._appicon_margin_timeout > 0)
|
2023-09-21 19:22:31 -07:00
|
|
|
GLib.Source.remove(this._preferences._appicon_margin_timeout);
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
|
2023-09-21 19:22:31 -07:00
|
|
|
this._preferences._appicon_margin_timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, SCALE_UPDATE_TIMEOUT, () => {
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
this._preferences._settings.set_int('appicon-margin', scale.get_value());
|
|
|
|
|
this._preferences._appicon_margin_timeout = 0;
|
|
|
|
|
return GLib.SOURCE_REMOVE;
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
appicon_padding_scale_value_changed_cb(scale) {
|
|
|
|
|
// Avoid settings the size consinuosly
|
|
|
|
|
if (this._preferences._appicon_padding_timeout > 0)
|
2023-09-21 19:22:31 -07:00
|
|
|
GLib.Source.remove(this._preferences._appicon_padding_timeout);
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
|
2023-09-21 19:22:31 -07:00
|
|
|
this._preferences._appicon_padding_timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, SCALE_UPDATE_TIMEOUT, () => {
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
this._preferences._settings.set_int('appicon-padding', scale.get_value());
|
|
|
|
|
this._preferences._appicon_padding_timeout = 0;
|
|
|
|
|
return GLib.SOURCE_REMOVE;
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tray_padding_scale_value_changed_cb(scale) {
|
|
|
|
|
// Avoid settings the size consinuosly
|
|
|
|
|
if (this._preferences._tray_padding_timeout > 0)
|
2023-09-21 19:22:31 -07:00
|
|
|
GLib.Source.remove(this._preferences._tray_padding_timeout);
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
|
2023-09-21 19:22:31 -07:00
|
|
|
this._preferences._tray_padding_timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, SCALE_UPDATE_TIMEOUT, () => {
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
this._preferences._settings.set_int('tray-padding', scale.get_value());
|
|
|
|
|
this._preferences._tray_padding_timeout = 0;
|
|
|
|
|
return GLib.SOURCE_REMOVE;
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
statusicon_padding_scale_value_changed_cb(scale) {
|
|
|
|
|
// Avoid settings the size consinuosly
|
|
|
|
|
if (this._preferences._statusicon_padding_timeout > 0)
|
2023-09-21 19:22:31 -07:00
|
|
|
GLib.Source.remove(this._preferences._statusicon_padding_timeout);
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
|
2023-09-21 19:22:31 -07:00
|
|
|
this._preferences._statusicon_padding_timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, SCALE_UPDATE_TIMEOUT, () => {
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
this._preferences._settings.set_int('status-icon-padding', scale.get_value());
|
|
|
|
|
this._preferences._statusicon_padding_timeout = 0;
|
|
|
|
|
return GLib.SOURCE_REMOVE;
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
leftbox_padding_scale_value_changed_cb(scale) {
|
|
|
|
|
// Avoid settings the size consinuosly
|
|
|
|
|
if (this._preferences._leftbox_padding_timeout > 0)
|
2023-09-21 19:22:31 -07:00
|
|
|
GLib.Source.remove(this._preferences._leftbox_padding_timeout);
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
|
2023-09-21 19:22:31 -07:00
|
|
|
this._preferences._leftbox_padding_timeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, SCALE_UPDATE_TIMEOUT, () => {
|
Update to Gnome 40 (#1303)
* 1
* renamed ui.viewSelector to ui.searchController
* add arrowIcon null check
* add object null check
* add _showAppsButton null check
* fixed _workspacesDisplay
* removed shadow-type properties
* removed packing from ui
* renamed margin_left/right to margin_start/end
* renamed GtkRadioButton to GtkToggleButton, removed draw_indicator and image_position
* removed xalign from buttons, stock -> icon_name, GtkFileChooserButton -> BtkButton (todo connect a GtkFileChooserNative), removed format-value (todo connect GtkScaleFormatValueFunc callback)
* removed events, relief
* comment arrowIcon.set_icon_name and _hbox.get_last_child out
* called gtk4-builder-tool simplify --3to4 on Settings.ui
* fix _workspaceDisplay
* revert Settings.ui back to old gtk3 version
* removed _builder.connect_signals_full and added a BuilderScope instead, use class specific add functions, removed show_all for widgets, updated margins* for GtkGrid
* add try catch aroung object.connect
* fixed _searchEntry path
* disabled _newUpdateWorkspacesViews temporarily, because it is very buggy right now
* fixed _searchEntry path (this time for real?)
* dialog.show_all() -> dialog.show(), widget.get_toplevel() -> widget.get_root(), fixed adjustScrollableHeight (no longer crashes, still does not work correctly)
* updated GtkGrid.attach calls
* added Gtk.FileChooserNative for show_applications_icon_file_filebutton
* added packing again to ui (commented) and also added layout row/column/width/height in exchange for top_attach/left_attach/colspan/rowspan
* renamed colspan/rowspan to column-span/row-span
* removed all packaing left_attach/top_attach
* updated adjustScrollableHeight so the dialog will have a reasonable size again
* limit shell-version to 40 since it is not backwards compatible right now
* called _updateBackgrounds in layoutManager ,fixed overview <-> _overview typo?
* pass Settings instead of Settings._settings to BuilderScope
* workaround for showAppsIcon (_showAppsButton seems to be no longer be available)
* replaced newlines in the ui file with the newline unicode symbol, so code block collapsing works peroperly
* moved the scrolled window directly into each notebook tab, so the tab headers are always visible
* fixed taskbarListBox children loops
* commented non working elements out (panel on left/right, import/export settings, update)
* renamed Settings to Preferences to avoid confusion with dconf settings object
* updated this.widget to this.notebook
* fixed dialogs size and expand
* fixed window preview options having too many columns
* removed all packing with expand/fill/position (already uncommented)
* removed menu arrows since they are no longer recommended for gnome40
* removed adjustScrollableHeight, default sizes are acceptable
* updated ui required version to gtk 4.0
* updated path to dash.showAppsButton
* fixes for showAppsButton
* fixed clickToExit
* fixed import/export settings
* added disable show overview on startup option
* removed old show apps animation
* fixed panel on left/right side
* fixed scroll on volume icon
no longer will scrolling on the volume icon switch workspaces as well
* commented some setFocusedMonitor support out, caused issues on Xorg
* removed oldDash
* updated hide overview on startup, no longer closes overview after suspend etc
* removed _newOverviewRelayout
* removed _newUpdateWorkspacesViews
* commented setFocusedMonitor out completly, because show overview on non primary monitor does not work properly for now
* fixed typo
* fixed merging error
* check if func is valid in hookVfunc
* updated ui to gtk4, fixed merging error
* fixed layout for apply changes to all monitors
* fix behaviour tab and app icon margin/padding grid
* fix animate launching new windows grid row
* fixed about tab
Co-authored-by: Cole Gerdemann <corvettecole@gmail.com>
2021-05-08 15:07:25 +02:00
|
|
|
this._preferences._settings.set_int('leftbox-padding', scale.get_value());
|
|
|
|
|
this._preferences._leftbox_padding_timeout = 0;
|
|
|
|
|
return GLib.SOURCE_REMOVE;
|
2022-04-04 13:25:45 -04:00
|
|
|
});
|
2016-12-22 18:12:04 -05:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
2023-08-13 03:06:39 +02:00
|
|
|
export default class DashToPanelPreferences extends ExtensionPreferences {
|
|
|
|
|
fillPreferencesWindow(window) {
|
2023-08-13 20:12:56 +02:00
|
|
|
window._settings = this.getSettings('org.gnome.shell.extensions.dash-to-panel');
|
2022-04-06 00:46:48 +02:00
|
|
|
|
2023-08-13 03:06:39 +02:00
|
|
|
// use default width or window
|
|
|
|
|
window.set_default_size(0, 740);
|
|
|
|
|
|
2023-08-13 20:12:56 +02:00
|
|
|
let preferences = new Preferences(window, window._settings, this.path);
|
2023-08-13 03:06:39 +02:00
|
|
|
}
|
2023-08-13 20:10:23 +02:00
|
|
|
}
|