Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/gui/gui-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ void gui_set_filename_display (GuTabContext* tc, gboolean title, gboolean label)

if (label) tabmanagergui_update_label (tc->page, filetext);
if (title) gui_set_window_title (tc->editor->filename, filetext);

statusbar_del_message (NULL);
statusbar_set_permanent_message (tc->editor->filename);
}

void gui_set_window_title (const gchar* filename, const gchar* text) {
Expand Down Expand Up @@ -993,6 +996,10 @@ void statusbar_set_message (const gchar *message) {
g_timeout_add_seconds (4, statusbar_del_message, NULL);
}

void statusbar_set_permanent_message (const gchar *message) {
gtk_statusbar_push (GTK_STATUSBAR (gui->statusbar), gui->statusid, message);
}

gboolean statusbar_del_message (void* user) {
gtk_statusbar_pop (GTK_STATUSBAR (gui->statusbar), gui->statusid);
return FALSE;
Expand Down
1 change: 1 addition & 0 deletions src/gui/gui-main.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ void display_recent_files (GummiGui* gui);

void gui_buildlog_set_text (const gchar *message);
void statusbar_set_message (const gchar* message);
void statusbar_set_permanent_message (const gchar* message);
gboolean statusbar_del_message (void* user);

void typesetter_setup (void);
Expand Down
2 changes: 1 addition & 1 deletion src/iofunctions.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void iofunctions_load_file (GuIOFunc* io, const gchar* filename) {

/* add Loading message to status bar and ensure GUI is current */
status = g_strdup_printf ("Loading %s...", filename);
statusbar_set_message (status);
statusbar_set_permanent_message (status);
g_free (status);

g_signal_emit_by_name (io->sig_hook, "document-load", filename);
Expand Down