/**
 * mate_ok_cancel_dialog_modal_parented:
 * @message: Message to display
 * @callback: Callback function for handling dialog results
 * @data: Data to pass to callback
 * @parent: Parent window
 *
 * Description:  Creates and shows an OK/Cancel dialog and calls @callback
 * when user answers the button number is passed onto 'reply'.
 * 0 is for 'OK', 1 for 'Cancel'.  The dialog is created as a modal
 * dialog and the user will have to answer this before proceeding.
 *
 * void (* MateReplyCallback)(gint reply, gpointer data); 
 *
 * Returns:  Pointer to new MATE dialog object.
 **/
GtkWidget *
mate_ok_cancel_dialog_modal_parented (const gchar * message,
				       MateReplyCallback callback, gpointer data,
				       GtkWindow * parent)
{
  return reply_dialog(message, callback, data, FALSE, TRUE, parent);
}
/**
 * mate_question_dialog_modal_parented:
 * @question: Question to ask
 * @callback: Callback function for handling dialog results
 * @data: Data to pass to callback
 * @parent: Parent window
 *
 * Description:  Creates a question dialog and calls @callback
 * when user answers the button number is passed onto 'reply'.
 * 0 is for 'Yes', 1 for 'No'.  The dialog is created as a modal
 * dialog and the user will have to answer this before proceeding.
 *
 * void (* MateReplyCallback)(gint reply, gpointer data); 
 *
 * Returns:  Pointer to new MATE dialog object.
 **/
GtkWidget *
mate_question_dialog_modal_parented (const gchar * question,
				      MateReplyCallback callback, gpointer data,
				      GtkWindow * parent)
{
  return reply_dialog(question, callback, data, TRUE, TRUE, parent);
}
Esempio n. 3
0
/**
 * gnome_ok_cancel_dialog_parented:
 * @message: Message to display
 * @callback: Callback function for handling dialog results
 * @data: Data to pass to callback
 * @parent: Parent window
 *
 * Description:  Creates an OK/Cancel dialog and calls @callback
 * when user answers the button number is passed onto 'reply'.
 * 0 is for 'OK', 1 for 'Cancel'.
 *
 * void (* GnomeReplyCallback)(gint reply, gpointer data); 
 *
 * Returns:  Pointer to new GNOME dialog object.
 **/
GtkWidget *
gnome_ok_cancel_dialog_parented (const gchar * message,
				 GnomeReplyCallback callback, gpointer data,
				 GtkWindow * parent)
{
  return reply_dialog(message, callback, data, FALSE, FALSE, parent);
}
Esempio n. 4
0
/**
 * gnome_question_dialog_parented:
 * @question: Question to ask
 * @callback: Callback function for handling dialog results
 * @data: Data to pass to callback
 * @parent: Parent window
 *
 * Description:  Creates a question dialog and calls @callback
 * when user answers the button number is passed onto 'reply'.
 * 0 is for 'Yes', 1 for 'No'
 *
 * void (* GnomeReplyCallback)(gint reply, gpointer data); 
 *
 * Returns:  Pointer to new GNOME dialog object.
 **/
GtkWidget *
gnome_question_dialog_parented (const gchar * question,
				GnomeReplyCallback callback, gpointer data,
				GtkWindow * parent)
{
  return reply_dialog(question, callback, data, TRUE, FALSE, parent);
}
/**
 * mate_ok_cancel_dialog_modal:
 * @message: Message to display
 * @callback: Callback function for handling dialog results
 * @data: Data to pass to callback
 *
 * Description:  Creates an OK/Cancel dialog and calls @callback
 * when user answers the button number is passed onto 'reply'.
 * 0 is for 'OK', 1 for 'Cancel'.  The dialog is created as a modal
 * dialog and the user will have to answer this before proceeding.
 *
 * void (* MateReplyCallback)(gint reply, gpointer data); 
 *
 * Returns:  Pointer to new MATE dialog object.
 **/
GtkWidget *
mate_ok_cancel_dialog_modal (const gchar * message,
			      MateReplyCallback callback, gpointer data)
{
  return reply_dialog(message, callback, data, FALSE, TRUE, NULL);
}
/**
 * mate_question_dialog_modal:
 * @question: Question to ask
 * @callback: Callback function for handling dialog results
 * @data: Data to pass to callback
 *
 * Description:  Creates a question dialog and calls @callback
 * when user answers the button number is passed onto 'reply'.
 * 0 is for 'Yes', 1 for 'No'.  The dialog is created as a modal
 * dialog and the user will have to answer this before proceeding.
 *
 * void (* MateReplyCallback)(gint reply, gpointer data); 
 *
 * Returns:  Pointer to new MATE dialog object.
 **/
GtkWidget *
mate_question_dialog_modal (const gchar * question, MateReplyCallback callback, gpointer data)
{
  return reply_dialog(question, callback, data, TRUE, TRUE, NULL);
}
Esempio n. 7
0
/**
 * gnome_ok_cancel_dialog:
 * @message: Message to display
 * @callback: Callback function for handling dialog results
 * @data: Data to pass to callback
 *
 * Description:  Creates an OK/Cancel dialog and calls @callback
 * when user answers the button number is passed onto 'reply'.
 * 0 is for 'OK', 1 for 'Cancel'.
 *
 * void (* GnomeReplyCallback)(gint reply, gpointer data); 
 *
 * Returns:  Pointer to new GNOME dialog object.
 **/
GtkWidget *
gnome_ok_cancel_dialog (const gchar * message,
			GnomeReplyCallback callback, gpointer data)
{
  return reply_dialog(message, callback, data, FALSE, FALSE, NULL);
}
Esempio n. 8
0
/**
 * gnome_question_dialog:
 * @question: Question to ask
 * @callback: Callback function for handling dialog results
 * @data: Data to pass to callback
 *
 * Description:  Creates a question dialog and calls @callback
 * when user answers the button number is passed onto 'reply'.
 * 0 is for 'Yes', 1 for 'No'
 *
 * void (* GnomeReplyCallback)(gint reply, gpointer data); 
 *
 * Returns:  Pointer to new GNOME dialog object.
 **/
GtkWidget *
gnome_question_dialog (const gchar * question,
		       GnomeReplyCallback callback, gpointer data)
{
  return reply_dialog(question, callback, data, TRUE, FALSE, NULL);
}