Marco Melorio
a26f9f3346
screen: Remove usage of deprecated gtk_widget_hide
2023-01-02 22:10:39 +00:00
Marco Trevisan (Treviño)
72863a8f56
screen: Add Screen Privacy section to show Privacy screen toggle
...
The privacy screen toggle is visible only when there's a monitor that
supports it and it's modifiable only when there's not hardware lock.
Fixes : #909
2022-07-28 22:47:14 +00:00
Marco Trevisan (Treviño)
b327301951
Panels: Rename lock panel into screen panel
...
This was designed some time ago [1] but never actually implemented, so:
- Change the screen lock section to "screen"
- Move the screen section up, so it's next to the other types of
hardware
- Added a Screen lock section in there
[1] https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/909#note_737827
2022-07-28 22:47:14 +00:00
Bastien Nocera
66808c2b3f
screen: Remove screen panel
...
It's been replaced by the updated Power panel and the new Privacy panel.
2013-01-17 11:06:02 +01:00
Cosimo Cecchi
b6b77de982
screen: use a GResource for GtkBuilder UI definition
...
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:16 +01:00
Cosimo Cecchi
9ae15e6df8
screen: remove unused code
...
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-04 20:34:38 +01:00
Bastien Nocera
3686cf7eb8
shell: Make all control-center plugins static
...
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.
By the same token, it will stop external panels from being
created, and loaded.
https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Thomas Wood
4f322b8c1c
screen: include string.h to avoid implicit declaration of function 'strstr'
2012-11-13 14:46:00 +00:00
Bastien Nocera
75e0fa8449
screen: Don't print a warning with no backlight device
2012-10-11 13:13:32 +02:00
Bastien Nocera
39bde7a012
screen: Avoid accessing destroyed panel
...
When we cancel the Brightness calls because the panel is getting
destroyed, we shouldn't try to access panel widgets.
https://bugzilla.gnome.org/show_bug.cgi?id=677963
2012-10-11 13:11:59 +02:00
Ray Strode
b0e7a5efa8
panels: add register macro
...
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.
This commit does that.
2012-08-21 14:32:33 -04:00
Matthias Clasen
576d6ba04d
screen: Keep 'show notifications' sensitive
...
Even when automatic screen locking is disabled, the user can
still manually lock the screen, and may want to control whether
notifications show up in that case or not.
2012-08-06 14:34:51 -04:00
Giovanni Campagna
95d0a2e537
screen: add "Show Notifications" setting
...
Add a checkbox to control the visibility of notifications when
the screen is locked.
https://bugzilla.gnome.org/show_bug.cgi?id=658660
2012-07-17 15:50:40 +01:00
Bastien Nocera
4d4aab542a
Revert "Brightness & Lock: add Show Notifications setting"
...
This reverts commit 11ad5954c6
.
Committed in error
2012-07-11 11:06:34 +01:00
Giovanni Campagna
11ad5954c6
Brightness & Lock: add Show Notifications setting
...
Add a switch to control the visibility of notifications when
the screen is locked.
https://bugzilla.gnome.org/show_bug.cgi?id=658660
2012-07-11 11:01:11 +01:00
Matthias Clasen
dd9493821c
screen: Fix the build
...
Move the on_signal callback below the functions that it is using.
2012-06-15 11:41:39 -04:00
Giovanni Campagna
7ab09177e1
screen: Fix for gnome-settings-daemon changes
...
g-s-d changed its DBus interface, and that made all
external changes to brightness invisible to the panel. Update
accordingly.
https://bugzilla.gnome.org/show_bug.cgi?id=662117
2012-06-15 16:04:28 +01:00
Florian Müllner
dc381014c0
screen: Add get_help_uri() implementation
...
https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:38 +02:00
Rodrigo Moya
051a2d188e
screen: Don't set gnome-session's idle-delay to 1 never
2011-10-06 12:19:08 +02:00
Bastien Nocera
34594d0dc0
screen: Remove indent on "Turn off..." label
...
When we remove the brightness slider and heading.
2011-09-08 17:03:22 +01:00
Bastien Nocera
181b313ba8
screen: Fix resulting top-padding
...
When hiding the brightness bar, don't leave unsightly bits of
frame lying around.
https://bugzilla.gnome.org/show_bug.cgi?id=657606
2011-09-08 17:03:16 +01:00
Bastien Nocera
68982a76dd
screen: Don't fill up the space
...
When the brightness slider is hidden, we're smaller than the
minimum panel size, so don't fill that up.
2011-09-08 17:00:59 +01:00
Bastien Nocera
9410bea42f
screen: Hide brightness heading when unused
...
Trying to just hide the widget will cause some severely bizarre
display problems, so just set the heading to be empty instead
for now.
We should probably look at another way of handling this case.
https://bugzilla.gnome.org/show_bug.cgi?id=657606
2011-08-31 09:37:05 +01:00
Rodrigo Moya
9132f8f2f8
Avoid making lots of DBus calls to set the brightness when the slider changes
...
too quickly
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/805473
2011-07-05 16:39:17 +02:00
Richard Hughes
b5aa23b5ca
Use the new gnome-settings-daemon DBus names now the power plugin has moved there
2011-07-04 17:56:02 +01:00
William Jon McCann
509da80abd
screen: honor disable-lock-screen setting
2011-03-21 09:50:22 -04:00
Cosimo Cecchi
dd7bd15939
screen: set the label as insensitive when Lock is off
...
https://bugzilla.gnome.org/show_bug.cgi?id=645149
2011-03-18 13:23:20 -04:00
William Jon McCann
93ad1eedf6
screen: go back to using relative time in the lock ui
...
This means that lock times are relative to the time the display
backlight turns off.
2011-03-17 01:45:25 -04:00
William Jon McCann
a52956abf6
screen: drop converting between seconds and minutes
...
All settings now use seconds for consistency.
2011-03-16 23:57:34 -04:00
Matthias Clasen
22bd03db52
Screen: Fix the delay acrobatics
...
The special-casing of lock delay 0 was wrong, since the > 0 check
was happening after converting to absolute.
https://bugzilla.gnome.org/show_bug.cgi?id=644403
2011-03-10 19:03:51 -05:00
William Jon McCann
c805978234
screen: fix the operation of locking
...
- Use the correct units power uses seconds the others use minutes
- Use an absolute time in the lock dropdown (the key uses relative)
- Use the MIN(screen-off, lock) for the idle time
2011-02-11 17:03:18 -05:00
William Jon McCann
55e1756799
screen: untabify
2011-02-11 17:03:18 -05:00
Bastien Nocera
99c1d959be
screen: Make sure the combo box is always set
...
If a value is between 2 values, choose the upper one. If a value
is higher than the maximim used in the combobox, set it to the
maximum.
2011-02-08 21:36:32 +00:00
Bastien Nocera
d6a2046a0f
screen: Set idle-delay to the same value as DPMS timeout
...
So that the user and session are idle when DPMS kicks in.
2011-02-08 15:23:11 +00:00
Bastien Nocera
c09ecde3cf
screen: Hook up screen locking
...
https://bugzilla.gnome.org/show_bug.cgi?id=637939
2011-02-08 15:23:10 +00:00
Bastien Nocera
d79e31da32
screen: Hide the brightness slider when it cannot be set
...
If there's no brightness hardware, just hide the brightness related
preferences.
2011-02-07 17:00:00 +00:00
Bastien Nocera
5fd4a77588
screen: Simplify GtkBuilder-using code
...
By using the already defined macro
2011-02-07 16:59:59 +00:00
Richard Hughes
4d81619414
Connect up the screen dpms off combobox with the new keys in g-s-d
2010-11-18 14:46:33 +00:00
Richard Hughes
3b8ae693d5
Connect up the brightness slider and the dim checkbox with gnome-power-manager
2010-11-17 16:56:09 +00:00
William Jon McCann
a6e64f1aa3
[screen] Add screen brightness and lock panel
...
Not yet wired up.
2010-11-09 23:15:40 -05:00