diff options
author | Juhani Krekelä | 2021-07-24 19:15:10 +0300 |
---|---|---|
committer | Wolfgang Müller | 2021-07-24 18:55:04 +0200 |
commit | 4295134455ea99ad14a0eb43ed31e03fbeebb623 (patch) | |
tree | 6d668dce7b207e6051ffde950ccafc12b041a092 /terminal.ui | |
parent | 8a87662e4d2be193e3110903e83f12347a12d4cb (diff) | |
download | weltschmerz-4295134455ea99ad14a0eb43ed31e03fbeebb623.tar.gz |
Unify context menus for URLs and OSC 8 hyperlinks
Currently weltschmerz has separate context menus for the two types of
URIs one can interact with, even though they contain the same option
with only a little different phrasing. This makes both use the same
context menu, and standardizes terminology to "URI".
This unification is in preparation for an upcoming "Open with …" feature
which will programmatically add items to context menu for URIs. Without
this, we would need to duplicate logic for each of the separate menus.
Diffstat (limited to '')
-rw-r--r-- | terminal.ui | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/terminal.ui b/terminal.ui index 68a36b7..57e4ad9 100644 --- a/terminal.ui +++ b/terminal.ui @@ -3,44 +3,22 @@ <interface> <requires lib="gtk+" version="3.24"/> <requires lib="vte-2.91" version="0.54"/> - <object class="GtkImage" id="copy_hyperlink_image"> + <object class="GtkImage" id="copy_uri_image"> <property name="visible">True</property> <property name="can-focus">False</property> <property name="icon-name">edit-copy</property> </object> - <object class="GtkMenu" id="hyperlink_context_menu"> + <object class="GtkMenu" id="uri_context_menu"> <property name="visible">True</property> <property name="can-focus">False</property> <child> - <object class="GtkImageMenuItem" id="copy_hyperlink_item"> - <property name="label" translatable="yes">_Copy hyperlink</property> + <object class="GtkImageMenuItem" id="copy_uri_item"> + <property name="label" translatable="yes">_Copy URI</property> <property name="visible">True</property> <property name="can-focus">False</property> - <property name="tooltip-text" translatable="yes">Copy the hyperlink's URI to the clipboard</property> + <property name="tooltip-text" translatable="yes">Copy the URI to the clipboard</property> <property name="use-underline">True</property> - <property name="image">copy_hyperlink_image</property> - <property name="use-stock">False</property> - <property name="always-show-image">True</property> - <signal name="activate" handler="uri_copy" swapped="no"/> - </object> - </child> - </object> - <object class="GtkImage" id="copy_url_image"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="icon-name">edit-copy</property> - </object> - <object class="GtkMenu" id="url_context_menu"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <child> - <object class="GtkImageMenuItem" id="copy_url_item"> - <property name="label" translatable="yes">_Copy URL</property> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="tooltip-text" translatable="yes">Copy the URL to the clipboard</property> - <property name="use-underline">True</property> - <property name="image">copy_url_image</property> + <property name="image">copy_uri_image</property> <property name="use-stock">False</property> <property name="always-show-image">True</property> <signal name="activate" handler="uri_copy" swapped="no"/> |