aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/simple_dialog.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-11-27 21:50:49 +0000
committerGuy Harris <guy@alum.mit.edu>2010-11-27 21:50:49 +0000
commita4cc25f84d04835a8283176ba4a058b5ac2966e2 (patch)
tree7ffed53d8b537c9a207f28b5438525b428cc21d5 /gtk/simple_dialog.c
parent52b99dc1918626e758f4c3ef2566dfb49958db1b (diff)
Move main_statusbar.h to the top-level directory; none of its routines
use GTK+ data types, so, at least in theory, it could be implemented atop another toolkit. Make statusbar_push_temporary_msg() take a format string and format arguments. Use it instead of simple_status(), and change one call to just take a format string and arguments rather than to take the result of using that format string and arguments with g_strdup_printf() and passing the result to statusbar_push_temporary_msg(). svn path=/trunk/; revision=35041
Diffstat (limited to 'gtk/simple_dialog.c')
-rw-r--r--gtk/simple_dialog.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gtk/simple_dialog.c b/gtk/simple_dialog.c
index ba1aaacd33..ff7d28343a 100644
--- a/gtk/simple_dialog.c
+++ b/gtk/simple_dialog.c
@@ -38,8 +38,6 @@
#include "gtk/gui_utils.h"
#include "gtk/stock_icons.h"
-#include "main_statusbar.h"
-
static void simple_dialog_cancel_cb(GtkWidget *, gpointer);
#define CALLBACK_FCT_KEY "ESD_Callback_Fct"
@@ -415,21 +413,3 @@ simple_dialog_format_message(const char *msg)
}
return str;
}
-
-/*
- * This doesn't create a window, but it falls into the realm of "telling the
- * user what happened" and having it here means it can be called from file.c.
- */
-void
-simple_status(const gchar *msg_format, ...)
-{
- va_list ap;
- gchar *msg;
-
- va_start(ap, msg_format);
- msg = g_strdup_vprintf(msg_format, ap);
- va_end(ap);
-
- statusbar_push_temporary_msg(msg);
- g_free(msg);
-}