Update mildly confused comments

This commit is contained in:
Přemysl Eric Janouch 2022-01-08 11:32:51 +01:00
parent d65e83a21d
commit af80303719
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 6 deletions

8
fiv.c
View File

@ -888,6 +888,7 @@ static gboolean
on_key_press_browser_paned(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event, on_key_press_browser_paned(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event,
G_GNUC_UNUSED gpointer data) G_GNUC_UNUSED gpointer data)
{ {
// TODO(p): Consider replicating more GtkFileChooserWidget bindings.
switch (event->state & gtk_accelerator_get_default_mod_mask()) { switch (event->state & gtk_accelerator_get_default_mod_mask()) {
case GDK_MOD1_MASK: case GDK_MOD1_MASK:
switch (event->keyval) { switch (event->keyval) {
@ -1451,9 +1452,7 @@ main(int argc, char *argv[])
gtk_container_set_focus_hadjustment(GTK_CONTAINER(browser_port), NULL); gtk_container_set_focus_hadjustment(GTK_CONTAINER(browser_port), NULL);
gtk_container_set_focus_vadjustment(GTK_CONTAINER(browser_port), NULL); gtk_container_set_focus_vadjustment(GTK_CONTAINER(browser_port), NULL);
// TODO(p): Mayhaps forward some key presses to the sidebar, somehow.
g.browser_sidebar = make_browser_sidebar(g.model); g.browser_sidebar = make_browser_sidebar(g.model);
g.browser_paned = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL); g.browser_paned = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL);
gtk_paned_add1(GTK_PANED(g.browser_paned), g.browser_sidebar); gtk_paned_add1(GTK_PANED(g.browser_paned), g.browser_sidebar);
gtk_paned_add2(GTK_PANED(g.browser_paned), g.browser_scroller); gtk_paned_add2(GTK_PANED(g.browser_paned), g.browser_scroller);
@ -1467,10 +1466,7 @@ main(int argc, char *argv[])
GTK_STACK(g.stack), GTK_STACK_TRANSITION_TYPE_NONE); GTK_STACK(g.stack), GTK_STACK_TRANSITION_TYPE_NONE);
gtk_container_add(GTK_CONTAINER(g.stack), g.view_box); gtk_container_add(GTK_CONTAINER(g.stack), g.view_box);
gtk_container_add(GTK_CONTAINER(g.stack), g.browser_paned); gtk_container_add(GTK_CONTAINER(g.stack), g.browser_paned);
gtk_widget_show_all(g.stack);
// TODO(p): Can we not do it here separately?
gtk_widget_show_all(g.view_box);
gtk_widget_show_all(g.browser_paned);
g.window = gtk_window_new(GTK_WINDOW_TOPLEVEL); g.window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
g_signal_connect(g.window, "destroy", g_signal_connect(g.window, "destroy",