aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-01-08 11:32:51 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-01-08 12:03:52 +0100
commitaf80303719986cd454f6ed8d4c20c0702b308a1a (patch)
tree675a1b7ae8ebbaadc08c8d3b684ffd2b9b5400bd
parentd65e83a21d9f80a1af0c434b497353bdfaa55421 (diff)
downloadfiv-af80303719986cd454f6ed8d4c20c0702b308a1a.tar.gz
fiv-af80303719986cd454f6ed8d4c20c0702b308a1a.tar.xz
fiv-af80303719986cd454f6ed8d4c20c0702b308a1a.zip
Update mildly confused comments
-rw-r--r--fiv.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fiv.c b/fiv.c
index 92f34d2..1980853 100644
--- a/fiv.c
+++ b/fiv.c
@@ -888,6 +888,7 @@ static gboolean
on_key_press_browser_paned(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event,
G_GNUC_UNUSED gpointer data)
{
+ // TODO(p): Consider replicating more GtkFileChooserWidget bindings.
switch (event->state & gtk_accelerator_get_default_mod_mask()) {
case GDK_MOD1_MASK:
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_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_paned = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL);
gtk_paned_add1(GTK_PANED(g.browser_paned), g.browser_sidebar);
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_container_add(GTK_CONTAINER(g.stack), g.view_box);
gtk_container_add(GTK_CONTAINER(g.stack), g.browser_paned);
-
- // TODO(p): Can we not do it here separately?
- gtk_widget_show_all(g.view_box);
- gtk_widget_show_all(g.browser_paned);
+ gtk_widget_show_all(g.stack);
g.window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
g_signal_connect(g.window, "destroy",