summaryrefslogtreecommitdiff
path: root/src/mate-screensaver-preferences.c
AgeCommit message (Collapse)AuthorFilesLines
2024-05-21mate-screensaver-preferences: Improve and cleanup time scale formatting (#295)HEADmasterColomban Wendling1-76/+62
Formatting the value of a GtkScale is actually pretty tricky, because the lower and upper values representations are used to compute the size required do draw *all* values. This means the representations for the lower and upper bounds have to be at least as big as any other possible value, failing that leads to wrapping and overflowing of the value representation. This was previously partially done in `time_to_string_text()`, but not only wasn't it comprehensive (it only did so for whole minutes < 59), but it also meant that if one of the bounds wasn't a whole minute it didn't have the desired effect. Fix this by extracting the code for padding the string outside of the time formatting, and pad the resulting format string whatever it is. Also improve the padding to try and be less visible, by padding to the side where we don't want the value to align (e.g. pad on the right if we want the value left-aligned). This is still basically a sad hack, but there doesn't seem to be a better way to do this when neither the lower nor upper bound is necessarily the largest value.
2024-05-16add the number of minutes for GUI settings to lock the screen after ↵mouse1-9/+64
activating the screen saver (#293)
2022-03-11mate-screensaver-preferences: Fix -Wfloat-conversion warningsrbuj1-10/+8
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-19Don't build the path to mate-screensaver-gl-helperrbuj1-6/+3
2021-12-14mate-screensaver-preferences: fix memory leakrbuj1-61/+64
2021-11-20Use a blank line at mostrbuj1-2/+0
2021-06-22update copyright to 2021raveit651-0/+1
2021-01-07Remove warning -Wshadowrbuj1-8/+7
2020-11-01mate-screensaver-preferences: Show lock image preview on file chooserrbuj1-2/+80
2020-04-16Remove function casting for g_idle_add (function, data)rbuj1-1/+2
2020-04-09Custom background image for lock screenrbuj1-0/+15
2020-03-13Remove warnings: cast between incompatible function typesrbuj1-2/+1
2020-03-13Remove warning function declaration isn’t a prototyperbuj1-1/+1
2019-11-28avoid redundant redeclarationsPablo Barciela1-0/+2
2019-08-22Use gresources for mate-screensaver-preferences.uirbuj1-7/+2
2019-07-05Remove trailing whitespacesLaurent Napias1-1/+1
2018-02-01require GTK+ 3.22 and GLib 2.50monsta1-4/+0
2017-12-19WidthOfScreen and HeightOfScreen implementationPablo Barciela1-5/+1
This commit reverts: https://github.com/mate-desktop/mate-screensaver/commit/816394c1a6ce9968dba3e1b0ecc884c8ccca4d43 And it applies an alternative to fix the deprecated functions: gdk_screen_get_width gdk_screen_get_height
2017-09-11fix loop initial declarationsraveit651-2/+2
2017-09-09 Fix: idle slider display in all languagesZenWalker1-5/+11
2017-09-08Fix: idle slider display bugZenWalker1-0/+63
Fixes #101
2017-08-10avoid deprecated gdk_screen_get_width/heightZenWalker1-1/+5
2017-07-26don't use deprecated gtk_show_uriraveit651-0/+7
2017-01-17GTK+3.22: fix some GdkScreen related deprecationsAlexei Sorokin1-19/+19
2017-01-15avoid deprecated gdk_window_set_background functionsAlexei Sorokin1-14/+25
Which are completely broken in GTK+ 3.22.
2016-11-20move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta1-105/+0
and require libmatekbd and libmate-desktop >= 1.17
2016-06-18Gtk3: fix several deprecationsSorokin Alexei1-6/+9
2015-12-22mate_gdk_spawn_command_line_on_screen can be used with any GTK+monsta1-3/+3
2015-12-13remove more unused variablesWolfgang Ulbrich1-2/+1
this avoid some build warnings
2015-12-10GTK3: don't use deprecated gtk_widget_size_requestWolfgang Ulbrich1-0/+4
2015-07-09Use accessor functions instead of direct accessinfirit1-5/+1
Make Gtk2 build with GSEAL_ENABLE And cut down on ifdef hell.
2015-07-09Remove gtk version check around gdk_x11_screen_lookup_visualinfirit1-8/+0
The function has been in Gtk 2 since 2.2.
2014-07-02Remove some old code after GLIB and GTK2 minimum version bumpStefano Karapetsas1-2/+0
2014-02-21Fix help button in preferences dialog.infirit1-36/+3
2013-11-12mate-screensaver-preferences: Add GTK3 supportStefano Karapetsas1-0/+175
2013-08-02Replace mate-open with gvfs-openinfirit1-1/+1
2013-08-01Replace ghelp: with help: for user-guideinfirit1-1/+1
2013-05-06Use idle-delay key in org.mate.session schemaStefano Karapetsas1-110/+73
Remove it from screensaver schema Closes #17 (https://github.com/mate-desktop/mate-screensaver/issues/17)
2012-11-18fixed incorrect fsf addressesSteve Zesch1-2/+2
2012-11-03fix org.mate.lockdown schema nameStefano Karapetsas1-1/+1
2012-11-03Port MATE Screensaver to GSettingsraveit1-228/+112
2011-11-04first commitPerberos1-0/+1781