Commit fc868bde authored by Sergio Costas's avatar Sergio Costas

Added close button

parent 53f70dca
# History of versions #
* Version 1.0.0 (2018-06-12)
* Now includes a close button in each terminal
* Version 0.11.0 (2018-03-25)
* Now the CAPS LOCK state doesn't interfere with the hot keys
* Several fixes to the Debian packaging files (thanks to Barak)
* Now the CAPS LOCK state doesn't interfere with the hot keys
* Several fixes to the Debian packaging files (thanks to Barak)
* Version 0.10.0 (2017-12-03)
* Now guake mode works better under Wayland
* Now guake mode works better under Wayland
* Version 0.9.1 (2017-10-13)
* Now doesn't lock gnome shell under wayland for 20 seconds when there are no instances of terminus running and the user presses the key to show the guake terminal
* Now doesn't lock gnome shell under wayland for 20 seconds when there are no instances of terminus running and the user presses the key to show the guake terminal
* Version 0.9.0 (2017-10-12)
* Now the guake-style window won't get stuck in maximized mode when resized too big
* Now the guake mode works fine if all terminus sessions are killed and is relaunched via D-Bus
* Now, when closing the terminal in an split window, the other terminal will receive the focus
* Now the guake-style window won't get stuck in maximized mode when resized too big
* Now the guake mode works fine if all terminus sessions are killed and is relaunched via D-Bus
* Now, when closing the terminal in an split window, the other terminal will receive the focus
* Version 0.8.1 (2017-09-18)
* Fixed the install path when creating packages
* Fixed the gnome shell extension, now it works on gnome shell 3.24 and 3.26
* Forced GTK version to 3, to avoid compiling with GTK 4
* Fixed the install path when creating packages
* Fixed the gnome shell extension, now it works on gnome shell 3.24 and 3.26
* Forced GTK version to 3, to avoid compiling with GTK 4
* Version 0.8.0 (2017-08-01)
* Fixed some startup bugs
* Fixed some startup bugs
* Version 0.7.0 (2016-12-24)
* Added full palette support
* Added all palette styles from gnome-terminal
* Added Solarized palette
* Allows to set the preferred shell
* Allows to configure more details (cursor shape, using bolds, rewrap on resize, and terminal bell)
* Added full palette support
* Added all palette styles from gnome-terminal
* Added Solarized palette
* Allows to set the preferred shell
* Allows to configure more details (cursor shape, using bolds, rewrap on resize, and terminal bell)
* Version 0.6.0 (2016-12-17)
* Added a Gnome Shell extension, to allow to use the quake-terminal mode under Wayland with Gnome Shell
* Fixed the top bar (sometimes it didn't show the focus)
* Removed several deprecated functions
* Added a Gnome Shell extension, to allow to use the quake-terminal mode under Wayland with Gnome Shell
* Fixed the top bar (sometimes it didn't show the focus)
* Removed several deprecated functions
* Version 0.5.0 (2016-12-12)
* Added Wayland support
* Added DBus remote control
* Added Wayland support
* Added DBus remote control
* Version 0.4.0 (2016-09-17)
* Fixed the window size during startup
* Fixed resize bug when moving the mouse too fast
* Fixed the "Copy" function. Now it copies the text to the clipboard
* Fixed the window size during startup
* Fixed resize bug when moving the mouse too fast
* Fixed the "Copy" function. Now it copies the text to the clipboard
* Version 0.3.0 (2016-08-24)
* Fixed compilation paths
* Now can be compiled with valac-0.30
* Added package files
* Fixed compilation paths
* Now can be compiled with valac-0.30
* Added package files
* Version 0.2.0 (2016-08-24)
* Fixed resizing
* Cyclic jump from tab to tab using Page Down and Page Up
* Added note in the README to fix the focus problem in Gnome Shell
* Fixed resizing
* Cyclic jump from tab to tab using Page Down and Page Up
* Added note in the README to fix the focus problem in Gnome Shell
* Version 0.1.0 (2016-08-23)
* First public version
* First public version
meson.add_install_script(join_paths(meson.current_source_dir(),'meson_scripts','install_data.sh'),join_paths(get_option('prefix'),'share/autovala/cmake'),join_paths(meson.current_source_dir(),'data/cmake',''))
......@@ -38,6 +38,7 @@ if GTK_3_20
terminus_vala_args += ['-D', 'GTK_3_20']
terminus_c_args += ['-DGTK_3_20']
endif
terminus_link_args = ['-rdynamic']
executable('terminus',terminus_sources,dependencies: terminus_deps,vala_args: terminus_vala_args,c_args: terminus_c_args,install: true)
executable('terminus',terminus_sources,dependencies: terminus_deps,vala_args: terminus_vala_args,c_args: terminus_c_args,link_args: terminus_link_args,install: true)
......@@ -42,7 +42,6 @@ namespace Terminus {
private Gtk.ComboBox palette_scheme;
private Gtk.ListStore palette_schemes;
private Gtk.ComboBox cursor_shape;
private Gtk.ListStore cursor_liststore;
private Gtk.ListStore keybindings;
......
......@@ -32,6 +32,7 @@ namespace Terminus {
private Vte.Terminal vte_terminal;
private Gtk.Label title;
private Gtk.EventBox titlebox;
private Gtk.EventBox closeButton;
private Gtk.Menu menu;
private Gtk.MenuItem item_copy;
private Terminus.Container top_container;
......@@ -74,10 +75,26 @@ namespace Terminus {
this.title = new Gtk.Label("");
this.titlebox = new Gtk.EventBox();
// a titlebox to have access to the background color
this.titlebox.add(this.title);
this.closeButton = new Gtk.EventBox();
var label = new Gtk.Label("<span size=\"small\"> X </span>");
label.use_markup = true;
this.closeButton.button_release_event.connect( (event) => {
#if VALA_0_40
Posix.kill(this.pid, Posix.Signal.KILL);
#else
Posix.kill(this.pid, Posix.SIGKILL);
#endif
return false;});
this.closeButton.add(label);
var titleContainer = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
titleContainer.pack_start(this.titlebox, true, true);
titleContainer.pack_start(this.closeButton, false, true);
var newbox = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 0);
this.pack_start(this.titlebox, false, true);
this.pack_start(titleContainer, false, true);
this.pack_start(newbox, true, true);
this.vte_terminal = new Vte.Terminal();
......
......@@ -19,7 +19,7 @@
using Gtk;
using Gee;
//project version = 0.11.0
//project version = 1.0.0
namespace Terminus {
TerminusRoot main_root;
......@@ -55,7 +55,6 @@ namespace Terminus {
}
var color = Gdk.RGBA();
string key;
color.parse(Terminus.settings.get_string("fg-color"));
if (!this.text_fg.equal(color)) {
......@@ -486,23 +485,23 @@ namespace Terminus {
[DBus(name = "com.rastersoft.terminus")]
public class RemoteControl : GLib.Object {
public int do_ping(int v) {
public int do_ping(int v) throws GLib.Error, GLib.DBusError {
return (v + 1);
}
public void disable_keybind() {
public void disable_keybind() throws GLib.Error, GLib.DBusError {
bindkey.unset_bindkey();
}
public void show_guake() {
public void show_guake() throws GLib.Error, GLib.DBusError {
main_root.show_hide_global(0);
}
public void hide_guake() {
public void hide_guake() throws GLib.Error, GLib.DBusError {
main_root.show_hide_global(1);
}
public void swap_guake() {
public void swap_guake() throws GLib.Error, GLib.DBusError {
main_root.show_hide_global(2);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment