Re: Example of multiple toolbars
- From: "Eric Gillespie, Jr." <epg pobox com>
- To: Gnome developer list <gnome-devel-list gnome org>
- Subject: Re: Example of multiple toolbars
- Date: Fri, 2 Jun 2000 23:47:50 -0500
On Fri, Jun 02, 2000 at 12:28:49PM -0500,
Kent Schumacher <kent@structural-wood.com> wrote:
> It seems like a rather large step from the elegantly simple
> gnome_app_create_toolbar() to gnome_app_add_toolbar().
Actually, it's quite easy.
static GnomeUIInfo toolbar_info[] = {
{ GNOME_APP_UI_ITEM, N_("caption"),
N_("tooltip"), callback, NULL,
NULL, GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_ADD, 0, 0, NULL }
};
toolbar = gtk_toolbar_new(GTK_ORIENTATION_HORIZONTAL,
GTK_TOOLBAR_ICONS);
gnome_app_fill_toolbar(GTK_TOOLBAR(toolbar), toolbar_info, NULL);
gnome_app_add_toolbar(GNOME_APP(app), GTK_TOOLBAR(toolbar),
"toolbar-name", GNOME_DOCK_BEH_NORMAL,
GNOME_DOCK_TOP, 2, 0, 0);
There is excellet documentation about what the arguments to
gnome_app_add_toolbar() mean and how to use them at
<http://developer.gnome.org/doc/API/libgnomeui/gnomeapp.html>.
--
Eric Gillespie, Jr. <*> epg@pobox.com
"With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are
going to land, and it could be dangerous sitting under them as
they fly overhead."
--RFC 1925
PGP signature
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]