123 Commits

Author SHA1 Message Date
Matthew Brush
6b1088ea96 Port the Terminal UI to Glade 3/GtkBuilder.
Just don't show it if we don't have a VTE (ex. on Win32 or if it's disabled).
2011-10-10 13:17:35 -07:00
Colomban Wendling
d06e9f4575 Remove $Id$ and $Date$ SVN keywords 2011-10-09 22:57:35 +02:00
Colomban Wendling
ddb4ad5fa5 Fix some whitespace style errors
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5886 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-06 18:34:14 +00:00
Colomban Wendling
5d606ce351 Deprecate ui_widget_set_tooltip_text() in favor of gtk_widget_set_tooltip_text()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5840 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 18:41:50 +00:00
Nick Treleaven
e3d3765ae6 Add fixed shortcuts for VTE copy (Ctrl-Shift-C) and paste
(Ctrl-Shift-V).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5623 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 17:33:47 +00:00
Enrico Tröger
6ac2623208 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Enrico Tröger
217fc5ab50 Inherit 'beep on errors' preference for the audible bell preference for the VTE (closes #3038215).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5117 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-05 21:45:58 +00:00
Enrico Tröger
45d5c856bb Fix build with GTK 2.8, use the stock icon name directly instead of the macro. Though, the icon is still missing for GTK 2.8.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5109 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-31 14:25:30 +00:00
Enrico Tröger
67c7f1bbfb Implement 'Select All' for the VTE widget.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5108 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-29 18:28:37 +00:00
Nick Treleaven
4476a79127 Use ui_hookup_widget() instead of g_object_set_data_full() for
widgets.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5063 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-23 16:57:28 +00:00
Nick Treleaven
806bb254c7 Apply patch from Yoann Le Montagner to set VTE bold color (thanks,
fixes #2976905).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4789 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-30 14:43:40 +00:00
Nick Treleaven
3ef6d41a53 Edit 2 labels.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4775 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-18 16:49:27 +00:00
Enrico Tröger
f72f6381df Add and use convenience function ui_is_keyval_enter_or_return() and add it to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4737 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 19:33:15 +00:00
Enrico Tröger
fa49065678 Add utils_copy_environment() and make use of it.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4538 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-24 14:18:00 +00:00
Enrico Tröger
7ba4a81181 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 22:55:18 +00:00
Enrico Tröger
2669ad3b1b Add a hidden pref to allow executing text which was sent to the terminal directly, i.e. do not strip trailing newline characters.
Also fix the stripping of trailing newline characters if there was more than one.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4456 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-29 20:59:31 +00:00
Enrico Tröger
8a5789814c Use the default dialog title set by ui_setup_open_button_callback() to be more consistent and to save one string.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4431 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-17 23:01:33 +00:00
Enrico Tröger
4b206d5462 Refactor color and font button callback functions in the preferences dialog. Move the VTE related callback functions into vte.c.
Make use of ui_setup_open_button_callback().

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4429 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-17 21:49:43 +00:00
Enrico Tröger
03f92c92f5 Remove useless comment about applying settings only when libvte.so could be loaded which is only displayed *if* libvte.so is loaded.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4412 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-09 18:47:39 +00:00
Nick Treleaven
bc2b6829c5 Make ui_entry_add_clear_icon() take a GtkEntry, not GtkWidget.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4220 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 16:46:16 +00:00
Nick Treleaven
1986d915cc Run ./scripts/fix-alignment.pl -w src/*.[hc] plugins/*.[hc] (skipping generated files).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 14:13:38 +00:00
Enrico Tröger
a95a59a42f Remove all G_LIKELY macros inside g_return_if_fail() statements as this is redundant.
Remove many other G_LIKELY/G_UNLIKELY macros which doesn't make much sense to keep the code more readable.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3708 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-15 22:47:33 +00:00
Enrico Tröger
a9dc990049 Start using G_LIKELY/G_UNLIKELY macros to gain a little more performance when building the code with gcc.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3687 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 21:07:40 +00:00
Enrico Tröger
59079283f2 Add 'Send Selection to Terminal' command to the Edit->Format menu (initial patch by David Gleich, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3601 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-25 23:28:01 +00:00
Enrico Tröger
4ffd7f2ed9 Add a clear icon to the used text entries all over the place (will be available with GTK >= 2.16).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3570 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-10 21:10:50 +00:00
Enrico Tröger
e98cf99fb7 Don't follow the path of the document if the document has not an absolute file path.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3568 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 19:52:43 +00:00
Enrico Tröger
35aaad545b Fix ordering of the input methods submenu item in the VTE popup menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3560 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-06 19:39:52 +00:00
Enrico Tröger
c70d6c4338 Some code cleanup and improve comments, no changes in functionality.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3545 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-04 19:52:44 +00:00
Enrico Tröger
2758ac24b7 If the VTE has a dirty command line, print the resulting warning also to the debug messages.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-30 15:39:08 +00:00
Enrico Tröger
0582c61824 Replace remaining occurrences of '__func__' with 'G_STRFUNC'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3496 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 22:49:21 +00:00
Enrico Tröger
ffebb43c8e Remove tooltips from menu items.
Don't use full stops in tooltips for short sentences.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3470 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-15 19:15:41 +00:00
Enrico Tröger
39a6eb455e Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +00:00
Enrico Tröger
9e25c43487 Move implementation of lookup_widget() into ui_lookup_widget().
Change uses of lookup_widget() to ui_lookup_widget().
Remove now unneeded support.c.
Use GLib gettext macros in support.h instead of own ones.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3402 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-18 21:21:53 +00:00
Enrico Tröger
3c35ed1d55 Some cleanup in vte.c.
Add a setting for the VTE to enable/disable a blinking cursor.
This is useful for future VTE versions where the cursor blinks by default which might be not be desirable.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3339 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-07 19:11:36 +00:00
Nick Treleaven
3cf49dba55 Make VTE emulation pref hidden, because libvte only comes with an
xterm termcaps file and the GUI pref can be confusing.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3300 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-01 14:39:26 +00:00
Enrico Tröger
81ffd05aa1 dd ui_widget_set_tooltip_text() as a convenience function to easily set tooltips for widgets. It uses gtk_widget_set_tooltip_text() on GTK >= 2.12 otherwise the old tooltips API.Use ui_widget_set_tooltip_text().
Use ui_widget_set_tooltip_text() in the plugins.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3250 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 20:14:42 +00:00
Enrico Tröger
6bc86c4462 Replace gtk_widget_(un)ref() with g_object(un)ref(), patch by Colomban Wendling, thanks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3143 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-22 15:36:45 +00:00
Enrico Tröger
b69b6cc71f Set the page_size parameter of GtkAdjustments to 0 instead of 10 which is set by default by Glade. This prevents breakage of spin buttons with early versions of GTK 2.14.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2997 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 17:04:43 +00:00
Enrico Tröger
f95b23233c Mark the VTE as clean when restarting it to make Geany able to execute commands in it.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2920 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-01 11:31:27 +00:00
Enrico Tröger
b82c2ee714 Set 'can_focus' property on some checkboxes in the prefs dialog which were missing it.
Enable 'focus_on_click' property on most checkboxes in the prefs dialog to ease keyboard navigation.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2915 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-01 11:11:33 +00:00
Enrico Tröger
b96999dec9 Revert the recent VTE realisation changes as they don't make things better.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2855 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-05 08:52:59 +00:00
Enrico Tröger
d505996b18 Realize the VTE widget manually (still for #1844985).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2851 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-04 08:52:06 +00:00
Enrico Tröger
58f349944e Initialise the VTE pid var with 0 just for safety.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2849 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-01 15:55:20 +00:00
Enrico Tröger
bbfd7a1ee8 Revert r2843 because it messed it Ctrl-C/SIGINT in the VTE.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2848 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-01 15:54:21 +00:00
Enrico Tröger
c98c4d099a Make Copy & Paste clipboard keybindings also work for the VTE (closes #2029675).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2843 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-30 18:22:51 +00:00
Enrico Tröger
df6115215e Fix freeze when changing terminal preferences (introduced in last commit).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2842 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-30 18:21:34 +00:00
Enrico Tröger
f5d72e6c8c Start the shell in the VTE first when the VTE is actually realized to avoid strange display bugs on some systems (closes #1844985).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2841 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-30 18:20:58 +00:00
Enrico Tröger
ae2a6d84c8 Add a small border to all notebook pages in the preferences dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2826 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-27 18:42:21 +00:00
Nick Treleaven
d35e66493c Change VTE restart command to not call vte_terminal_fork_command() -
this should prevent the hang reported in #1990323 with VTE 0.16.14.
Note that with VTE 0.16.14 the reset sometimes leaves a blank
terminal, but pressing enter makes it then behave as normal.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2813 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-24 17:26:11 +00:00
Enrico Tröger
8d67117d47 Rename "delete_event" to "delete-event".
Remove some unnecessary GObject casts in g_signal_connect() calls.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2788 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-18 13:40:48 +00:00