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.
This commit is contained in:
Claudio Saavedra
2005-07-29 18:28:19 +00:00
committed by Claudio Saavedra
parent 8e40259feb
commit 70aaf163ae
4 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2005-07-29 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
* docs/reference/gtk/migrating-GtkAction.sgml: Declaring the
GtkActionEntry arrays static const. Fixes #301612.
2005-07-29 J. Ali Harlow <ali@juiblex.co.uk>
* gtk/Makefile.am: Include gtkwin32embed.h in EXTRA_DIST

View File

@ -1,3 +1,8 @@
2005-07-29 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
* docs/reference/gtk/migrating-GtkAction.sgml: Declaring the
GtkActionEntry arrays static const. Fixes #301612.
2005-07-29 J. Ali Harlow <ali@juiblex.co.uk>
* gtk/Makefile.am: Include gtkwin32embed.h in EXTRA_DIST

View File

@ -1,3 +1,8 @@
2005-07-29 Claudio Saavedra <csaavedra@alumnos.utalca.cl>
* docs/reference/gtk/migrating-GtkAction.sgml: Declaring the
GtkActionEntry arrays static const. Fixes #301612.
2005-07-29 J. Ali Harlow <ali@juiblex.co.uk>
* gtk/Makefile.am: Include gtkwin32embed.h in EXTRA_DIST

View File

@ -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", "&lt;control&gt;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 }