2022-01-19 23:11:38 -08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<interface>
|
2022-11-05 00:57:18 +01:00
|
|
|
<menu id="image_menu">
|
|
|
|
|
<section>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Open With…</attribute>
|
|
|
|
|
<attribute name="action">win.open-with</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<!--<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Display On…</attribute>
|
|
|
|
|
<attribute name="action">win.display-on</attribute>
|
|
|
|
|
</item>-->
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Print…</attribute>
|
|
|
|
|
<attribute name="action">win.print</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Copy</attribute>
|
2023-11-30 01:20:13 +01:00
|
|
|
<attribute name="action">win.copy-image</attribute>
|
2022-11-05 00:57:18 +01:00
|
|
|
</item>
|
|
|
|
|
</section>
|
|
|
|
|
<section>
|
|
|
|
|
<attribute name="label" translatable="yes">Rotate</attribute>
|
|
|
|
|
<attribute name="display-hint">inline-buttons</attribute>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="custom">rotate-left</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="custom">rotate-right</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
</section>
|
|
|
|
|
<section>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Set as Background…</attribute>
|
|
|
|
|
<attribute name="action">win.set-background</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
</section>
|
|
|
|
|
</menu>
|
2022-01-19 23:11:38 -08:00
|
|
|
<template class="LpImagePage" parent="AdwBin">
|
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
|
<property name="child">
|
|
|
|
|
<object class="GtkStack" id="stack">
|
|
|
|
|
<property name="transition-type">crossfade</property>
|
|
|
|
|
<child>
|
2023-04-26 18:15:36 +02:00
|
|
|
<object class="AdwBin" id="spinner_page">
|
|
|
|
|
<property name="hexpand">true</property>
|
|
|
|
|
<property name="vexpand">true</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkSpinner" id="spinner">
|
|
|
|
|
<property name="height-request">24</property>
|
|
|
|
|
<property name="width-request">24</property>
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="valign">center</property>
|
|
|
|
|
<property name="spinning">True</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2022-01-19 23:11:38 -08:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwStatusPage" id="error_page">
|
|
|
|
|
<property name="icon-name">image-missing-symbolic</property>
|
|
|
|
|
<property name="title" translatable="yes">Could not Load Image</property>
|
2024-05-09 01:30:01 +02:00
|
|
|
<child>
|
|
|
|
|
<object class="GtkButton" id="error_more_info">
|
|
|
|
|
<property name="label" translatable="true">More Information…</property>
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<style>
|
|
|
|
|
<class name="pill" />
|
|
|
|
|
</style>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2022-01-19 23:11:38 -08:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
2023-03-18 01:22:30 +01:00
|
|
|
<object class="GtkBox" id="image_stack_page">
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkScrolledWindow" id="scrolled_window">
|
|
|
|
|
<property name="propagate-natural-height">True</property>
|
|
|
|
|
<property name="propagate-natural-width">True</property>
|
|
|
|
|
<property name="child">
|
|
|
|
|
<object class="LpImage" id="image">
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkGestureClick" id="right_click_gesture">
|
|
|
|
|
<property name="button">3</property>
|
2022-11-10 19:39:23 +01:00
|
|
|
</object>
|
|
|
|
|
</child>
|
2023-03-18 01:22:30 +01:00
|
|
|
<child>
|
|
|
|
|
<object class="GtkGestureLongPress" id="press_gesture">
|
|
|
|
|
<property name="touch-only">True</property>
|
2022-11-10 19:39:23 +01:00
|
|
|
</object>
|
|
|
|
|
</child>
|
2022-11-05 00:57:18 +01:00
|
|
|
</object>
|
2023-03-18 01:22:30 +01:00
|
|
|
</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="GtkPopoverMenu" id="popover">
|
2023-06-27 03:12:26 +03:00
|
|
|
<property name="halign">start</property>
|
2023-03-18 01:22:30 +01:00
|
|
|
<property name="has-arrow">False</property>
|
|
|
|
|
<property name="menu-model">image_menu</property>
|
|
|
|
|
<child type="rotate-left">
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="icon-name">object-rotate-left-symbolic</property>
|
|
|
|
|
<property name="tooltip-text" translatable="yes">Rotate Left</property>
|
2023-04-24 02:11:43 +03:00
|
|
|
<property name="action-name">win.rotate_ccw</property>
|
2023-03-18 01:22:30 +01:00
|
|
|
<style>
|
2023-11-28 22:02:30 +01:00
|
|
|
<class name="flat" />
|
2023-03-18 01:22:30 +01:00
|
|
|
</style>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child type="rotate-right">
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="icon-name">object-rotate-right-symbolic</property>
|
|
|
|
|
<property name="tooltip-text" translatable="yes">Rotate Right</property>
|
2023-04-24 02:11:43 +03:00
|
|
|
<property name="action-name">win.rotate_cw</property>
|
2023-03-18 01:22:30 +01:00
|
|
|
<style>
|
2023-11-28 22:02:30 +01:00
|
|
|
<class name="flat" />
|
2023-03-18 01:22:30 +01:00
|
|
|
</style>
|
|
|
|
|
</object>
|
2022-11-05 00:57:18 +01:00
|
|
|
</child>
|
2022-01-19 23:11:38 -08:00
|
|
|
</object>
|
2023-03-18 01:22:30 +01:00
|
|
|
</child>
|
2022-01-19 23:11:38 -08:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
</template>
|
2024-05-09 01:30:01 +02:00
|
|
|
</interface>
|