[gitg] Hide normal selection when handle_selection is true
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Hide normal selection when handle_selection is true
- Date: Thu, 17 Dec 2015 22:31:25 +0000 (UTC)
commit 2e580e7857bde3a9bd10cf3d54e361a3d51b3140
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Thu Dec 17 23:29:58 2015 +0100
Hide normal selection when handle_selection is true
libgitg/gitg-diff-view-hunk.vala | 2 ++
libgitg/resources/ui/libgitg-style.css | 5 +++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libgitg/gitg-diff-view-hunk.vala b/libgitg/gitg-diff-view-hunk.vala
index 1a3747c..b66400e 100644
--- a/libgitg/gitg-diff-view-hunk.vala
+++ b/libgitg/gitg-diff-view-hunk.vala
@@ -129,6 +129,8 @@ class Gitg.DiffViewHunk : Gtk.Grid
d_sourceview_hunk.button_press_event.connect(button_press_event_on_view);
d_sourceview_hunk.motion_notify_event.connect(motion_notify_event_on_view);
d_sourceview_hunk.button_release_event.connect(button_release_event_on_view);
+
+ d_sourceview_hunk.get_style_context().add_class("handle-selection");
}
update_hunk_label();
diff --git a/libgitg/resources/ui/libgitg-style.css b/libgitg/resources/ui/libgitg-style.css
index 3d67cf3..bf32945 100644
--- a/libgitg/resources/ui/libgitg-style.css
+++ b/libgitg/resources/ui/libgitg-style.css
@@ -36,6 +36,11 @@ GitgDiffViewHunk GtkSourceView.view {
color: @theme_text_color;
}
+GitgDiffViewHunk GtkSourceView.view.handle-selection:selected {
+ background-color: transparent;
+ color: @theme_text_color;
+}
+
GitgDiffView GitgDiffViewCommitDetails {
border-bottom: 1px outset lighter(@borders);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]