diff options
author | Claudio Saavedra <csaavedra@alumnos.utalca.cl> | 2005-07-29 18:28:19 +0000 |
---|---|---|
committer | Claudio Saavedra <csaavedr@src.gnome.org> | 2005-07-29 18:28:19 +0000 |
commit | 70aaf163ae40115cd74a9c99111ec78bed9080e7 (patch) | |
tree | 1ad4eb8019efd121345cf3a1e21acc95a7e87cfb /docs | |
parent | 8e40259feb197937657cca0cc38d6560ae9522d7 (diff) | |
download | gtk+-70aaf163ae40115cd74a9c99111ec78bed9080e7.tar.gz |
Declaring the GtkActionEntry arrays static const. Fixes #301612.
2005-07-29 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
* docs/reference/gtk/migrating-GtkAction.sgml: Declaring the
GtkActionEntry arrays static const. Fixes #301612.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gtk/migrating-GtkAction.sgml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/reference/gtk/migrating-GtkAction.sgml b/docs/reference/gtk/migrating-GtkAction.sgml index 5e1040843b..d610ccae0b 100644 --- a/docs/reference/gtk/migrating-GtkAction.sgml +++ b/docs/reference/gtk/migrating-GtkAction.sgml @@ -263,7 +263,7 @@ static GnomeUIInfo menubar[] = { <programlisting> /* Normal items */ -static GtkActionEntry entries[] = { +static const GtkActionEntry entries[] = { { "FileMenu", NULL, "_File" }, { "ViewMenu", NULL, "_View" }, { "Open", GTK_STOCK_OPEN, "_Open", "<control>O", "Open a file", open_action_callback }, @@ -273,12 +273,12 @@ static GtkActionEntry entries[] = { }; /* Toggle items */ -static GtkToggleActionEntry toggle_entries[] = { +static const GtkToggleActionEntry toggle_entries[] = { { "FullScreen", NULL, "_Full Screen", "F11", "Switch between full screen and windowed mode", full_screen_action_callback, FALSE } }; /* Radio items */ -static GtkRadioActionEntry radio_entries[] = { +static const GtkRadioActionEntry radio_entries[] = { { "HighQuality", "my-stock-high-quality", "_High Quality", NULL, "Display images in high quality, slow mode", 0 }, { "NormalQuality", "my-stock-normal-quality", "_Normal Quality", NULL, "Display images in normal quality", 1 }, { "LowQuality", "my-stock-low-quality", "_Low Quality", NULL, "Display images in low quality, fast mode", 2 } |