| 1 | /* Procman - dialogs |
| 2 | * Copyright (C) 2001 Kevin Vandersloot |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Library General Public |
| 15 | * License along with this program; if not, see <http://www.gnu.org/licenses/>. |
| 16 | * |
| 17 | */ |
| 18 | |
| 19 | #pragma once |
| 20 | |
| 21 | #include <glib.h> |
| 22 | #include "application.h" |
| 23 | |
| 24 | /* These are the actual range of settable values. Values outside this range |
| 25 | are scaled back to these limits. So show these limits in the slider |
| 26 | */ |
| 27 | #ifdef __linux__ |
| 28 | const int RENICE_VAL_MIN = -20; |
| 29 | const int RENICE_VAL_MAX = 19; |
| 30 | #else /* ! linux */ |
| 31 | const int RENICE_VAL_MIN = -20; |
| 32 | const int RENICE_VAL_MAX = 20; |
| 33 | #endif |
| 34 | |
| 35 | void procdialog_create_kill_dialog (GsmApplication *app, |
| 36 | int signal, |
| 37 | gint32 proc); |
| 38 | void procdialog_create_renice_dialog (GsmApplication *app); |