From 1e61640d3758919f992bee1a6da28bd18ff3d269 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Sun, 24 Jun 2001 16:51:23 +0000 Subject: display file in title --- mixgtk/mixgtk_cmd_dispatcher.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mixgtk') diff --git a/mixgtk/mixgtk_cmd_dispatcher.c b/mixgtk/mixgtk_cmd_dispatcher.c index be24fd5..024c09d 100644 --- a/mixgtk/mixgtk_cmd_dispatcher.c +++ b/mixgtk/mixgtk_cmd_dispatcher.c @@ -115,20 +115,26 @@ load_post_hook_ (mix_vm_cmd_dispatcher_t *dis, const gchar *arg, gpointer data) { static glong id = -1; + static GtkWindow *mainw = NULL; if (mix_vm_cmd_dispatcher_get_last_result (dis)) { - gchar *file = g_strdup (arg); + gchar *file = g_strdup_printf ("gmixvm - %s", arg); mixgtk_mixal_load_file (); mixgtk_mixal_update (); mixgtk_mixal_update_bp_all (); + if (!mainw) + mainw = GTK_WINDOW (mixgtk_widget_factory_get_dialog (MIXGTK_MAIN)); + if (id != -1) gtk_statusbar_remove (GTK_STATUSBAR (dis_data_.status), dis_data_.context, (guint)id); id = gtk_statusbar_push (GTK_STATUSBAR (dis_data_.status), dis_data_.context, file); + gtk_window_set_title (mainw, file); + g_free (file); } } -- cgit v1.2.3