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

📄 example-4.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">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="AllDaGoodies">      <property name="border_width">6</property>      <property name="visible">True</property>      <property name="homogeneous">False</property>      <property name="spacing">0</property>      <child>	<widget class="GtkNotebook" id="Preferences">	  <property name="visible">True</property>	  <property name="can_focus">True</property>	  <property name="show_tabs">True</property>	  <property name="show_border">True</property>	  <property name="tab_pos">GTK_POS_TOP</property>	  <property name="scrollable">False</property>	  <property name="enable_popup">False</property>	  <child>	    <widget class="GtkVBox" id="LocationOptions">	      <property name="border_width">6</property>	      <property name="visible">True</property>	      <property name="homogeneous">False</property>	      <property name="spacing">0</property>	      <child>		<widget class="GtkRadioButton" id="Here">		  <property name="visible">True</property>		  <property name="can_focus">True</property>		  <property name="label" translatable="yes">_Here</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="padding">0</property>		  <property name="expand">False</property>		  <property name="fill">False</property>		</packing>	      </child>	      <child>		<widget class="GtkRadioButton" id="There">		  <property name="visible">True</property>		  <property name="can_focus">True</property>		  <property name="label" translatable="yes">_There</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>		  <property name="group">Here</property>		</widget>		<packing>		  <property name="padding">0</property>		  <property name="expand">False</property>		  <property name="fill">False</property>		</packing>	      </child>	    </widget>	    <packing>	      <property name="tab_expand">False</property>	      <property name="tab_fill">True</property>	    </packing>	  </child>	  <child>	    <widget class="GtkLabel" id="LocationLabel">	      <property name="visible">True</property>	      <property name="label" translatable="yes">Location</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.5</property>	      <property name="yalign">0.5</property>	      <property name="xpad">0</property>	      <property name="ypad">0</property>	    </widget>	    <packing>	      <property name="type">tab</property>	    </packing>	  </child>	  <child>	    <widget class="GtkColorSelection" id="ColorSelection">	      <property name="border_width">6</property>	      <property name="visible">True</property>	      <property name="has_opacity_control">True</property>	      <property name="has_palette">False</property>	    </widget>	    <packing>	      <property name="tab_expand">False</property>	      <property name="tab_fill">True</property>	    </packing>	  </child>	  <child>	    <widget class="GtkLabel" id="ColorLabel">	      <property name="visible">True</property>	      <property name="label" translatable="yes">Color</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.5</property>	      <property name="yalign">0.5</property>	      <property name="xpad">0</property>	      <property name="ypad">0</property>	    </widget>	    <packing>	      <property name="type">tab</property>	    </packing>	  </child>	  <child>	    <widget class="GtkFontSelection" id="FontSelection">	      <property name="border_width">6</property>	      <property name="visible">True</property>	      <property name="preview_text" translatable="yes">abcdefghijk ABCDEFGHIJK</property>	    </widget>	    <packing>	      <property name="tab_expand">False</property>	      <property name="tab_fill">True</property>	    </packing>	  </child>	  <child>	    <widget class="GtkLabel" id="FontLabel">	      <property name="visible">True</property>	      <property name="label" translatable="yes">Font</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.5</property>	      <property name="yalign">0.5</property>	      <property name="xpad">0</property>	      <property name="ypad">0</property>	    </widget>	    <packing>	      <property name="type">tab</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="GtkVBox" id="TheGlobalButtonArea">	  <property name="visible">True</property>	  <property name="homogeneous">False</property>	  <property name="spacing">0</property>	  <child>	    <widget class="GtkHSeparator" id="hseparator1">	      <property name="visible">True</property>	    </widget>	    <packing>	      <property name="padding">0</property>	      <property name="expand">False</property>	      <property name="fill">False</property>	    </packing>	  </child>	  <child>	    <widget class="GtkHButtonBox" id="hbuttonbox2">	      <property name="visible">True</property>	      <property name="layout_style">GTK_BUTTONBOX_END</property>	      <property name="spacing">0</property>	      <child>		<widget class="GtkButton" id="QuitButton">		  <property name="visible">True</property>		  <property name="can_default">True</property>		  <property name="can_focus">True</property>		  <property name="label">gtk-quit</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>	<packing>	  <property name="padding">0</property>	  <property name="expand">False</property>	  <property name="fill">False</property>	</packing>      </child>    </widget>  </child></widget><widget class="GtkDialog" id="ConfirmClose">  <property name="border_width">6</property>  <property name="visible">True</property>  <property name="title" translatable="yes"></property>  <property name="type">GTK_WINDOW_TOPLEVEL</property>  <property name="window_position">GTK_WIN_POS_NONE</property>  <property name="modal">True</property>  <property name="resizable">False</property>  <property name="destroy_with_parent">False</property>  <property name="has_separator">False</property>  <child internal-child="vbox">    <widget class="GtkVBox" id="dialog-vbox">      <property name="visible">True</property>      <property name="homogeneous">False</property>      <property name="spacing">12</property>      <child internal-child="action_area">	<widget class="GtkHButtonBox" id="dialog-action_area">	  <property name="visible">True</property>	  <property name="layout_style">GTK_BUTTONBOX_END</property>	  <child>	    <widget class="GtkButton" id="CancelButton">	      <property name="visible">True</property>	      <property name="can_default">True</property>	      <property name="can_focus">True</property>	      <property name="label">gtk-cancel</property>	      <property name="use_stock">True</property>	      <property name="relief">GTK_RELIEF_NORMAL</property>	      <property name="response_id">-6</property>	      <signal name="clicked" handler="ok_button_clicked" last_modification_time="Mon, 15 Mar 2004 23:14:00 GMT"/>	    </widget>	  </child>	  <child>	    <widget class="GtkButton" id="ExitButton">	      <property name="visible">True</property>	      <property name="can_default">True</property>	      <property name="can_focus">True</property>	      <property name="label" translatable="yes">E_xit anyway</property>	      <property name="use_underline">True</property>	      <property name="relief">GTK_RELIEF_NORMAL</property>	      <property name="response_id">-7</property>	    </widget>	  </child>	</widget>	<packing>	  <property name="padding">0</property>	  <property name="expand">False</property>	  <property name="fill">True</property>	  <property name="pack_type">GTK_PACK_END</property>	</packing>      </child>      <child>	<widget class="GtkHBox" id="InfoBox">	  <property name="border_width">6</property>	  <property name="visible">True</property>	  <property name="homogeneous">False</property>	  <property name="spacing">12</property>	  <child>	    <widget class="GtkImage" id="InfoImage">	      <property name="visible">True</property>	      <property name="stock">gtk-dialog-warning</property>	      <property name="icon_size">6</property>	      <property name="xalign">0.5</property>	      <property name="yalign">0</property>	      <property name="xpad">0</property>	      <property name="ypad">0</property>	    </widget>	    <packing>	      <property name="padding">0</property>	      <property name="expand">False</property>	      <property name="fill">False</property>	    </packing>	  </child>	  <child>	    <widget class="GtkLabel" id="InfoLabel">	      <property name="visible">True</property>	      <property name="label" translatable="yes">&lt;span weight=&quot;bold&quot; size=&quot;larger&quot;&gt;Exit from this fantastorific application?&lt;/span&gt;Exiting from this program will lose all customizations you have made to &lt;span size=&quot;larger&quot;&gt;There&lt;/span&gt;.  It will also make you sad because you know that using this program was the highlight of your day.</property>	      <property name="use_underline">False</property>	      <property name="use_markup">True</property>	      <property name="justify">GTK_JUSTIFY_LEFT</property>	      <property name="wrap">True</property>	      <property name="selectable">False</property>	      <property name="xalign">0.5</property>	      <property name="yalign">0.5</property>	      <property name="xpad">0</property>	      <property name="ypad">0</property>	    </widget>	    <packing>	      <property name="padding">0</property>	      <property name="expand">False</property>	      <property name="fill">False</property>	    </packing>	  </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 + -