⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example-2.glade

📁 Developing with Gnome一书examples例子代码
💻 GLADE
字号:
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*--><!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd"><glade-interface><requires lib="gnome"/><widget class="GtkWindow" id="MainWindow">  <property name="visible">True</property>  <property name="title" translatable="yes">Nautilus Preferences</property>  <property name="type">GTK_WINDOW_TOPLEVEL</property>  <property name="window_position">GTK_WIN_POS_NONE</property>  <property name="modal">False</property>  <property name="resizable">True</property>  <property name="destroy_with_parent">False</property>  <child>    <widget class="GtkVBox" id="vbox1">      <property name="border_width">6</property>      <property name="visible">True</property>      <property name="homogeneous">False</property>      <property name="spacing">0</property>      <child>	<widget class="GtkTable" id="table1">	  <property name="visible">True</property>	  <property name="n_rows">3</property>	  <property name="n_columns">2</property>	  <property name="homogeneous">False</property>	  <property name="row_spacing">6</property>	  <property name="column_spacing">0</property>	  <child>	    <widget class="GtkLabel" id="ShowThumbnailsLabel">	      <property name="visible">True</property>	      <property name="label" translatable="yes">Show Image Thumnails:</property>	      <property name="use_underline">False</property>	      <property name="use_markup">False</property>	      <property name="justify">GTK_JUSTIFY_LEFT</property>	      <property name="wrap">False</property>	      <property name="selectable">False</property>	      <property name="xalign">0</property>	      <property name="yalign">0.5</property>	      <property name="xpad">0</property>	      <property name="ypad">0</property>	    </widget>	    <packing>	      <property name="left_attach">0</property>	      <property name="right_attach">1</property>	      <property name="top_attach">1</property>	      <property name="bottom_attach">2</property>	      <property name="x_options">fill</property>	      <property name="y_options"></property>	    </packing>	  </child>	  <child>	    <widget class="GtkLabel" id="ThumbnailLimitLabel">	      <property name="visible">True</property>	      <property name="label" translatable="yes">Thumbnail Size Limit:</property>	      <property name="use_underline">False</property>	      <property name="use_markup">False</property>	      <property name="justify">GTK_JUSTIFY_LEFT</property>	      <property name="wrap">False</property>	      <property name="selectable">False</property>	      <property name="xalign">0</property>	      <property name="yalign">0.5</property>	      <property name="xpad">0</property>	      <property name="ypad">0</property>	    </widget>	    <packing>	      <property name="left_attach">0</property>	      <property name="right_attach">1</property>	      <property name="top_attach">2</property>	      <property name="bottom_attach">3</property>	      <property name="x_options">fill</property>	      <property name="y_options"></property>	    </packing>	  </child>	  <child>	    <widget class="GtkEntry" id="ShowThumbnailsEntry">	      <property name="visible">True</property>	      <property name="tooltip" translatable="yes">When to show thumbnails, &quot;never&quot;, &quot;local_only&quot;, or &quot;always&quot;</property>	      <property name="can_focus">True</property>	      <property name="editable">True</property>	      <property name="visibility">True</property>	      <property name="max_length">0</property>	      <property name="text" translatable="yes"></property>	      <property name="has_frame">True</property>	      <property name="invisible_char" translatable="yes">*</property>	      <property name="activates_default">False</property>	    </widget>	    <packing>	      <property name="left_attach">1</property>	      <property name="right_attach">2</property>	      <property name="top_attach">1</property>	      <property name="bottom_attach">2</property>	      <property name="y_options"></property>	    </packing>	  </child>	  <child>	    <widget class="GtkEntry" id="ThumbnailLimitEntry">	      <property name="visible">True</property>	      <property name="tooltip" translatable="yes">Largest picture size (in bytes) that will be thumbnailed</property>	      <property name="can_focus">True</property>	      <property name="editable">True</property>	      <property name="visibility">True</property>	      <property name="max_length">0</property>	      <property name="text" translatable="yes"></property>	      <property name="has_frame">True</property>	      <property name="invisible_char" translatable="yes">*</property>	      <property name="activates_default">False</property>	    </widget>	    <packing>	      <property name="left_attach">1</property>	      <property name="right_attach">2</property>	      <property name="top_attach">2</property>	      <property name="bottom_attach">3</property>	      <property name="y_options"></property>	    </packing>	  </child>	  <child>	    <widget class="GtkCheckButton" id="BrowserMode">	      <property name="visible">True</property>	      <property name="tooltip" translatable="yes">Whether to use the old Browser mode, or the newer &quot;each directory in a separate window&quot; spatilus mode</property>	      <property name="can_focus">True</property>	      <property name="label" translatable="yes">Always use _browser mode</property>	      <property name="use_underline">True</property>	      <property name="relief">GTK_RELIEF_NORMAL</property>	      <property name="active">False</property>	      <property name="inconsistent">False</property>	      <property name="draw_indicator">True</property>	    </widget>	    <packing>	      <property name="left_attach">0</property>	      <property name="right_attach">2</property>	      <property name="top_attach">0</property>	      <property name="bottom_attach">1</property>	      <property name="x_options">fill</property>	      <property name="y_options"></property>	    </packing>	  </child>	</widget>	<packing>	  <property name="padding">0</property>	  <property name="expand">True</property>	  <property name="fill">True</property>	</packing>      </child>      <child>	<widget class="GtkHSeparator" id="hseparator1">	  <property name="visible">True</property>	</widget>	<packing>	  <property name="padding">7</property>	  <property name="expand">False</property>	  <property name="fill">False</property>	</packing>      </child>      <child>	<widget class="GtkHButtonBox" id="hbuttonbox1">	  <property name="visible">True</property>	  <property name="layout_style">GTK_BUTTONBOX_END</property>	  <property name="spacing">0</property>	  <child>	    <widget class="GtkButton" id="CloseButton">	      <property name="visible">True</property>	      <property name="can_default">True</property>	      <property name="can_focus">True</property>	      <property name="label">gtk-close</property>	      <property name="use_stock">True</property>	      <property name="relief">GTK_RELIEF_NORMAL</property>	    </widget>	  </child>	</widget>	<packing>	  <property name="padding">0</property>	  <property name="expand">False</property>	  <property name="fill">False</property>	</packing>      </child>    </widget>  </child></widget></glade-interface>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -