completely rethink this dialog

Mon Jan 28 22:09:30 2002  Jonathan Blandford  <jrb@gnome.org>

	* gnome-ui-properties.c: completely rethink this dialog
This commit is contained in:
Jonathan Blandford 2002-01-29 03:26:23 +00:00 committed by Jonathan Blandford
parent b1ee65a8ef
commit f250835f2e
5 changed files with 1025 additions and 6 deletions

View file

@ -1,3 +1,7 @@
Mon Jan 28 22:09:30 2002 Jonathan Blandford <jrb@gnome.org>
* gnome-ui-properties.c: completely rethink this dialog
2002-01-27 Seth Nickell <snickell@stanford.edu> 2002-01-27 Seth Nickell <snickell@stanford.edu>
* behavior.desktop.in: * behavior.desktop.in:

View file

@ -2,12 +2,7 @@ bin_PROGRAMS = gnome2-ui-properties
gnome2_ui_properties_LDADD = $(GNOMECC_CAPPLETS_LIBS) gnome2_ui_properties_LDADD = $(GNOMECC_CAPPLETS_LIBS)
gnome2_ui_properties_SOURCES = \ gnome2_ui_properties_SOURCES = \
prefs-widget.c prefs-widget.h\ gnome-ui-properties.c
prefs-widget-mdi.c prefs-widget-mdi.h\
prefs-widget-dialogs.c prefs-widget-dialogs.h\
prefs-widget-app.c prefs-widget-app.h\
preferences.c preferences.h\
main.c
@INTLTOOL_DESKTOP_RULE@ @INTLTOOL_DESKTOP_RULE@

View file

@ -0,0 +1,144 @@
/* gnome-ui-properties.c
* Copyright (C) 2002 Jonathan Blandford
*
* Written by: Jonathan Blandford <jrb@gnome.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <gnome.h>
#include <gconf/gconf-client.h>
#include <glade/glade.h>
#include "capplet-util.h"
#include "gconf-property-editor.h"
static GConfEnumStringPair toolbar_style_enums[] = {
{ 0, "both" },
{ 1, "icons" },
{ 2, "text" }
};
static GConfValue *
toolbar_from_widget (GConfValue *value)
{
GConfValue *new_value;
new_value = gconf_value_new (GCONF_VALUE_STRING);
gconf_value_set_string (new_value,
gconf_enum_to_string (toolbar_style_enums, gconf_value_get_int (value)));
return new_value;
}
static GConfValue *
toolbar_to_widget (GConfValue *value)
{
GConfValue *new_value;
gint val = 2;
new_value = gconf_value_new (GCONF_VALUE_INT);
gconf_string_to_enum (toolbar_style_enums,
gconf_value_get_string (value),
&val);
gconf_value_set_int (new_value, val);
return new_value;
}
static void
dialog_button_clicked_cb (GnomeDialog *dialog, gint response_id, GConfChangeSet *changeset)
{
switch (response_id)
{
case GTK_RESPONSE_APPLY:
gconf_client_commit_change_set (gconf_client_get_default (), changeset, TRUE, NULL);
break;
case GTK_RESPONSE_HELP:
break;
case GTK_RESPONSE_CLOSE:
case GTK_RESPONSE_DELETE_EVENT:
default:
gtk_main_quit ();
break;
}
}
static GladeXML *
create_dialog (void)
{
GladeXML *dialog;
// dialog = glade_xml_new (GNOMECC_DATA_DIR "/interfaces/gnome-keyboard-properties.glade", "keyboard_dialog", NULL);
dialog = glade_xml_new ("gnome2-ui-properties.glade", "gnome_ui_properties_dialog", NULL);
return dialog;
}
static void
setup_dialog (GladeXML *dialog, GConfChangeSet *changeset)
{
GtkWidget *widget;
gconf_peditor_new_boolean
(changeset, "/desktop/gnome/interface/toolbar_detachable", WID ("detachable_toolbars_toggle"), NULL);
gconf_peditor_new_boolean
(changeset, "/desktop/gnome/interface/menus_have_icons", WID ("menu_icons_toggle"), NULL);
gconf_peditor_new_select_menu
(changeset, "/desktop/gnome/interface/toolbar_style", WID ("toolbar_style_omenu"),
"conv-to-widget-cb", toolbar_to_widget,
"conv-from-widget-cb", toolbar_from_widget,
NULL);
widget = WID ("gnome_ui_properties_dialog");
g_signal_connect (G_OBJECT (widget), "response",
(GCallback) dialog_button_clicked_cb, changeset);
gtk_widget_show_all (widget);
}
int
main (int argc, char **argv)
{
GConfClient *client;
GladeXML *dialog;
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
bind_textdomain_codeset (PACKAGE, "UTF-8");
textdomain (PACKAGE);
gnome_program_init (argv[0], VERSION, LIBGNOMEUI_MODULE, argc, argv,
GNOME_PARAM_APP_DATADIR, GNOMECC_DATA_DIR,
NULL);
client = gconf_client_get_default ();
gconf_client_add_dir (client, "/desktop/gnome/interface", GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
dialog = create_dialog ();
setup_dialog (dialog, NULL);
gtk_main ();
return 0;
}

View file

@ -0,0 +1,502 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd" >
<glade-interface>
<widget class="GtkDialog" id="gnome_ui_properties_dialog">
<property name="title" translatable="yes">Toolbar and Menu Properties</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="modal">no</property>
<property name="allow_shrink">no</property>
<property name="allow_grow">yes</property>
<property name="visible">no</property>
<property name="window-position">GTK_WIN_POS_NONE</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox2">
<property name="homogeneous">no</property>
<property name="spacing">8</property>
<property name="visible">yes</property>
<child internal-child="action_area">
<widget class="GtkHButtonBox" id="dialog-action_area2">
<property name="layout_style">GTK_BUTTONBOX_END</property>
<property name="spacing">8</property>
<property name="visible">yes</property>
<child>
<widget class="GtkButton" id="button10">
<property name="can_default">yes</property>
<property name="can_focus">yes</property>
<property name="visible">yes</property>
<property name="label" translatable="yes">gtk-help</property>
<property name="use_stock">yes</property>
<!-- <property name="response-id">-11</property>-->
<property name="use_underline">yes</property>
</widget>
</child>
<child>
<widget class="GtkButton" id="button12">
<property name="can_default">yes</property>
<property name="can_focus">yes</property>
<!-- <property name="response-id">-7</property>-->
<property name="visible">yes</property>
<property name="label" translatable="yes">gtk-close</property>
<property name="use_stock">yes</property>
<property name="use_underline">yes</property>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">yes</property>
<property name="pack_type">GTK_PACK_END</property>
</packing>
</child>
<child>
<widget class="GtkVBox" id="vbox2">
<property name="border_width">4</property>
<property name="homogeneous">no</property>
<property name="spacing">8</property>
<property name="visible">yes</property>
<child>
<widget class="GtkFrame" id="frame4">
<property name="label" translatable="yes">Toolbar</property>
<property name="label_xalign">0</property>
<property name="shadow">GTK_SHADOW_ETCHED_IN</property>
<property name="visible">yes</property>
<child>
<widget class="GtkVBox" id="vbox3">
<property name="border_width">4</property>
<property name="homogeneous">no</property>
<property name="spacing">4</property>
<property name="visible">yes</property>
<child>
<widget class="GtkHBox" id="hbox1">
<property name="homogeneous">no</property>
<property name="spacing">0</property>
<property name="visible">yes</property>
<child>
<widget class="GtkLabel" id="label5">
<property name="label" translatable="yes">_Toolbars have: </property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
<property name="wrap">no</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="mnemonic_widget">toolbar_style_omenu</property>
<property name="visible">yes</property>
<property name="use_underline">yes</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
</packing>
</child>
<child>
<widget class="GtkOptionMenu" id="toolbar_style_omenu">
<property name="can_focus">yes</property>
<property name="history">2</property>
<property name="visible">yes</property>
<child internal-child="menu">
<widget class="GtkMenu" id="convertwidget1">
<property name="visible">yes</property>
<child>
<widget class="GtkMenuItem" id="convertwidget2">
<property name="visible">yes</property>
<child>
<widget class="GtkAccelLabel" id="convertwidget5">
<property name="label" translatable="yes">Icons and Text</property>
<property name="xalign">0.0</property>
<property name="accel-widget">convertwidget2</property>
<property name="use-underline">yes</property>
<property name="visible">yes</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="convertwidget3">
<property name="visible">yes</property>
<child>
<widget class="GtkAccelLabel" id="convertwidget6">
<property name="label" translatable="yes">Only Icons</property>
<property name="xalign">0.0</property>
<property name="accel-widget">convertwidget3</property>
<property name="use-underline">yes</property>
<property name="visible">yes</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="convertwidget4">
<property name="visible">yes</property>
<child>
<widget class="GtkAccelLabel" id="convertwidget7">
<property name="label" translatable="yes">Only Text</property>
<property name="xalign">0.0</property>
<property name="accel-widget">convertwidget4</property>
<property name="use-underline">yes</property>
<property name="visible">yes</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">yes</property>
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="detachable_toolbars_toggle">
<property name="can_focus">yes</property>
<property name="label" translatable="yes">Toolbars can be _detached and moved around</property>
<property name="active">yes</property>
<property name="draw_indicator">yes</property>
<property name="visible">yes</property>
<property name="use_underline">yes</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
</packing>
</child>
<child>
<widget class="GtkFrame" id="frame2">
<property name="label" translatable="yes">Sample Toolbar</property>
<property name="label_xalign">0</property>
<property name="shadow">GTK_SHADOW_NONE</property>
<property name="visible">yes</property>
<child>
<widget class="GtkHandleBox" id="toolbar_handlebox">
<property name="handle_position">GTK_POS_LEFT</property>
<property name="snap_edge">GTK_POS_TOP</property>
<property name="shadow">GTK_SHADOW_OUT</property>
<property name="visible">yes</property>
<child>
<widget class="GtkToolbar" id="toolbar_toolbar">
<property name="border_width">1</property>
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
<property name="toolbar-style">GTK_TOOLBAR_BOTH</property>
<property name="visible">yes</property>
<child>
<widget class="button" id="button7">
<property name="tooltip" translatable="yes">New File</property>
<property name="label" translatable="yes">Item 1</property>
<property name="stock_pixmap">gtk-new</property>
<property name="visible">yes</property>
</widget>
</child>
<child>
<widget class="button" id="button8">
<property name="tooltip" translatable="yes">Open File</property>
<property name="label" translatable="yes">Item 2</property>
<property name="stock_pixmap">gtk-open</property>
<property name="visible">yes</property>
</widget>
</child>
<child>
<widget class="button" id="button9">
<property name="tooltip" translatable="yes">Save File</property>
<property name="label" translatable="yes">Item 3</property>
<property name="stock_pixmap">gtk-save</property>
<property name="visible">yes</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
</packing>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">yes</property>
<property name="fill">yes</property>
</packing>
</child>
<child>
<widget class="GtkFrame" id="frame5">
<property name="label" translatable="yes">Menus</property>
<property name="label_xalign">0</property>
<property name="shadow">GTK_SHADOW_ETCHED_IN</property>
<property name="visible">yes</property>
<child>
<widget class="GtkVBox" id="vbox4">
<property name="border_width">4</property>
<property name="homogeneous">no</property>
<property name="spacing">4</property>
<property name="visible">yes</property>
<child>
<widget class="GtkCheckButton" id="menu_icons_toggle">
<property name="can_focus">yes</property>
<property name="label" translatable="yes">Menu items have _icons</property>
<property name="active">yes</property>
<property name="draw_indicator">yes</property>
<property name="visible">yes</property>
<property name="use_underline">yes</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">no</property>
</packing>
</child>
<child>
<widget class="GtkFrame" id="frame3">
<property name="label" translatable="yes">Sample Menubar</property>
<property name="label_xalign">0</property>
<property name="shadow">GTK_SHADOW_NONE</property>
<property name="visible">yes</property>
<child>
<widget class="GtkMenuBar" id="menubar1">
<property name="visible">yes</property>
<child>
<widget class="GtkImageMenuItem" id="menu1">
<property name="visible">yes</property>
<child>
<widget class="GtkMenu" id="menu1_menu">
<property name="visible">yes</property>
<child>
<widget class="GtkImageMenuItem" id="menu_item_1">
<property name="visible">yes</property>
<signal name="activate" handler="on_menu_item_1_activate" />
<child internal-child="image">
<widget class="GtkImage" id="convertwidget10">
<property name="stock">gtk-new</property>
<property name="visible">yes</property>
</widget>
</child>
<child>
<widget class="GtkAccelLabel" id="convertwidget11">
<property name="label" translatable="yes">Menu Item 1</property>
<property name="xalign">0.0</property>
<property name="accel-widget">menu_item_1</property>
<property name="use-underline">yes</property>
<property name="visible">yes</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="menu_item_2">
<property name="visible">yes</property>
<signal name="activate" handler="on_menu_item_2_activate" />
<child internal-child="image">
<widget class="GtkImage" id="convertwidget12">
<property name="stock">gtk-open</property>
<property name="visible">yes</property>
</widget>
</child>
<child>
<widget class="GtkAccelLabel" id="convertwidget13">
<property name="label" translatable="yes">Menu Item 2</property>
<property name="xalign">0.0</property>
<property name="accel-widget">menu_item_2</property>
<property name="use-underline">yes</property>
<property name="visible">yes</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="menu_item_3">
<property name="visible">yes</property>
<signal name="activate" handler="on_menu_item_3_activate" />
<child internal-child="image">
<widget class="GtkImage" id="convertwidget14">
<property name="stock">gtk-save</property>
<property name="visible">yes</property>
</widget>
</child>
<child>
<widget class="GtkAccelLabel" id="convertwidget15">
<property name="label" translatable="yes">Menu Item 3</property>
<property name="xalign">0.0</property>
<property name="accel-widget">menu_item_3</property>
<property name="use-underline">yes</property>
<property name="visible">yes</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="separator3">
<property name="visible">yes</property>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="menu_item_4">
<property name="visible">yes</property>
<signal name="activate" handler="on_menu_item_5_activate" />
<child internal-child="image">
<widget class="GtkImage" id="convertwidget16">
<property name="stock">gtk-print</property>
<property name="visible">yes</property>
</widget>
</child>
<child>
<widget class="GtkAccelLabel" id="convertwidget17">
<property name="label" translatable="yes">Menu Item 4</property>
<property name="xalign">0.0</property>
<property name="accel-widget">menu_item_4</property>
<property name="use-underline">yes</property>
<property name="visible">yes</property>
</widget>
</child>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="separator4">
<property name="visible">yes</property>
</widget>
</child>
<child>
<widget class="GtkImageMenuItem" id="menu_item_5">
<property name="visible">yes</property>
<signal name="activate" handler="on_menu_item_6_activate" />
<child internal-child="image">
<widget class="GtkImage" id="convertwidget18">
<property name="stock">gtk-quit</property>
<property name="visible">yes</property>
</widget>
</child>
<child>
<widget class="GtkAccelLabel" id="convertwidget19">
<property name="label" translatable="yes">Menu Item 5</property>
<property name="xalign">0.0</property>
<property name="accel-widget">menu_item_5</property>
<property name="use-underline">yes</property>
<property name="visible">yes</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>
<child internal-child="image">
<widget class="GtkImage" id="convertwidget8">
<property name="stock">gnome-stock-about</property>
<property name="visible">yes</property>
</widget>
</child>
<child>
<widget class="GtkAccelLabel" id="convertwidget9">
<property name="label" translatable="yes">_Menu</property>
<property name="xalign">0.0</property>
<property name="accel-widget">menu1</property>
<property name="use-underline">yes</property>
<property name="visible">yes</property>
</widget>
</child>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">no</property>
<property name="fill">yes</property>
</packing>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">yes</property>
<property name="fill">yes</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">yes</property>
<property name="fill">yes</property>
</packing>
</child>
</widget>
<packing>
<property name="padding">4</property>
<property name="expand">yes</property>
<property name="fill">yes</property>
</packing>
</child>
</widget>
</glade-interface>

View file

@ -0,0 +1,374 @@
<?xml version="1.0"?>
<GTK-Interface>
<project>
<name>Ui</name>
<program_name>ui</program_name>
<directory></directory>
<source_directory>src</source_directory>
<pixmaps_directory>pixmaps</pixmaps_directory>
<language>C</language>
<gnome_support>True</gnome_support>
<gettext_support>True</gettext_support>
</project>
<widget>
<class>GnomeDialog</class>
<name>gnome_ui_properties_dialog</name>
<title>Toolbar and Menu Properties</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
<allow_shrink>False</allow_shrink>
<allow_grow>True</allow_grow>
<auto_shrink>False</auto_shrink>
<auto_close>False</auto_close>
<hide_on_close>False</hide_on_close>
<widget>
<class>GtkVBox</class>
<child_name>GnomeDialog:vbox</child_name>
<name>dialog-vbox2</name>
<homogeneous>False</homogeneous>
<spacing>8</spacing>
<child>
<padding>4</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkHButtonBox</class>
<child_name>GnomeDialog:action_area</child_name>
<name>dialog-action_area2</name>
<layout_style>GTK_BUTTONBOX_END</layout_style>
<spacing>8</spacing>
<child_min_width>85</child_min_width>
<child_min_height>27</child_min_height>
<child_ipad_x>7</child_ipad_x>
<child_ipad_y>0</child_ipad_y>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>True</fill>
<pack>GTK_PACK_END</pack>
</child>
<widget>
<class>GtkButton</class>
<name>button10</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_HELP</stock_button>
</widget>
<widget>
<class>GtkButton</class>
<name>button12</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_CLOSE</stock_button>
</widget>
</widget>
<widget>
<class>GtkVBox</class>
<name>vbox2</name>
<border_width>4</border_width>
<homogeneous>False</homogeneous>
<spacing>8</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkFrame</class>
<name>frame4</name>
<label>Toolbar</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>vbox3</name>
<border_width>4</border_width>
<homogeneous>False</homogeneous>
<spacing>4</spacing>
<widget>
<class>GtkHBox</class>
<name>hbox1</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label5</name>
<label>_Toolbars have: </label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<default_focus_target>toolbar_style_omenu</default_focus_target>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkOptionMenu</class>
<name>toolbar_style_omenu</name>
<can_focus>True</can_focus>
<items>Icons and Text
Only Icons
Only Text
</items>
<initial_choice>2</initial_choice>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
<widget>
<class>GtkCheckButton</class>
<name>detachable_toolbars_toggle</name>
<can_focus>True</can_focus>
<label>Toolbars can be _detached and moved around</label>
<active>True</active>
<draw_indicator>True</draw_indicator>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkFrame</class>
<name>frame2</name>
<label>Sample Toolbar</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_NONE</shadow_type>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkHandleBox</class>
<name>toolbar_handlebox</name>
<shadow_type>GTK_SHADOW_OUT</shadow_type>
<handle_position>GTK_POS_LEFT</handle_position>
<snap_edge>GTK_POS_TOP</snap_edge>
<widget>
<class>GtkToolbar</class>
<name>toolbar_toolbar</name>
<border_width>1</border_width>
<orientation>GTK_ORIENTATION_HORIZONTAL</orientation>
<type>GTK_TOOLBAR_BOTH</type>
<space_size>16</space_size>
<space_style>GTK_TOOLBAR_SPACE_LINE</space_style>
<relief>GTK_RELIEF_NONE</relief>
<tooltips>True</tooltips>
<widget>
<class>GtkButton</class>
<child_name>Toolbar:button</child_name>
<name>button7</name>
<tooltip>New File</tooltip>
<label>Item 1</label>
<stock_pixmap>GNOME_STOCK_PIXMAP_NEW</stock_pixmap>
</widget>
<widget>
<class>GtkButton</class>
<child_name>Toolbar:button</child_name>
<name>button8</name>
<tooltip>Open File</tooltip>
<label>Item 2</label>
<stock_pixmap>GNOME_STOCK_PIXMAP_OPEN</stock_pixmap>
</widget>
<widget>
<class>GtkButton</class>
<child_name>Toolbar:button</child_name>
<name>button9</name>
<tooltip>Save File</tooltip>
<label>Item 3</label>
<stock_pixmap>GNOME_STOCK_PIXMAP_SAVE</stock_pixmap>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>frame5</name>
<label>Menus</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>vbox4</name>
<border_width>4</border_width>
<homogeneous>False</homogeneous>
<spacing>4</spacing>
<widget>
<class>GtkCheckButton</class>
<name>menu_icons_toggle</name>
<can_focus>True</can_focus>
<label>Menu items have _icons</label>
<active>True</active>
<draw_indicator>True</draw_indicator>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkFrame</class>
<name>frame3</name>
<label>Sample Menubar</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_NONE</shadow_type>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkMenuBar</class>
<name>menubar1</name>
<shadow_type>GTK_SHADOW_OUT</shadow_type>
<widget>
<class>GtkPixmapMenuItem</class>
<name>menu1</name>
<label>_Menu</label>
<right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_ABOUT</stock_icon>
<widget>
<class>GtkMenu</class>
<name>menu1_menu</name>
<widget>
<class>GtkPixmapMenuItem</class>
<name>menu_item_1</name>
<signal>
<name>activate</name>
<handler>on_menu_item_1_activate</handler>
<last_modification_time>Thu, 24 Jan 2002 03:40:54 GMT</last_modification_time>
</signal>
<label>Menu Item 1</label>
<right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_NEW</stock_icon>
</widget>
<widget>
<class>GtkPixmapMenuItem</class>
<name>menu_item_2</name>
<signal>
<name>activate</name>
<handler>on_menu_item_2_activate</handler>
<last_modification_time>Thu, 24 Jan 2002 03:40:54 GMT</last_modification_time>
</signal>
<label>Menu Item 2</label>
<right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_OPEN</stock_icon>
</widget>
<widget>
<class>GtkPixmapMenuItem</class>
<name>menu_item_3</name>
<signal>
<name>activate</name>
<handler>on_menu_item_3_activate</handler>
<last_modification_time>Thu, 24 Jan 2002 03:40:54 GMT</last_modification_time>
</signal>
<label>Menu Item 3</label>
<right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_SAVE</stock_icon>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>separator3</name>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkPixmapMenuItem</class>
<name>menu_item_4</name>
<signal>
<name>activate</name>
<handler>on_menu_item_5_activate</handler>
<last_modification_time>Thu, 24 Jan 2002 03:44:44 GMT</last_modification_time>
</signal>
<label>Menu Item 4</label>
<right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_PRINT</stock_icon>
</widget>
<widget>
<class>GtkMenuItem</class>
<name>separator4</name>
<right_justify>False</right_justify>
</widget>
<widget>
<class>GtkPixmapMenuItem</class>
<name>menu_item_5</name>
<signal>
<name>activate</name>
<handler>on_menu_item_6_activate</handler>
<last_modification_time>Thu, 24 Jan 2002 03:40:54 GMT</last_modification_time>
</signal>
<label>Menu Item 5</label>
<right_justify>False</right_justify>
<stock_icon>GNOME_STOCK_MENU_EXIT</stock_icon>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</GTK-Interface>