Skip to content

Commit

Permalink
fix #1314
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed May 29, 2024
1 parent fd95dfe commit 200754e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions src/Layouts/ItemRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ public class Layouts.ItemRow : Layouts.ItemBase {
checked_button = new Gtk.CheckButton () {
valign = Gtk.Align.CENTER,
css_classes = { "priority-color" },
sensitive = !item.project.is_deck,
tooltip_text = item.content
sensitive = !item.project.is_deck
};

checked_button_revealer = new Gtk.Revealer () {
Expand All @@ -226,7 +225,7 @@ public class Layouts.ItemRow : Layouts.ItemBase {
reveal_child = true
};

content_label = new Gtk.Label (item.content) {
content_label = new Gtk.Label (null) {
hexpand = true,
xalign = 0,
wrap = false,
Expand All @@ -243,8 +242,6 @@ public class Layouts.ItemRow : Layouts.ItemBase {

content_textview = new Widgets.TextView ();
content_textview.wrap_mode = Gtk.WrapMode.WORD;
content_textview.buffer.text = item.content;
content_textview.editable = !item.completed && !item.project.is_deck;
content_textview.remove_css_class ("view");
content_textview.add_css_class ("font-bold");

Expand Down Expand Up @@ -399,6 +396,7 @@ public class Layouts.ItemRow : Layouts.ItemBase {
top_margin = 3,
bottom_margin = 12
};

markdown_edit_view.buffer = current_buffer;

var description_scrolled_window = new Gtk.ScrolledWindow () {
Expand Down
8 changes: 4 additions & 4 deletions src/Services/ActionManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Services.ActionManager : Object {
public const string ACTION_VIEW_PINBOARD = "action_view_pinboard";
public const string ACTION_VIEW_LABELS = "action_view_labels";
public const string ACTION_VIEW_HOME = "action_view_home";
public const string ACTION_ESC = "action_esc";
// public const string ACTION_ESC = "action_esc";
public const string ACTION_SHOW_HIDE_SIDEBAR = "action_show_hide_sidebar";

public static Gee.MultiMap<string, string> action_accelerators = new Gee.HashMultiMap<string, string> ();
Expand All @@ -67,7 +67,7 @@ public class Services.ActionManager : Object {
{ ACTION_VIEW_PINBOARD, action_view_pinboard },
{ ACTION_VIEW_LABELS, action_view_labels },
{ ACTION_VIEW_HOME, action_view_home },
{ ACTION_ESC, action_esc },
// { ACTION_ESC, action_esc },
{ ACTION_SHOW_HIDE_SIDEBAR, action_show_hide_sidebar }
};

Expand All @@ -91,7 +91,7 @@ public class Services.ActionManager : Object {
action_accelerators.set (ACTION_VIEW_SCHEDULED, "<Control>u");
action_accelerators.set (ACTION_VIEW_LABELS, "<Control>l");
action_accelerators.set (ACTION_VIEW_PINBOARD, "<Control>p");
action_accelerators.set (ACTION_ESC, "Escape");
// action_accelerators.set (ACTION_ESC, "Escape");

typing_accelerators.set (ACTION_ADD_TASK, "a");
typing_accelerators.set (ACTION_ADD_TASK_PASTE, "<Control>v");
Expand Down Expand Up @@ -185,7 +185,7 @@ public class Services.ActionManager : Object {
}

private void action_esc () {
Services.EventBus.get_default ().request_escape ();
// Services.EventBus.get_default ().request_escape ();
}

private void action_show_hide_sidebar () {
Expand Down

0 comments on commit 200754e

Please sign in to comment.