1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
/* gsm-util.h
* Copyright (C) 2008 Lucas Rocha.
* Copyright (C) 2012-2021 MATE Developers
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
#ifndef __GSM_UTIL_H__
#define __GSM_UTIL_H__
#include <glib.h>
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" {
#endif
#define IS_STRING_EMPTY(x) ((x)==NULL||(x)[0]=='\0')
gchar** gsm_get_screen_locker_command (void);
char * gsm_util_find_desktop_file_for_app_name (const char *app_name,
char **dirs);
gchar *gsm_util_get_empty_tmp_session_dir (void);
const char *gsm_util_get_saved_session_dir (void);
gchar** gsm_util_get_app_dirs (void);
gchar** gsm_util_get_autostart_dirs (void);
gchar ** gsm_util_get_desktop_dirs (void);
gboolean gsm_util_text_is_blank (const char *str);
void gsm_util_init_error (gboolean fatal,
const char *format, ...);
char * gsm_util_generate_startup_id (void);
gboolean gsm_util_export_activation_environment (GError **error);
#ifdef HAVE_SYSTEMD
gboolean gsm_util_export_user_environment (GError **error);
#endif
void gsm_util_setenv (const char *variable,
const char *value);
GtkWidget* gsm_util_dialog_add_button (GtkDialog *dialog,
const gchar *button_text,
const gchar *icon_name,
gint response_id);
#ifdef __cplusplus
}
#endif
#endif /* __GSM_UTIL_H__ */
|