summaryrefslogtreecommitdiff
path: root/src/gpm-prefs-core.c
AgeCommit message (Collapse)AuthorFilesLines
2020-07-08Remove unused variable from gpm_notebook_scroll_event_cbrbuj1-5/+4
2020-03-09Port from EggDebug to the built-in GLib logging frameworkrbuj1-15/+14
2020-03-07Rewrite gpm-prefs.ui from scratchrbuj1-130/+80
2019-09-26drop obsolete version checks for upowerraveit651-11/+0
with required version bump to upower-0.99.8 we don't need them any more.
2019-09-26Use up_client_get_devices2()raveit651-1/+1
The previous code would have leaked all the UpDevice objects because no free function was set on the returned GPtrArray. With depending on upower-glib 0.99.8 get_devices() was deprecated and get_devices2() was introduced, we can simply switch to get_devices2() which does set a free function on the returned GPtrArray, stopping the leak. Inspired from: https://gitlab.gnome.org/GNOME/gnome-control-center/commit/c1210c5 see upower upstream: https://gitlab.freedesktop.org/upower/upower/commit/cb1071b
2019-08-20Use gresources for gpm-prefs.ui and gpm-statistics.uirbuj1-1/+1
2019-08-20gpm-prefs-core: avoid 'g_type_class_add_private'Pablo Barciela1-6/+3
2019-07-10Add scroll interface tabs with mouse wheelLaurent Napias1-9/+16
in preferences and gpm-statistics (mouse-battery)
2017-03-07Replace deprecated UPower functions with ConsoleKit2 equivalentsinfirit1-6/+3
This requires ConsoleKit2 0.9.2. + some corrections for issues mentioned at https://github.com/mate-desktop/mate-power-manager/pull/209
2017-03-07remove some unused dbus-glib includesmonsta1-1/+0
2016-11-22move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta1-10/+0
and require mate-panel >= 1.17
2016-08-01Port from libunique to GtkApplicationMatt Spaulding1-0/+19
2016-06-07rely less on GtkStockSorokin Alexei1-2/+2
2015-11-05Support disabling of PowerBtn.Mike Gabriel1-0/+1
By adding GPM_ACTION_POLICY_NOTHING to the available power button actions, it is now possible for MATE users to disable the system's power button, while being in a MATE desktop session. This is helpful if a system's power button is designed in a way that it can easily be accidentally hit by the user without noticing.
2015-08-31Save copying costRoy Zhang1-6/+3
2015-07-28Also free the builder when finalizingRoy Zhang1-0/+1
2015-07-28Fix memory leaksRoy Zhang1-0/+3
g_variant_get() uses g_strdup() internally, so we should free the string after use.
2015-05-04dropped udisks support for several reasons.Monsta1-8/+0
1. udisks1 will soon be dropped from debian and ubuntu, and probably from other major distros as well. it's replaced by udisks2. 2. the only udisks1 feature that was used in m-p-m was the disk spindown. its usefullness is questionable, especially when you have an SSD. 3. udisks2 doesn't seem to have neither API nor command-line tools for the spindown feature. 4. spindown support has been dropped in gnome-power-manager in 2011, https://git.gnome.org/browse/gnome-power-manager/commit/?id=d97a988246d34f4cd38b7ee1335c9b500c7c522f 5. it also has been dropped in xfce-power-manager in 2014, http://git.xfce.org/xfce/xfce4-power-manager/log/?qt=grep&q=disk+spin+down Closes https://github.com/mate-desktop/mate-power-manager/pull/144
2015-03-23removed obsolete and unused mateconf codemonsta1-52/+0
Closes https://github.com/mate-desktop/mate-power-manager/pull/137
2015-03-15abort application when UI load failsMonsta1-4/+3
some genius who programmed this decided it would be fine to access GtkBuilder variables after gtk_builder_add_from_file fails. thanks for the segfault, man. I've wasted an hour trying to find out what happens. Closes https://github.com/mate-desktop/mate-power-manager/pull/128
2015-01-15remove ifdefs, bump upower version requirementMonsta1-6/+0
Closes https://github.com/mate-desktop/mate-power-manager/pull/126
2014-07-02Remove old GTK2 code and supportStefano Karapetsas1-115/+21
2014-04-09port mate-power-manager to upower-0.99 APIStefan Seyfried1-2/+6
fix mate-power-manager for current upower versions
2014-02-26Define UPOWER_ENABLE_DEPRECATEDStefano Karapetsas1-0/+1
2013-07-10Fix gpm_prefs_init return valuesFabio Erculiani1-2/+2
2013-07-10gpm-prefs-core: fix can_shutdown when logind is in useFabio Erculiani1-5/+22
2013-07-05drop --with-systemdsleep and move logind detection to runtimeFabio Erculiani1-97/+100
There is no need to bind the user to either systemd-logind or upower at build time. People can switch between init systems or run logind without systemd.
2013-04-08add logind sleep abilityAnton V. Boyarshinov1-1/+93
With upower 0.9.20, sleep and hybernate functions of upower declared deprecated. All applications should use logind for sleep/hybernate. So, there is an implementation of logind-powered sleep for mpm.
2012-11-08show always "do nothing" optionStefano Karapetsas1-10/+7
2012-10-30Use gsettings enums (partially from GNOME)Brent Hull1-17/+4
2012-10-27Port to Gsettings based on GNOME patch by Richard HughesBrent Hull1-196/+67
2012-10-27Get device capabilities in the preferences capplet, not the daemon (GNOME ↵Brent Hull1-55/+42
fix for bug #617529 originally by Richard Hughes)
2012-03-20fix gpm-prefs, need to fix gpm-statisticsStefano Karapetsas1-12/+16
2011-12-29fix missing switch of GTK_COMBO_BOX to GTK_COMBO_BOX_TEXTSam Tygier1-2/+2
2011-12-29fix missing semicolons, introduced in 3893856a1e22cb62a9d36eca5ab96284859d0d19Sam Tygier1-2/+2
2011-12-29gtk_check_version should be GTK_CHECK_VERSION, lowercase version is C ↵Sam Tygier1-15/+15
function, not a preprocessor macro
2011-12-26Fixed gtk_combo_box_append_text deprecationSteve Zesch1-15/+61
2011-12-24Spacing adventuresSteve Zesch1-1/+1
2011-12-24lol spacingSteve Zesch1-60/+60
2011-12-24Fixed gtk_widget_hide_all deprecationSteve Zesch1-6/+35
2011-12-11moved from Mate-ExtraStefano Karapetsas1-0/+1024