Loading

Custom GtkFileChooserDial

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Generated with glade 3.20.0 -->
  3. <interface>
  4.   <requires lib="gtk+" version="3.12"/>
  5.   <object class="GtkFileFilter" id="icd_image_filefilter">
  6.     <mime-types>
  7.       <mime-type>*.jpg</mime-type>
  8.       <mime-type>*.png</mime-type>
  9.     </mime-types>
  10.     <patterns>
  11.       <pattern>*.jpg</pattern>
  12.       <pattern>*.png</pattern>
  13.     </patterns>
  14.   </object>
  15.   <object class="GtkFileChooserDialog" id="icd_photo_chsrdialog">
  16.     <property name="name">icd_photo_chsrdialog</property>
  17.     <property name="can_focus">False</property>
  18.     <property name="title" translatable="yes">Selecione uma imagem</property>
  19.     <property name="modal">True</property>
  20.     <property name="window_position">mouse</property>
  21.     <property name="type_hint">utility</property>
  22.     <property name="skip_taskbar_hint">True</property>
  23.     <property name="skip_pager_hint">True</property>
  24.     <property name="deletable">False</property>
  25.     <property name="create_folders">False</property>
  26.     <property name="filter">icd_image_filefilter</property>
  27.     <property name="local_only">False</property>
  28.     <child internal-child="vbox">
  29.       <object class="GtkBox" id="icd_image_chser_diag_vbox">
  30.         <property name="name">icd_image_chser_diag_vbox</property>
  31.         <property name="visible">True</property>
  32.         <property name="can_focus">False</property>
  33.         <property name="orientation">vertical</property>
  34.         <property name="spacing">2</property>
  35.         <child internal-child="action_area">
  36.           <object class="GtkButtonBox" id="icd_buttonbox">
  37.             <property name="name">icd_buttonbox</property>
  38.             <property name="visible">True</property>
  39.             <property name="can_focus">False</property>
  40.             <property name="homogeneous">True</property>
  41.             <property name="layout_style">end</property>
  42.             <child>
  43.               <object class="GtkButton" id="icd_select_button">
  44.                 <property name="label" translatable="yes">Selecionar</property>
  45.                 <property name="visible">True</property>
  46.                 <property name="can_focus">True</property>
  47.                 <property name="receives_default">True</property>
  48.               </object>
  49.               <packing>
  50.                 <property name="expand">True</property>
  51.                 <property name="fill">True</property>
  52.                 <property name="position">0</property>
  53.               </packing>
  54.             </child>
  55.             <child>
  56.               <object class="GtkButton" id="icd_capture_button">
  57.                 <property name="label" translatable="yes">Capturar</property>
  58.                 <property name="name">icd_capture_button</property>
  59.                 <property name="visible">True</property>
  60.                 <property name="can_focus">True</property>
  61.                 <property name="receives_default">True</property>
  62.                 <property name="tooltip_text" translatable="yes">Abre o aplicativo de captura</property>
  63.                 <signal name="clicked" handler="onCaptureButtonClicked" swapped="no"/>
  64.               </object>
  65.               <packing>
  66.                 <property name="expand">True</property>
  67.                 <property name="fill">True</property>
  68.                 <property name="position">1</property>
  69.               </packing>
  70.             </child>
  71.             <child>
  72.               <object class="GtkButton" id="icd_cancel_button">
  73.                 <property name="label" translatable="yes">Cancelar</property>
  74.                 <property name="name">icd_cancel_button</property>
  75.                 <property name="visible">True</property>
  76.                 <property name="can_focus">True</property>
  77.                 <property name="has_focus">True</property>
  78.                 <property name="is_focus">True</property>
  79.                 <property name="receives_default">True</property>
  80.               </object>
  81.               <packing>
  82.                 <property name="expand">True</property>
  83.                 <property name="fill">True</property>
  84.                 <property name="position">2</property>
  85.               </packing>
  86.             </child>
  87.           </object>
  88.           <packing>
  89.             <property name="expand">False</property>
  90.             <property name="fill">True</property>
  91.             <property name="position">0</property>
  92.           </packing>
  93.         </child>
  94.         <child>
  95.           <placeholder/>
  96.         </child>
  97.       </object>
  98.     </child>
  99.     <action-widgets>
  100.       <action-widget response="-5">icd_select_button</action-widget>
  101.       <action-widget response="-6">icd_cancel_button</action-widget>
  102.     </action-widgets>
  103.   </object>
  104. </interface>