Skip to content

Commit

Permalink
Version 0.0.3 commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
David C. Rankin committed Jul 28, 2019
1 parent d7d5327 commit 4f27d01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,6 @@ treeview/model

* treeview_changed() save rectangle to restore to exact col/line when buffer brought back into a sourceview window. Currently cursor-line is restored at 25% of the window.

word-completion

* We are currently fighting a limitation in GtkSourceview2 word-completion that inexplicably binds the initial buffer displayed in a textview to the completion object (owned by the textview). That makes it virtually impossible to do the efficient thing of simply associating different buffers with existing textview objects and unregistering the current buffer and registering the new with the completion object. So unless a solution is found it appears a significant rewrite will be needed to change from creating a single buffer per-file that can be shown in any textview to creating a single textview for each file that must be shown or hidden instead.
9 changes: 6 additions & 3 deletions gtk_mainwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ void load_files_from_cli (mainwin_t *app, char **argv)
{
for (gint i = 1; argv[i]; i++)
file_open (app, argv[i]);
#ifdef DEBUG
g_print ("app->nfiles: %d\napp->focused: %d\n", app->nfiles, app->focused);
#endif
}

/** handle_unsaved on WM_CLOSE, called from within on_window_delete_event,
Expand Down Expand Up @@ -218,13 +221,13 @@ GtkWidget *create_window (mainwin_t *app, char **argv)
treeview_append (app, NULL);
#endif

/* load all files provided on command line */
load_files_from_cli (app, argv);

/* return focus to edit window */
gtk_widget_grab_focus (app->treeview);
gtk_widget_grab_focus (app->einst[0]->view);

/* load all files provided on command line */
load_files_from_cli (app, argv);

/* showall widgets */
// gtk_widget_show_all (app->window);

Expand Down

0 comments on commit 4f27d01

Please sign in to comment.