[ghex] Allow immediate clicking between gtkhex views
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] Allow immediate clicking between gtkhex views
- Date: Fri, 28 Aug 2015 21:28:17 +0000 (UTC)
commit cb39f6cff3714b0ee201bf7faea4a188fc9ca67b
Author: Bryan <bryan reipublicae com>
Date: Mon Aug 10 22:13:36 2015 -0500
Allow immediate clicking between gtkhex views
GtkHex would switch focus between the hex and ascii views with a primary
button click but would require another click to change the cursor. Now
a single click switches focus between the views and changes the cursor
to the point at the click.
https://bugzilla.gnome.org/show_bug.cgi?id=753489
src/gtkhex.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gtkhex.c b/src/gtkhex.c
index ac44582..9c730b0 100644
--- a/src/gtkhex.c
+++ b/src/gtkhex.c
@@ -1111,6 +1111,7 @@ static void hex_button_cb(GtkWidget *w, GdkEventButton *event, GtkHex *gh) {
hide_cursor(gh);
gh->active_view = VIEW_HEX;
show_cursor(gh);
+ hex_button_cb(w, event, gh);
}
}
else if((event->type == GDK_BUTTON_PRESS) && (event->button == GDK_BUTTON_MIDDLE)) {
@@ -1207,6 +1208,7 @@ static void ascii_button_cb(GtkWidget *w, GdkEventButton *event, GtkHex *gh) {
hide_cursor(gh);
gh->active_view = VIEW_ASCII;
show_cursor(gh);
+ ascii_button_cb(w, event, gh);
}
}
else if((event->type == GDK_BUTTON_PRESS) && (event->button == GDK_BUTTON_MIDDLE)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]