Commit ab623e69 authored by Andreas J. Guelzow's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow

non-modal version of gnumeric_notice (gnumeric_dialog_run) : remove

2002-01-26  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/gui-util.c (gnumeric_notice_nonmodal) : non-modal version of
	  gnumeric_notice
	(gnumeric_dialog_run) : remove warning
	* src/gui-util.h (gnumeric_notice_nonmodal) : new

2002-01-26  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* autosave-prompt.glade : removed
	* dialog-analysis-tools.c synchronize tool_states better, change
	  arguments for all calls of error_in_entry
	(tools_destroy_warning) : new callback
	(error_in_entry) : make warning message non-modal

2002-01-26  Andreas Guelzow <aguelzow@taliesin.ca>

	* POTFILES.in : removed src/dialogs/autosave-prompt.glade
parent 1ee4ece1
2002-01-26 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/gui-util.c (gnumeric_notice_nonmodal) : non-modal version of
gnumeric_notice
(gnumeric_dialog_run) : remove warning
* src/gui-util.h (gnumeric_notice_nonmodal) : new
2002-01-26 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/gui-util.c (entry_to_float) :
......
......@@ -4,6 +4,7 @@ Andreas:
* Port gnumeric_notice to gnome2
* Fix #63485
* Make the autosave dialog non-modal, port to gnome2
* Make the analysis tools warnings non-modal
Jody:
* Initial port to gnome2.
......
2002-01-26 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/gui-util.c (gnumeric_notice_nonmodal) : non-modal version of
gnumeric_notice
(gnumeric_dialog_run) : remove warning
* src/gui-util.h (gnumeric_notice_nonmodal) : new
2002-01-26 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/gui-util.c (entry_to_float) :
......
2002-01-26 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/gui-util.c (gnumeric_notice_nonmodal) : non-modal version of
gnumeric_notice
(gnumeric_dialog_run) : remove warning
* src/gui-util.h (gnumeric_notice_nonmodal) : new
2002-01-26 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/gui-util.c (entry_to_float) :
......
2002-01-26 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/gui-util.c (gnumeric_notice_nonmodal) : non-modal version of
gnumeric_notice
(gnumeric_dialog_run) : remove warning
* src/gui-util.h (gnumeric_notice_nonmodal) : new
2002-01-26 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/gui-util.c (entry_to_float) :
......
2002-01-26 Andreas Guelzow <aguelzow@taliesin.ca>
* POTFILES.in : removed src/dialogs/autosave-prompt.glade
2002-01-23 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* sk.po: Updated Slovak translation.
......
......@@ -63,7 +63,6 @@ src/dialogs/anova-one.glade
src/dialogs/anova-two.glade
src/dialogs/autocorrect.glade
src/dialogs/autoformat.glade
src/dialogs/autosave-prompt.glade
src/dialogs/autosave.glade
src/dialogs/cell-format.glade
src/dialogs/cell-sort.glade
......
2002-01-26 Andreas J. Guelzow <aguelzow@taliesin.ca>
* autosave-prompt.glade : removed
* dialog-analysis-tools.c synchronize tool_states better, change
arguments for all calls of error_in_entry
(tools_destroy_warning) : new callback
(error_in_entry) : make warning message non-modal
2002-01-26 Andreas J. Guelzow <aguelzow@taliesin.ca>
* dialog-analysis-tools.c (entry_to_float) : moved to gui-utils.c/h
......
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd" >
<glade-interface>
<widget class="GtkDialog" id="AutoSavePrompt">
<property name="visible">no</property>
<property name="title" translatable="yes">Auto Save</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="modal">no</property>
<property name="allow_shrink">no</property>
<property name="allow_grow">no</property>
<property name="window-position">GTK_WIN_POS_NONE</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox1">
<property name="homogeneous">no</property>
<property name="spacing">8</property>
<property name="visible">yes</property>
<child>
<widget class="GtkLabel" id="label1">
<property name="label" translatable="yes">Do you want to save the workbook?</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
<property name="wrap">no</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="visible">yes</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
</packing>
</child>
<child internal-child="action_area">
<widget class="GtkHButtonBox" id="dialog-action_area1">
<property name="layout_style">GTK_BUTTONBOX_END</property>
<property name="spacing">8</property>
<property name="visible">yes</property>
<child>
<widget class="GtkButton" id="button1">
<property name="can_default">yes</property>
<property name="has_default">yes</property>
<property name="can_focus">yes</property>
<property name="has_focus">yes</property>
<property name="visible">yes</property>
<property name="label" translatable="yes">gtk-yes</property>
<property name="use_stock">yes</property>
<property name="use_underline">yes</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="button3">
<property name="can_focus">yes</property>
<property name="visible">yes</property>
<property name="label" translatable="yes">gtk-no</property>
<property name="use_stock">yes</property>
<property name="use_underline">yes</property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">yes</property>
<property name="pack_type">GTK_PACK_END</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">4</property>
<property name="expand">yes</property>
<property name="fill">yes</property>
</packing>
</child>
</widget>
</glade-interface>
This diff is collapsed.
......@@ -16,6 +16,8 @@
#include "style-color.h"
#include "error-info.h"
#include "value.h"
#include "number-match.h"
#include "format.h"
#include <string.h>
#include <gal/widgets/e-colors.h>
......@@ -49,7 +51,6 @@ gnumeric_dialog_question_yes_no (WorkbookControlGUI *wbcg,
/*
* TODO:
* Get rid of trailing newlines /whitespace.
* Wrap overlong lines.
*/
void
gnumeric_notice (WorkbookControlGUI *wbcg, GtkMessageType type, char const *str)
......@@ -63,6 +64,23 @@ gnumeric_notice (WorkbookControlGUI *wbcg, GtkMessageType type, char const *str)
gnumeric_dialog_run (wbcg, GTK_DIALOG (dialog));
}
GtkWindow *
gnumeric_notice_nonmodal (GtkWindow *parent, GtkMessageType type, char const *str)
{
GtkWidget *dialog;
dialog = gtk_message_dialog_new (parent, GTK_DIALOG_DESTROY_WITH_PARENT, type,
GTK_BUTTONS_OK, str);
gtk_signal_connect_object (GTK_OBJECT (dialog), "response",
GTK_SIGNAL_FUNC (gtk_widget_destroy),
GTK_OBJECT (dialog));
gtk_widget_show (dialog);
return GTK_WINDOW (dialog);
}
static void
fsel_dialog_finish (GtkWidget *widget)
......@@ -172,7 +190,7 @@ gnumeric_dialog_run (WorkbookControlGUI *wbcg, GtkDialog *dialog)
}
result = gtk_dialog_run (dialog);
gtk_widget_destroy (dialog);
gtk_widget_destroy (GTK_WIDGET (dialog));
return result;
}
......
......@@ -12,6 +12,7 @@ gboolean gnumeric_dialog_question_yes_no (WorkbookControlGUI *wbcg,
gboolean default_answer);
gboolean gnumeric_dialog_file_selection (WorkbookControlGUI *wbcg, GtkFileSelection *fsel);
void gnumeric_notice (WorkbookControlGUI *wbcg, GtkMessageType type, const char *str);
GtkWindow *gnumeric_notice_nonmodal (GtkWindow *parent, GtkMessageType type, char const *str);
void gnumeric_non_modal_dialog (WorkbookControlGUI *wbcg, GtkWindow *dialog);
gint gnumeric_dialog_run (WorkbookControlGUI *wbcg, GtkDialog *dialog);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment