summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2016-10-25add pkexec supportmonsta4-1/+51
closes https://github.com/mate-desktop/mate-system-monitor/issues/85 try pkexec before trying gksu for killing other users' processes or renicing a process. actual kill and renice commands are launched via helper tool (see discussion at https://bugzilla.gnome.org/491462). code is ported from gnome-system-monitor with some changes (e.g. helper tool code is in tools/ dir instead of scripts/ - it's not a script). for reference - relevant upstream commits: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=ccbff2a4293e43d6ea24fbf13477b10f58cd5212 https://git.gnome.org/browse/gnome-system-monitor/commit/?id=2b4308d9fc2b2e367030629e79b531c4f9ae3d0a https://git.gnome.org/browse/gnome-system-monitor/commit/?id=971b3c704dea49b22c1038f200933c5b3b35ece1 https://git.gnome.org/browse/gnome-system-monitor/commit/?id=c234b2a75dac454b818f1f40d302cf12f1a33aa2 https://git.gnome.org/browse/gnome-system-monitor/commit/?id=4cda3529e418098b35f7444d79ba421eb5403afc https://git.gnome.org/browse/gnome-system-monitor/commit/?id=ab7bd8aef7300eeb3835fdef9a2a1eefe7281631 https://git.gnome.org/browse/gnome-system-monitor/commit/?id=79eccf0cecbca237f4f911681438c33932da63e2 https://git.gnome.org/browse/gnome-system-monitor/commit/?id=a3bf3a7f56cf02c6a127aa168c570230e9fad356
2016-08-18update copyrightmonsta1-1/+1
2016-06-20Casting temporaries to references is not valid.Youri Mouton1-1/+3
2016-03-21run gksu binary instead of loading libgksu2.so (which is GTK+2 only)monsta1-38/+17
2016-03-02disks: implement saving and loading width and visibility of columnsmonsta4-21/+130
adapted from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=f589439a966151b2589bca21a4d6b40455eb201a with necessary changes from https://github.com/mate-desktop/mate-system-monitor/commit/eebc190a5aeb6ebaf5c3a868b68434679adddc74
2016-03-02fix typo in disk view gschema descriptionmonsta1-1/+1
2016-03-02some style correctionsmonsta3-10/+11
2016-03-02clean up some includes, remove some dead codemonsta4-23/+6
2016-03-02process table: rename proctable_update_all func to proctable_updatemonsta5-10/+10
2016-03-02process table: proctable_update_list is a local functionmonsta2-2/+1
2016-03-01remove some dead codemonsta1-37/+0
2016-03-01remove useless includemonsta1-1/+0
2016-03-01fix segfault on view mode change with process properties openmonsta2-7/+9
from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=76545e553c620d9b3437456bb4dbffa355c59816
2016-03-01Revert "process table: don't clear multiple rows selection on right click"monsta1-3/+1
This reverts commit b7c2c34a6662ee043be997c54ff1c85318818c2d. dammit. this made right-clicking on initially unfocused process table impossible. I had to select a process first, then right-click on it, or else all the right-click menu items were appearing grayed out. reverting this until we figure out how to do it without unwanted side effects.
2016-03-01process table: replace useless callback with single functionmonsta1-20/+1
all columns except for the first one were already made reorderable, so there's no need for this callback with a loop. just make the first column reorderable too and we're done. from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=3bd1b01b5e983379e69c02613280a218e8873914
2016-03-01drop weird matesu support (did matesu ever exist?!)monsta4-56/+0
2016-03-01process properties: show cgroups + show N/A when selinux isn't setmonsta1-1/+2
from: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=f3879a89f9bcc3e96b009c0033accb461c0672ac https://git.gnome.org/browse/gnome-system-monitor/commit/?id=7484244ea470690e52dd5b3ced0ff36917000355
2016-03-01process table: show running state when CPU time changesmonsta1-1/+6
adapted from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=da371b277e0ebbc71708f1ce91f879cfc4ab9c9f
2016-03-01process table: don't clear multiple rows selection on right clickmonsta1-1/+3
from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=70dd0dc7408f004bdeffbabaa0a874295ff9120f
2016-02-29fix copy-paste error, use proper type, keep it simplemonsta1-4/+1
- wrong function name introduced in https://github.com/mate-desktop/mate-system-monitor/commit/9ae0be5ccf7df2f35c13653da97771b06cf6603f - format_rate function already returns a string, no need to convert
2016-02-29sysinfo: fix forgotten memleakmonsta1-1/+4
2016-02-29process table: avoid expanding collapsed nodes on every refreshmonsta1-2/+0
from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=f7f4c5506bc47f7cd340ce02404029a0ca6185e0
2016-02-29main window: save maximized state in gsettings on exitmonsta4-6/+24
and load it on startup adapted from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=edf4163bb2e9ad1dd9b8a5b7c7244ccd8753d4b5
2016-02-29defaulttable: use correct icons (fix old gnome->mate replace error)monsta1-6/+3
and remove some entries for which no replacement could be found
2016-02-29kill/end/renice dialogs: use proper quotation marksmonsta1-3/+3
from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=2195a659f069478a9a28a50b5bd8231a561bb9f9
2016-02-29change colour -> color in comments for consistency with stringsmonsta3-3/+3
2016-02-29schema: make column names match the actual names in UImonsta1-32/+32
adapted from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=cfbeb0f71dfaca95118a27046941a7f3b0180e6a and corrected some more entries that aren't corrected there
2016-02-29prefs dialog: fix refresh rate not saving in some casesmonsta1-0/+1
from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=abc1f5b47efa2dcd5f0e9c378283e9d9e6ac9fdf cases are described in https://bugzilla.gnome.org/show_bug.cgi?id=543315
2016-02-28GTK+-3: Get values from GtkStyleContext states properlyraveit651-3/+12
2016-02-10get exact number of CPUs instead of guessingmonsta1-11/+4
adapted from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=549e2e3308620810dd795321d02f041e8ab58d29
2016-02-08sysinfo: fix indent a bitmonsta1-5/+5
2016-02-08use x/y align functions for GtkLabel with GTK+ >= 3.16monsta4-31/+143
Conflicts: src/interface.cpp src/procdialogs.cpp src/sysinfo.cpp src/util.cpp
2016-02-03Changed graph grid line colors basedWolfgang Ulbrich1-7/+10
inspired from: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=cb54374
2016-02-03load-graph.cpp: Draw the background explicitlyWolfgang Ulbrich2-11/+13
The gdk_window_set_background_pattern() function is a little dubious to use unless you are writing GTK+ code since the background may be overridden by gtkwidget.c whenever the style of the widget changes. Needed for gtk+-3.20
2016-01-21use gtk_image_new_from_icon_namemonsta1-1/+1
2016-01-11set minimum GTK+ version to 3.14 and drop some deprecated codeMonsta4-121/+0
2016-01-11drop GTK+2 code and --with-gtk build optionMonsta16-507/+63
2016-01-03remove ancient mateconf tool from list of known appsMonsta1-1/+0
2016-01-03drop MateConf migration scriptMonsta2-78/+2
2015-12-17remove unneeded assertmonsta1-2/+0
we don't need to crash here, thanks. the code below is able to handle excessive column ids just fine. fixes https://github.com/mate-desktop/mate-system-monitor/issues/76
2015-12-10prefs dialog: increase height a bitmonsta1-1/+1
2015-12-03remove even more dead codemonsta2-20/+0
2015-12-01GTK3: do not use deprecated GtkMiscWolfgang Ulbrich4-0/+120
2015-12-01GTK3: don't use deprecated gtk_{v/h}-boxWolfgang Ulbrich8-0/+35
2015-12-01Fixed adustments to only be set with a page_size of 0Wolfgang Ulbrich1-3/+3
* Setting an adjustment with non-zero page size is deprecated taken from: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=9ff48dc
2015-12-01GTK3: Drop use of deprecated treeview API. gtk_tree_view_set_rules_hintWolfgang Ulbrich6-1/+12
taken from: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=7fefa84
2015-12-01GTK3: don't use deprecated gtk_style_context_get_fontWolfgang Ulbrich1-1/+1
inspired from: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=a2d7fc1
2015-12-01GTK3: Do not use deprecated APIWolfgang Ulbrich7-2/+242
Namely, we make the following replacements: * GtkStyle -> GtkStyleContext * GdkColor -> GdkRGBA * GtkColorSelectionDialog -> GtkColorChooserDialog taken from....but adjusted: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=7ac1c1c
2015-12-01GTK3: Replaced sysinfo gtk tables with gtk gridsWolfgang Ulbrich1-0/+52
taken from: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=5047e43
2015-12-01process properties: use proper format for "CPU time" propertymonsta3-21/+5
it should be the same as in "CPU time" column of process table now adapted from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=3c1f17877f95fcac7f5d437739305e245af7ba8b