02110-1301, USA. */
+#include <config.h>
+
#include <glib.h>
#include "syntax-editor.h"
#include "data-editor.h"
register_window (e);
- gtk_widget_show (e->window);
+ gtk_widget_show (GTK_WIDGET (e->window));
return e;
}
+void
+default_window_name (struct editor_window *w)
+{
+ set_window_name (w, NULL);
+}
static void
set_window_name (struct editor_window *e,
gchar *title ;
g_free (e->name);
+ e->name = NULL;
if ( name )
{
- e->name = g_strdup (name);
- return ;
+ e->name = g_strdup (name);
+ return;
}
switch (e->type )
}
+/* Set the name of this window based on FILENAME.
+ FILENAME is in "filename encoding" */
void
window_set_name_from_filename (struct editor_window *e,
const gchar *filename)