diff options
Diffstat (limited to 'data/ui/contacts-avatar-selector.ui')
-rw-r--r-- | data/ui/contacts-avatar-selector.ui | 335 |
1 files changed, 66 insertions, 269 deletions
diff --git a/data/ui/contacts-avatar-selector.ui b/data/ui/contacts-avatar-selector.ui index e117827..180ae6b 100644 --- a/data/ui/contacts-avatar-selector.ui +++ b/data/ui/contacts-avatar-selector.ui @@ -1,293 +1,90 @@ <?xml version="1.0" encoding="UTF-8"?> <interface> - <requires lib="gtk+" version="3.20"/> - <template class="ContactsAvatarSelector" parent="GtkDialog"> - <property name="visible">True</property> - <property name="title" translatable="yes">Select Picture</property> - <property name="modal">True</property> - <style> - <class name="contacts-avatar-dialog"/> - </style> - <child internal-child="vbox"> + <requires lib="gtk+" version="3.22"/> + <template class="ContactsAvatarSelector" parent="GtkPopover"> + <property name="can_focus">False</property> + <child> <object class="GtkBox"> <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="orientation">vertical</property> + <property name="spacing">10</property> <child> - <object class="GtkGrid" id="grid"> + <object class="GtkFlowBox" id="personas_thumbnail_grid"> <property name="visible">True</property> - <property name="border_width">8</property> - <property name="column_spacing">16</property> - <property name="row_spacing">11</property> - <child> - </child> - <!-- ContactFrame --> - <placeholder/> + <property name="can_focus">False</property> + <property name="column_spacing">5</property> + <property name="row_spacing">5</property> + <property name="selection_mode">none</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkFlowBox" id="stock_thumbnail_grid"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="column_spacing">5</property> + <property name="row_spacing">5</property> + <property name="min_children_per_line">5</property> + <property name="max_children_per_line">8</property> + <property name="selection_mode">none</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">center</property> + <property name="spacing">10</property> <child> - <object class="GtkLabel" id="contact_name_label"> - <property name="visible">True</property> - <property name="halign">start</property> - <property name="valign">start</property> - <property name="hexpand">True</property> - <property name="margin_top">4</property> - <property name="ellipsize">end</property> - <property name="label" translatable="yes">New Contact</property> - <style> - <class name="contact-display-name"/> - </style> + <object class="GtkButton" id="cheese_button"> + <property name="label" translatable="yes">Take a Picture...</property> + <property name="can_focus">True</property> + <property name="no_show_all">True</property> + <property name="receives_default">True</property> + <signal name="clicked" handler="on_cheese_clicked" swapped="no"/> </object> <packing> - <property name="top_attach">0</property> - <property name="left_attach">1</property> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> </packing> </child> <child> - <object class="GtkFrame"> + <object class="GtkButton"> + <property name="label" translatable="yes">Select a File...</property> <property name="visible">True</property> - <style> - <class name="contacts-avatar-frame"/> - </style> - <child> - <object class="GtkStack" id="views_stack"> - <property name="visible">True</property> - <child> - <object class="GtkGrid" id="thumbnail_page"> - <property name="visible">True</property> - <property name="orientation">vertical</property> - <child> - <object class="GtkScrolledWindow"> - <property name="visible">True</property> - <property name="hscrollbar_policy">never</property> - <property name="vscrollbar_policy">automatic</property> - <property name="hexpand">True</property> - <property name="vexpand">True</property> - <property name="height_request">300</property> - <child> - <object class="GtkBox"> - <property name="visible">True</property> - <property name="orientation">vertical</property> - <child> - <object class="GtkFlowBox" id="personas_thumbnail_grid"> - <property name="visible">True</property> - </object> - </child> - <child> - <object class="GtkSeparator"> - <property name="visible">True</property> - <property name="orientation">horizontal</property> - </object> - </child> - <child> - <object class="GtkFlowBox" id="stock_thumbnail_grid"> - <property name="visible">True</property> - <property name="min_children_per_line">5</property> - <property name="max_children_per_line">8</property> - </object> - </child> - </object> - </child> - </object> - </child> - <child> - <object class="GtkActionBar"> - <property name="visible">True</property> - <child> - <object class="GtkBox" id="webcam_button_box"> - <property name="orientation">horizontal</property> - <style> - <class name="linked"/> - </style> - <child> - <object class="GtkButton"> - <property name="visible">True</property> - <signal name="clicked" handler="select_avatar_file_cb" swapped="no"/> - <child> - <object class="GtkImage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="pixel_size">16</property> - <property name="icon_name">list-add-symbolic</property> - </object> - </child> - </object> - </child> - <child> - <object class="GtkButton" id="webcam_button"> - <property name="visible">True</property> - <property name="sensitive">False</property> - <signal name="clicked" handler="on_webcam_button_clicked" swapped="no"/> - <child> - <object class="GtkImage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="pixel_size">16</property> - <property name="icon_name">camera-photo-symbolic</property> - </object> - </child> - </object> - </child> - </object> - </child> - <child> - <object class="GtkButton"> - <property name="visible" bind-source="webcam_button_box" bind-property="visible" bind-flags="invert-boolean|sync-create" /> - <signal name="clicked" handler="select_avatar_file_cb" swapped="no"/> - <child> - <object class="GtkImage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="pixel_size">16</property> - <property name="icon_name">list-add-symbolic</property> - </object> - </child> - </object> - </child> - </object> - </child> - </object> - <packing> - <property name="name">thumbnail-page</property> - </packing> - </child> - <child> - <object class="GtkGrid" id="crop_page"> - <property name="visible">True</property> - <property name="orientation">vertical</property> - <child> - <object class="GtkActionBar"> - <property name="visible">True</property> - <child> - <object class="GtkBox"> - <property name="visible">True</property> - <property name="orientation">horizontal</property> - <style> - <class name="linked"/> - </style> - <child> - <object class="GtkButton"> - <property name="visible">True</property> - <signal name="clicked" handler="on_crop_page_select_button_clicked" swapped="no"/> - <child> - <object class="GtkImage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="pixel_size">16</property> - <property name="icon_name">object-select-symbolic</property> - </object> - </child> - </object> - </child> - <child> - <object class="GtkButton"> - <property name="visible">True</property> - <signal name="clicked" handler="on_crop_page_cancel_button_clicked" swapped="no"/> - <child> - <object class="GtkImage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="pixel_size">16</property> - <property name="icon_name">edit-undo-symbolic</property> - </object> - </child> - </object> - </child> - </object> - </child> - </object> - <packing> - <property name="top_attach">1</property> - <property name="left_attach">0</property> - </packing> - </child> - </object> - <packing> - <property name="name">crop-page</property> - </packing> - </child> - <child> - <object class="GtkGrid" id="photobooth_page"> - <property name="orientation">vertical</property> - <child> - <object class="GtkActionBar"> - <property name="visible">True</property> - <child> - <object class="GtkBox"> - <property name="visible">True</property> - <property name="orientation">horizontal</property> - <style> - <class name="linked"/> - </style> - <child> - <object class="GtkButton"> - <property name="visible">True</property> - <signal name="clicked" handler="on_photobooth_page_select_button_clicked" swapped="no"/> - <child> - <object class="GtkImage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="pixel_size">16</property> - <property name="icon_name">object-select-symbolic</property> - </object> - </child> - </object> - </child> - <child> - <object class="GtkButton"> - <property name="visible">True</property> - <signal name="clicked" handler="on_photobooth_page_cancel_button_clicked" swapped="no"/> - <child> - <object class="GtkImage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="pixel_size">16</property> - <property name="icon_name">edit-undo-symbolic</property> - </object> - </child> - </object> - </child> - </object> - </child> - </object> - <packing> - <property name="top_attach">1</property> - <property name="left_attach">0</property> - </packing> - </child> - </object> - <packing> - <property name="name">photobooth-page</property> - </packing> - </child> - </object> - </child> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <signal name="clicked" handler="on_file_clicked" swapped="no"/> </object> <packing> - <property name="top_attach">1</property> - <property name="left_attach">0</property> - <property name="width">2</property> + <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">2</property> + </packing> </child> </object> </child> - - <child type="action"> - <object class="GtkButton" id="select_button"> - <property name="visible">True</property> - <property name="can-default">True</property> - <property name="sensitive">False</property> - <property name="label" translatable="yes">Select</property> - </object> - </child> - <child type="action"> - <object class="GtkButton" id="cancel_button"> - <property name="visible">True</property> - <property name="label" translatable="yes">Cancel</property> - </object> - </child> - <action-widgets> - <action-widget response="cancel">cancel_button</action-widget> - <action-widget response="ok" default="true">select_button</action-widget> - </action-widgets> </template> </interface> |