Skip to content

Commit

Permalink
Set the cursor to "text" on the path bar
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Mar 25, 2024
1 parent 56f8dce commit 802b5b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hyperplane/path_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ class HypPathBar(Gtk.ScrolledWindow):

def __init__(self, **kwargs) -> None:
super().__init__(**kwargs)

# Indicate that the bar is clickable
self.set_cursor(Gdk.Cursor.new_from_name("text"))

self.segments = []
self.separators = {}
self.tags = False
Expand Down
3 changes: 3 additions & 0 deletions hyperplane/path_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def __init__(
super().__init__(**kwargs)
HypHoverPageOpener.__init__(self)

# Because HypPathBar sets it to "text"
self.set_cursor(Gdk.Cursor.new_from_name("default"))

self.icon_name = icon_name
self.label = label
self.uri = uri
Expand Down

0 comments on commit 802b5b1

Please sign in to comment.