-/*
+/*
PSPPIRE --- A Graphical User Interface for PSPP
Copyright (C) 2004,2005 Free Software Foundation
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 Street, Fifth Floor, Boston, MA
- 02110-1301, USA.
+ 02110-1301, USA.
*/
void
-message_dialog_init (struct source_stream *ss)
+message_dialog_init (struct source_stream *ss)
{
message_queue = g_queue_new();
msg_init (ss, enqueue_msg);
g_queue_free(message_queue);
}
-static gboolean
+static gboolean
dequeue_message(gpointer data)
{
struct msg * m ;
/* If a pointer grab is in effect, then the combination of that, and
- a modal dialog box, will cause an impossible situation.
+ a modal dialog box, will cause an impossible situation.
So don't pop it up just yet.
- */
+ */
if ( gdk_pointer_is_grabbed())
return TRUE;
m = g_queue_pop_tail(message_queue);
- if ( m )
+ if ( m )
{
popup_message(m);
msg_destroy(m);
return TRUE;
}
-
+
return FALSE;
}
}
-void
+void
popup_message(const struct msg *m)
{
GtkWindow *parent;
message_type = GTK_MESSAGE_INFO;
break;
};
-
- switch (m->category)
+
+ switch (m->category)
{
case MSG_SYNTAX:
msg = _("Script Error");