Let right-clicks select an item.

Don't load unused symbols from library.
Grab focus after right-clicked in the VTE widget.	  


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2088 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2007-12-04 15:28:17 +00:00
parent 01928d453a
commit 083e5057af
4 changed files with 6 additions and 6 deletions

View File

@ -5,6 +5,10 @@
Fix display of double backslash in path entry on Windows. Fix display of double backslash in path entry on Windows.
Add basic path entry auto completion. Add basic path entry auto completion.
Print error message when external command fails to execute. Print error message when external command fails to execute.
Let right-clicks select an item.
* src/vte.c, src/vte.h:
Don't load unused symbols from library.
Grab focus after right-clicked in the VTE widget.
2007-12-02 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> 2007-12-02 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -486,7 +486,7 @@ static gboolean on_button_press(GtkWidget *widget, GdkEventButton *event, gpoint
gtk_menu_popup(GTK_MENU(popup_menu), NULL, NULL, NULL, NULL, gtk_menu_popup(GTK_MENU(popup_menu), NULL, NULL, NULL, NULL,
event->button, event->time); event->button, event->time);
return TRUE; return FALSE;
} }
return FALSE; return FALSE;
} }

View File

@ -206,7 +206,6 @@ static void create_vte()
gtk_widget_set_size_request(GTK_WIDGET(vte), 10, 10); gtk_widget_set_size_request(GTK_WIDGET(vte), 10, 10);
vf->vte_terminal_set_size(VTE_TERMINAL(vte), 30, 1); vf->vte_terminal_set_size(VTE_TERMINAL(vte), 30, 1);
//vf->vte_terminal_set_encoding(VTE_TERMINAL(vte), "UTF-8");
vf->vte_terminal_set_mouse_autohide(VTE_TERMINAL(vte), TRUE); vf->vte_terminal_set_mouse_autohide(VTE_TERMINAL(vte), TRUE);
vf->vte_terminal_set_word_chars(VTE_TERMINAL(vte), VTE_WORDCHARS); vf->vte_terminal_set_word_chars(VTE_TERMINAL(vte), VTE_WORDCHARS);
@ -323,6 +322,7 @@ static gboolean vte_button_pressed(GtkWidget *widget, GdkEventButton *event, gpo
popup_menu_created = TRUE; popup_menu_created = TRUE;
} }
gtk_widget_grab_focus(vc->vte);
gtk_menu_popup(GTK_MENU(vc->menu), NULL, NULL, NULL, NULL, event->button, event->time); gtk_menu_popup(GTK_MENU(vc->menu), NULL, NULL, NULL, NULL, event->button, event->time);
} }
@ -337,9 +337,7 @@ static void vte_register_symbols(GModule *mod)
g_module_symbol(mod, "vte_terminal_fork_command", (void*)&vf->vte_terminal_fork_command); g_module_symbol(mod, "vte_terminal_fork_command", (void*)&vf->vte_terminal_fork_command);
g_module_symbol(mod, "vte_terminal_set_word_chars", (void*)&vf->vte_terminal_set_word_chars); g_module_symbol(mod, "vte_terminal_set_word_chars", (void*)&vf->vte_terminal_set_word_chars);
g_module_symbol(mod, "vte_terminal_set_mouse_autohide", (void*)&vf->vte_terminal_set_mouse_autohide); g_module_symbol(mod, "vte_terminal_set_mouse_autohide", (void*)&vf->vte_terminal_set_mouse_autohide);
g_module_symbol(mod, "vte_terminal_set_encoding", (void*)&vf->vte_terminal_set_encoding);
g_module_symbol(mod, "vte_terminal_reset", (void*)&vf->vte_terminal_reset); g_module_symbol(mod, "vte_terminal_reset", (void*)&vf->vte_terminal_reset);
g_module_symbol(mod, "vte_terminal_set_cursor_blinks", (void*)&vf->vte_terminal_set_cursor_blinks);
g_module_symbol(mod, "vte_terminal_get_type", (void*)&vf->vte_terminal_get_type); g_module_symbol(mod, "vte_terminal_get_type", (void*)&vf->vte_terminal_get_type);
g_module_symbol(mod, "vte_terminal_set_scroll_on_output", (void*)&vf->vte_terminal_set_scroll_on_output); g_module_symbol(mod, "vte_terminal_set_scroll_on_output", (void*)&vf->vte_terminal_set_scroll_on_output);
g_module_symbol(mod, "vte_terminal_set_scroll_on_keystroke", (void*)&vf->vte_terminal_set_scroll_on_keystroke); g_module_symbol(mod, "vte_terminal_set_scroll_on_keystroke", (void*)&vf->vte_terminal_set_scroll_on_keystroke);

View File

@ -117,8 +117,6 @@ struct VteFunctions
void (*vte_terminal_set_word_chars) (VteTerminal *terminal, const char *spec); void (*vte_terminal_set_word_chars) (VteTerminal *terminal, const char *spec);
void (*vte_terminal_set_mouse_autohide) (VteTerminal *terminal, gboolean setting); void (*vte_terminal_set_mouse_autohide) (VteTerminal *terminal, gboolean setting);
void (*vte_terminal_reset) (VteTerminal *terminal, gboolean full, gboolean clear_history); void (*vte_terminal_reset) (VteTerminal *terminal, gboolean full, gboolean clear_history);
void (*vte_terminal_set_encoding) (VteTerminal *terminal, const char *codeset);
void (*vte_terminal_set_cursor_blinks) (VteTerminal *terminal, gboolean blink);
GtkType (*vte_terminal_get_type) (void); GtkType (*vte_terminal_get_type) (void);
void (*vte_terminal_set_scroll_on_output) (VteTerminal *terminal, gboolean scroll); void (*vte_terminal_set_scroll_on_output) (VteTerminal *terminal, gboolean scroll);
void (*vte_terminal_set_scroll_on_keystroke) (VteTerminal *terminal, gboolean scroll); void (*vte_terminal_set_scroll_on_keystroke) (VteTerminal *terminal, gboolean scroll);