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

📄 example-1.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="GtkDialog" id="MainWindow">  <property name="border_width">6</property>  <property name="visible">True</property>  <property name="title" translatable="yes">Useless Program</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">False</property>  <property name="destroy_with_parent">False</property>  <property name="has_separator">False</property>  <signal name="delete_event" handler="gtk_main_quit" last_modification_time="Mon, 15 Mar 2004 23:13:27 GMT"/>  <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="OKButton">	      <property name="visible">True</property>	      <property name="can_default">True</property>	      <property name="can_focus">True</property>	      <property name="label">gtk-ok</property>	      <property name="use_stock">True</property>	      <property name="relief">GTK_RELIEF_NORMAL</property>	      <property name="response_id">-5</property>	      <signal name="clicked" handler="ok_button_clicked" last_modification_time="Mon, 15 Mar 2004 23:14:00 GMT"/>	    </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;This program does nothing useful&lt;/span&gt;No code has yet been added to this program to do anything other than display this short warning.  This program will now close.</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 + -