diff options
author | Guido Günther <agx@sigxcpu.org> | 2020-07-02 13:09:36 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2020-07-02 13:30:46 +0200 |
commit | 172c816776d8af3c8493fa75d40ec44f0d8b7ec5 (patch) | |
tree | 419fe98ad56010e70f86838e7052a4561523fae0 /data | |
parent | 81c6acc00d64d1361219773691babccb153b81af (diff) |
Use error dialog
This allows for more styling
Diffstat (limited to 'data')
-rw-r--r-- | data/ppm.gresources.xml | 1 | ||||
-rw-r--r-- | data/ui/ppm-error-dialog.ui | 96 |
2 files changed, 97 insertions, 0 deletions
diff --git a/data/ppm.gresources.xml b/data/ppm.gresources.xml index 36e93a1..2948c0d 100644 --- a/data/ppm.gresources.xml +++ b/data/ppm.gresources.xml @@ -2,6 +2,7 @@ <gresources> <gresource prefix="/org/gnome/PrepaidManager"> <file>ui/ppm.ui</file> + <file>ui/ppm-error-dialog.ui</file> <file>ui/ppm-provider-assistant.ui</file> </gresource> </gresources> diff --git a/data/ui/ppm-error-dialog.ui b/data/ui/ppm-error-dialog.ui new file mode 100644 index 0000000..a0e1842 --- /dev/null +++ b/data/ui/ppm-error-dialog.ui @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.22.2 --> +<interface> + <requires lib="gtk+" version="3.20"/> + <template class="PPMErrorDialog" parent="GtkDialog"> + <property name="can_focus">False</property> + <property name="type_hint">dialog</property> + <child type="titlebar"> + <placeholder/> + </child> + <child internal-child="vbox"> + <object class="GtkBox"> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <child internal-child="action_area"> + <object class="GtkButtonBox"> + <property name="can_focus">False</property> + <property name="layout_style">end</property> + <child> + <placeholder/> + </child> + <child> + <object class="GtkButton" id="button1"> + <property name="label">gtk-ok</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkLabel" id="error_origin"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="margin_left">10</property> + <property name="margin_right">10</property> + <property name="margin_top">10</property> + <property name="margin_bottom">10</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="error_detail"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="margin_left">10</property> + <property name="margin_right">10</property> + <property name="margin_top">10</property> + <property name="margin_bottom">10</property> + <property name="wrap">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="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-5">button1</action-widget> + </action-widgets> + </template> +</interface> |