diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-04-12 17:54:35 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-04-12 19:17:50 +0200 |
commit | c63b8d55bdb0a6a236cef856cbfc5d9fe45ac103 (patch) | |
tree | db952bae2db04e1dfed5619b9025b92d3f8cf1a5 /sw/uiconfig | |
parent | fe23e35ba5705d7f51f69c3f4e7ccd6c5b575a6b (diff) |
sw define bibliography entry dialog: add browse button for file:// URLs
- wrap "entry" in the biblio fragment into a "hbox"
- audit uses of "entry" and work with "hbox" instead, depending on if
the context is a child widget (want hbox) or indeed an entry (want
entry)
- add a hidden-by-default browse button to that box
- add a handler which can edit the AUTH_FIELD_URL entry
Change-Id: Ifecc6f1a86be1f609d470535f103c630e45d04cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114013
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/uiconfig')
-rw-r--r-- | sw/uiconfig/swriter/ui/bibliofragment.ui | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/sw/uiconfig/swriter/ui/bibliofragment.ui b/sw/uiconfig/swriter/ui/bibliofragment.ui index 6352bc9a9cfa..d800d0b7d8c7 100644 --- a/sw/uiconfig/swriter/ui/bibliofragment.ui +++ b/sw/uiconfig/swriter/ui/bibliofragment.ui @@ -11,14 +11,37 @@ <property name="vexpand">True</property> <property name="column_spacing">6</property> <child> - <object class="GtkEntry" id="entry"> + <object class="GtkBox" id="hbox"> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hexpand">True</property> - <property name="vexpand">False</property> - <property name="activates_default">True</property> - <property name="truncate-multiline">True</property> - <property name="width_chars">14</property> + <property name="can_focus">False</property> + <child> + <object class="GtkEntry" id="entry"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="hexpand">True</property> + <property name="vexpand">False</property> + <property name="activates_default">True</property> + <property name="width_chars">14</property> + <property name="truncate_multiline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="browse"> + <property name="label" translatable="yes" context="bibliofragment|browse">Browse...</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> </object> <packing> <property name="left_attach">1</property> |