summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2022-03-22gs-prefs: macros instead of static methods of one sentencerbuj1-56/+9
2022-03-22Fix implicit conversion changes signedness: 'gboolean' to 'guint'rbuj7-32/+32
2022-03-19gs-window-x11: Fix -Wshorten-64-to-32 warningrbuj1-3/+3
2022-03-19gs-watcher-x11: Fix -Wshorten-64-to-32 warningrbuj1-3/+3
2022-03-19gs-lock-plug: Fix -Wshorten-64-to-32 warningrbuj1-2/+2
2022-03-11mate-screensaver-preferences: Fix -Wfloat-conversion warningsrbuj1-10/+8
2022-03-11gs-fade: Fix -Wfloat-conversion warningsrbuj1-31/+18
2022-03-07mate-screensaver-preferences: fix memory leakrbuj1-4/+5
2022-02-19Unnecessary G_OBJECT cast when calling signal connect functionrbuj1-1/+1
2022-02-19Fix build warnings about missing field initializerrbuj3-3/+3
2022-02-19gs-listener-dbus: GTimeVal deprecationrbuj1-4/+7
2022-02-19Don't build the path to mate-screensaver-dialogrbuj1-4/+2
2022-02-19Don't build the path to mate-screensaver-gl-helperrbuj3-12/+7
2021-12-14mate-screensaver-preferences: fix memory leakrbuj1-61/+64
2021-11-20Use a blank line at mostrbuj13-26/+0
2021-11-15gs-theme-manager: reload on menu_tree changedrbuj1-0/+14
2021-10-15Prompt-driven auth. helperPaul Wolneykien4-128/+172
By the term "prompt-driven" I mean two-way conversation between the screensaver dialog and the PAM stack. As you probably know, PAM works by conversation with a dialog program asking the user to enter something in answer to each message it sends. In the most conventional case, the only question is "Password:" and the password is the only data the user enters. But in general, the number of questions and messages are not limited to that. The previous support of PAM helper (gs-auth-helper.c) was written and worked for the mentioned "only password" authentication scheme. For other schemes it wasn't enough. New implementation fixes that limitation. Same as the previous version of gs-auth-helper.c, the new version uses pipe interface for interprocess communication and synchronization. However, unlike the previous version, new version uses two pipes instead of a single pipe: the first one is used to transfer prompt text from PAM via the helper to the screensaver dialog, and the second one is used to transfer the user input from the dialog to helper (and then the helper replies with it back to PAM). Having that bidirectional prompt/reply channel it is possible to make as many prompt/reply passes as required by PAM. The present helper program (see the helper/ dir) is based on the helper written by [email protected], which is in turn loosely based on unix_chkpwd by Andrew Morgan. All new code is untabified under the assumption the tab width is 8. Signed-off-by: Paul Wolneykien <[email protected]>
2021-07-24Allow change of time and date formats on lock screen v4Eugene San (eugenesan)1-3/+39
2021-06-22update copyright to 2021raveit6547-0/+47
2021-01-26i18n: Do not collect the translation for Iconrbuj1-1/+1
2021-01-07Remove warning -Wshadowrbuj2-12/+13
2020-11-10Add Show/Hide password emblem in password entryrbuj1-0/+28
2020-11-01mate-screensaver-preferences: Show lock image preview on file chooserrbuj1-2/+80
2020-06-17add git.mk to generate .gitignoretamplan1-0/+2
2020-04-19gs-lock-plug: remove function castingrbuj1-8/+12
2020-04-16Remove function casting for g_idle_add (function, data)rbuj6-20/+29
2020-04-09Custom background image for lock screenrbuj2-1/+34
2020-03-13Remove warnings: cast between incompatible function typesrbuj7-20/+17
2020-03-13Remove warning function declaration isn’t a prototyperbuj1-1/+1
2020-03-10gs-window-x11: Remove warning "variable ‘widget’ set but not used"rbuj1-1/+1
2019-11-28avoid redundant redeclarationsPablo Barciela12-24/+2
2019-10-29migrate from intltool to gettextWu Xiaotian2-5/+7
2019-10-10Add keywords key to .desktop filesMartin Wimpress1-0/+2
Taken from downstream Debian patch. Make keyboard translatable. Add translator notes.
2019-10-02gs_prefs: avoid 'g_type_class_add_private'Pablo Barciela1-7/+2
2019-10-02gs-job: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-10-02gs-listener-dbus: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-10-02gs-manager: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-10-02copy-theme-dialog: avoid 'g_type_class_add_private'Pablo Barciela1-34/+3
2019-10-02gs-theme-manager: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-10-02gs-lock-plug: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-10-02gs-fade: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-10-02gs-grab-x11: avoid 'g_type_class_add_private'Pablo Barciela1-7/+3
2019-10-02gs-window-x11: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-10-02gs-monitor: avoid 'g_type_class_add_private'Pablo Barciela1-7/+2
2019-10-02gs-watcher-x11: avoid 'g_type_class_add_private'Pablo Barciela1-6/+2
2019-08-26remove old HAL remnantsmonsta1-37/+1
2019-08-26Ensure lock on suspend and unlock on resumeAli Akbar3-2/+119
This patch is adopted from xfce4-screensaver: https://git.xfce.org/apps/xfce4-screensaver/commit/?id=9e53bb2866 Modified to match screen locking behavior of mate-power-manager. Introduced new Inhibitor lock to make sure lock was in place and user will be greeted with unlock dialog when resumes from suspend/ hibernate.
2019-08-22Use gresources for mate-screensaver-preferences.uirbuj2-7/+11
2019-08-19lock-dialog: add style_provider to current screen globallyrbuj1-1/+6
gtk_style_context_add_provider_for_screen (gdk_screen_get_default(), GTK_STYLE_PROVIDER (style_provider), GTK_STYLE_PROVIDER_PRIORITY_USER); https://developer.gnome.org/gtk3/stable/GtkStyleContext.html#gtk-style-context-add-provider-for-screen css data is located at /usr/share/mate-screensaver/lock-dialog-THEME.css, XDG_CONFIG_HOME/gtk-3.0/gtk.css, /usr/share/themes/... /usr/share/mate-screensaver/lock-dialog-THEME.css file has highest priority, if exists: $ gsettings get org.mate.screensaver lock-dialog-theme 'test' $ grep lock-dialog /usr/share/mate-screensaver/lock-dialog-test.css .lock-dialog.background { .lock-dialog frame { .lock-dialog notebook { .lock-dialog entry, .lock-dialog entry:focus { .lock-dialog button, .lock-dialog button:focus { .lock-dialog button:hover, .lock-dialog button:hover:active { ... Otherwise: /usr/share/themes folder if lock-dialog-theme is set to 'debault' $ gsettings get org.mate.screensaver lock-dialog-theme 'default' $ gsettings get org.mate.interface gtk-theme 'TraditionalOk' $ grep lock-dialog /usr/share/themes/TraditionalOk/gtk-3.0/*.css /usr/share/themes/TraditionalOk/gtk-3.0/mate-applications.css:.lock-dialog { /usr/share/themes/TraditionalOk/gtk-3.0/mate-applications.css:.lock-dialog notebook { Priority order: https://developer.gnome.org/gtk3/stable/GtkStyleProvider.html
2019-08-11Replace deprecated gtk_css_provider_get_defaultraveit651-1/+5