|
Packit |
8ea169 |
/*
|
|
Packit |
8ea169 |
* Copyright (C) 2013 Red Hat
|
|
Packit |
8ea169 |
*
|
|
Packit |
8ea169 |
* This program is free software; you can redistribute it and/or modify
|
|
Packit |
8ea169 |
* it under the terms of the GNU General Public License as published by
|
|
Packit |
8ea169 |
* the Free Software Foundation; either version 2 of the License, or
|
|
Packit |
8ea169 |
* (at your option) any later version.
|
|
Packit |
8ea169 |
*
|
|
Packit |
8ea169 |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
8ea169 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
8ea169 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
8ea169 |
* GNU General Public License for more details.
|
|
Packit |
8ea169 |
*
|
|
Packit |
8ea169 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
8ea169 |
* along with this program; if not, write to the Free Software
|
|
Packit |
8ea169 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
#ifndef _SYSTEM_CONFIG_ABRT_H
|
|
Packit |
8ea169 |
#define _SYSTEM_CONFIG_ABRT_H
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#include <gtk/gtk.h>
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#ifdef __cplusplus
|
|
Packit |
8ea169 |
extern "C" {
|
|
Packit |
8ea169 |
#endif /* __cplusplus */
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
/*
|
|
Packit |
8ea169 |
* Creates a new System Config ABRT widget without close button
|
|
Packit |
8ea169 |
*
|
|
Packit |
8ea169 |
* @returns the new System Config ABRT widget
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
GtkWidget *system_config_abrt_widget_new(void);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
/*
|
|
Packit |
8ea169 |
* A callback function for Close button on System Config ABRT widget
|
|
Packit |
8ea169 |
*
|
|
Packit |
8ea169 |
* @param user_data user data set when System Config ABRT was created
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
typedef void (* system_config_abrt_widget_close_callback)(gpointer user_data);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
/*
|
|
Packit |
8ea169 |
* Creates a new System Config ABRT widget with close button
|
|
Packit |
8ea169 |
*
|
|
Packit |
8ea169 |
* @param close_cb Close button click handler
|
|
Packit |
8ea169 |
* @param user_data User data passed to @close_cb as the first argument
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
GtkWidget *system_config_abrt_widget_new_with_close_button(system_config_abrt_widget_close_callback close_cb, gpointer user_data);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
/*
|
|
Packit |
8ea169 |
* If changes were not applied, asks user for action via dialog.
|
|
Packit |
8ea169 |
*
|
|
Packit |
8ea169 |
* @returns TRUE if application can exit, otherwise FALSE
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
gboolean system_config_abrt_check_before_close(GtkWidget *config);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
/*
|
|
Packit |
8ea169 |
* Shows the System Config ABRT dialog
|
|
Packit |
8ea169 |
*
|
|
Packit |
8ea169 |
* @param parent A window for which the dialog is modal
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
void show_system_config_abrt_dialog(GtkWindow *parent);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#ifdef __cplusplus
|
|
Packit |
8ea169 |
}
|
|
Packit |
8ea169 |
#endif /* __cplusplus */
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#endif /* _SYSTEM_CONFIG_ABRT_H */
|