tweaks
This commit is contained in:
parent
2af3abcf8c
commit
d931484d98
3
config.h
3
config.h
|
|
@ -53,6 +53,7 @@ You could also look into commit afe93518a for an approach using stand-in code.
|
|||
#define SFT 1 << 0
|
||||
#define CTRL 1 << 2
|
||||
#define ALT 1 << 3
|
||||
#define BACKTICK 96
|
||||
|
||||
/* Misc helpers */
|
||||
#define ABORT_REQUEST_ON_CURRENT_TAB NULL
|
||||
|
|
@ -128,7 +129,7 @@ static struct {
|
|||
{ CTRL | SFT, KEY(Page_Down), next_tab },
|
||||
// working hypothesis: Page_UP vs KP_Page_Up might depend on whether the user has a numpad
|
||||
{ CTRL, KEY(Tab), next_tab },
|
||||
{ CTRL, KEY(b), prev_tab },
|
||||
{ CTRL, BACKTICK, prev_tab },
|
||||
{ CTRL, KEY(t), new_tab },
|
||||
{ CTRL, KEY(w), close_tab },
|
||||
|
||||
|
|
|
|||
|
|
@ -428,7 +428,7 @@ static int handle_signal_keypress(void* self, int keyval, int keycode,
|
|||
GdkModifierType state, void* controller)
|
||||
{
|
||||
|
||||
if (0) {
|
||||
if (1) {
|
||||
printf("New keypress\n");
|
||||
printf("Keypress state: %d\n", state);
|
||||
printf("Keypress value: %d\n", keyval);
|
||||
|
|
@ -486,9 +486,9 @@ int main(int argc, char** argv)
|
|||
notebook_create_new_tab(notebook, first_uri);
|
||||
|
||||
// Show to user
|
||||
// The first two commands are redundant with notebook_create_new_tab
|
||||
// gtk_window_present(window);
|
||||
// gtk_widget_set_visible(GTK_WIDGET(window), 1);
|
||||
// The first two commands might be redundant with notebook_create_new_tab
|
||||
gtk_window_present(window);
|
||||
gtk_widget_set_visible(GTK_WIDGET(window), 1);
|
||||
if (argc != 0) gtk_widget_set_visible(GTK_WIDGET(bar.widget), 0);
|
||||
|
||||
// Deal with more tabs, if any
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user