diff options
author | Arx Cruz <arxcruz@src.gnome.org> | 2011-06-28 17:09:04 -0300 |
---|---|---|
committer | Arx Cruz <arxcruz@src.gnome.org> | 2011-06-28 17:18:32 -0300 |
commit | 5872558feef3727e3ff1bb2bf395dfc6bd896f74 (patch) | |
tree | fa788e9bed3d1368b905c1d09b787c27739bf2ec /src/zenity.ui | |
parent | f6920e5a6da83027919f3637b63cf2558e67ca47 (diff) | |
download | zenity-5872558feef3727e3ff1bb2bf395dfc6bd896f74.tar.gz |
This change add a new functionality to text-info:
* Added a cancel button returning 1 if clicked
* Renamed the Close button to Ok, still returning 0 if clicked
* Added --ok-label=TEXT option to change the Ok button label
* Added --cancel-label=TEXT option to change the Cancel button label
* Added --checkbox=TEXT option to show an "I Agree and accept the terms" checkbox
If --checkbox is enabled, the Ok button will be disabled if the checkbox isn't checked.
Diffstat (limited to 'src/zenity.ui')
-rw-r--r-- | src/zenity.ui | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/src/zenity.ui b/src/zenity.ui index 3187d0b..07aa51a 100644 --- a/src/zenity.ui +++ b/src/zenity.ui @@ -847,11 +847,10 @@ <property name="can_focus">False</property> <property name="layout_style">end</property> <child> - <object class="GtkButton" id="zenity_text_close_button"> - <property name="label">gtk-close</property> + <object class="GtkButton" id="zenity_text_cancel_button"> + <property name="label">gtk-cancel</property> <property name="visible">True</property> <property name="can_focus">True</property> - <property name="can_default">True</property> <property name="receives_default">False</property> <property name="use_action_appearance">False</property> <property name="use_stock">True</property> @@ -862,6 +861,23 @@ <property name="position">0</property> </packing> </child> + <child> + <object class="GtkButton" id="zenity_text_close_button"> + <property name="label">gtk-ok</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">True</property> + <property name="use_action_appearance">False</property> + <property name="use_stock">True</property> + <property name="image_position">right</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> </object> <packing> <property name="expand">False</property> @@ -900,6 +916,20 @@ <property name="position">0</property> </packing> </child> + <child> + <object class="GtkCheckButton" id="zenity_text_checkbox"> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + <property name="xalign">0</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> </object> <packing> <property name="expand">True</property> @@ -910,6 +940,7 @@ </object> </child> <action-widgets> + <action-widget response="-6">zenity_text_cancel_button</action-widget> <action-widget response="-7">zenity_text_close_button</action-widget> </action-widgets> </object> |