Add a <StockItem> to the itemfactory example. (#103211)
2003-01-15 Matthias Clasen <maclas@gmx.de> * examples/menu/itemfactory.c: * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory example. (#103211)
This commit is contained in:
committed by
Matthias Clasen
parent
5c466a9f39
commit
7cebc87dac
@@ -1,3 +1,9 @@
|
||||
2003-01-15 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* examples/menu/itemfactory.c:
|
||||
* docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
|
||||
example. (#103211)
|
||||
|
||||
2002-12-29 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
Fixes #102168.
|
||||
@@ -75,7 +81,7 @@ Tue Jan 14 23:11:55 2002 Kristian Rietveld <kris@gtk.org>
|
||||
Tue Jan 14 20:58:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (invalite_last_column): split out actual column
|
||||
invalidation into invalite_column(),
|
||||
invalidation into invalidate_column(),
|
||||
(gtk_tree_view_size_allocate_columns): invalidate column if the
|
||||
new width is larger than the old width.
|
||||
(fixes #102890, reported by Alex Duggan).
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2003-01-15 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* examples/menu/itemfactory.c:
|
||||
* docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
|
||||
example. (#103211)
|
||||
|
||||
2002-12-29 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
Fixes #102168.
|
||||
@@ -75,7 +81,7 @@ Tue Jan 14 23:11:55 2002 Kristian Rietveld <kris@gtk.org>
|
||||
Tue Jan 14 20:58:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (invalite_last_column): split out actual column
|
||||
invalidation into invalite_column(),
|
||||
invalidation into invalidate_column(),
|
||||
(gtk_tree_view_size_allocate_columns): invalidate column if the
|
||||
new width is larger than the old width.
|
||||
(fixes #102890, reported by Alex Duggan).
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2003-01-15 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* examples/menu/itemfactory.c:
|
||||
* docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
|
||||
example. (#103211)
|
||||
|
||||
2002-12-29 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
Fixes #102168.
|
||||
@@ -75,7 +81,7 @@ Tue Jan 14 23:11:55 2002 Kristian Rietveld <kris@gtk.org>
|
||||
Tue Jan 14 20:58:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (invalite_last_column): split out actual column
|
||||
invalidation into invalite_column(),
|
||||
invalidation into invalidate_column(),
|
||||
(gtk_tree_view_size_allocate_columns): invalidate column if the
|
||||
new width is larger than the old width.
|
||||
(fixes #102890, reported by Alex Duggan).
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2003-01-15 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* examples/menu/itemfactory.c:
|
||||
* docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
|
||||
example. (#103211)
|
||||
|
||||
2002-12-29 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
Fixes #102168.
|
||||
@@ -75,7 +81,7 @@ Tue Jan 14 23:11:55 2002 Kristian Rietveld <kris@gtk.org>
|
||||
Tue Jan 14 20:58:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (invalite_last_column): split out actual column
|
||||
invalidation into invalite_column(),
|
||||
invalidation into invalidate_column(),
|
||||
(gtk_tree_view_size_allocate_columns): invalidate column if the
|
||||
new width is larger than the old width.
|
||||
(fixes #102890, reported by Alex Duggan).
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2003-01-15 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* examples/menu/itemfactory.c:
|
||||
* docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
|
||||
example. (#103211)
|
||||
|
||||
2002-12-29 Murray Cumming <murrayc@usa.net>
|
||||
|
||||
Fixes #102168.
|
||||
@@ -75,7 +81,7 @@ Tue Jan 14 23:11:55 2002 Kristian Rietveld <kris@gtk.org>
|
||||
Tue Jan 14 20:58:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (invalite_last_column): split out actual column
|
||||
invalidation into invalite_column(),
|
||||
invalidation into invalidate_column(),
|
||||
(gtk_tree_view_size_allocate_columns): invalidate column if the
|
||||
new width is larger than the old width.
|
||||
(fixes #102890, reported by Alex Duggan).
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<book id="gtk-tut">
|
||||
|
||||
<bookinfo>
|
||||
<date>December 7, 2002</date>
|
||||
<date>January 15, 2003</date>
|
||||
<title>GTK+ 2.0 Tutorial</title>
|
||||
<authorgroup>
|
||||
<author>
|
||||
@@ -8682,6 +8682,9 @@ NULL or "" or "<Item>" - create a simple item
|
||||
"<Separator>" - create a separator
|
||||
"<Branch>" - create an item to hold submenus (optional)
|
||||
"<LastBranch>" - create a right justified branch
|
||||
"<StockItem>" - create a simple item with a stock image.
|
||||
see <filename>gtkstock.h</filename> for builtin stock items
|
||||
|
||||
</programlisting>
|
||||
|
||||
<para>Note that <LastBranch> is only useful for one submenu of
|
||||
@@ -8807,7 +8810,7 @@ static GtkItemFactoryEntry entries[] = {
|
||||
{ "/File/_New", "<CTRL>N", new_file, 1, "<Item>" },
|
||||
{ "/File/_Open...", "<CTRL>O", open_file, 1, "<Item>" },
|
||||
{ "/File/sep1", NULL, NULL, 0, "<Separator>" },
|
||||
{ "/File/_Quit", "<CTRL>Q", quit_program, 0, "<Item>"} };
|
||||
{ "/File/_Quit", "<CTRL>Q", quit_program, 0, "<StockItem>", GTK_STOCK_QUIT } };
|
||||
</programlisting>
|
||||
</sect3>
|
||||
</sect2>
|
||||
@@ -8965,7 +8968,7 @@ static GtkItemFactoryEntry menu_items[] = {
|
||||
{ "/File/_Save", "&lt;control&gt;S", print_hello, 0, "<Item>" },
|
||||
{ "/File/Save _As", NULL, NULL, 0, "<Item>" },
|
||||
{ "/File/sep1", NULL, NULL, 0, "&lt;Separator&gt;" },
|
||||
{ "/File/Quit", "&lt;control&gt;Q", gtk_main_quit, 0, "<Item>" },
|
||||
{ "/File/_Quit", "<CTRL>Q", gtk_main_quit, 0, "<StockItem>", GTK_STOCK_QUIT },
|
||||
{ "/_Options", NULL, NULL, 0, "&lt;Branch&gt;" },
|
||||
{ "/Options/tear", NULL, NULL, 0, "&lt;Tearoff&gt;" },
|
||||
{ "/Options/Check", NULL, print_toggle, 1, "&lt;CheckItem&gt;" },
|
||||
@@ -9103,7 +9106,7 @@ int main( int argc,
|
||||
|
||||
return(0);
|
||||
}
|
||||
/* example-end */
|
||||
<!-- example-end -->
|
||||
</programlisting>
|
||||
|
||||
</sect1>
|
||||
|
||||
@@ -35,7 +35,7 @@ static GtkItemFactoryEntry menu_items[] = {
|
||||
{ "/File/_Save", "<control>S", print_hello, 0, "<Item>" },
|
||||
{ "/File/Save _As", NULL, NULL, 0, "<Item>" },
|
||||
{ "/File/sep1", NULL, NULL, 0, "<Separator>" },
|
||||
{ "/File/Quit", "<control>Q", gtk_main_quit, 0, "<Item>" },
|
||||
{ "/File/_Quit", "<CTRL>Q", gtk_main_quit, 0, "<StockItem>", GTK_STOCK_QUIT },
|
||||
{ "/_Options", NULL, NULL, 0, "<Branch>" },
|
||||
{ "/Options/tear", NULL, NULL, 0, "<Tearoff>" },
|
||||
{ "/Options/Check", NULL, print_toggle, 1, "<CheckItem>" },
|
||||
|
||||
Reference in New Issue
Block a user