Commit abc31b2d authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

added const qualifier.

2006-02-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c: added const qualifier.
parent 08102c82
2006-02-06 Sven Neumann <sven@gimp.org>
* plug-ins/helpbrowser/dialog.c: added const qualifier.
2006-02-06 Sven Neumann <sven@gimp.org> 2006-02-06 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimppreview.c: connect-after to "realize" and * libgimpwidgets/gimppreview.c: connect-after to "realize" and
......
...@@ -459,35 +459,36 @@ browser_dialog_load (const gchar *uri, ...@@ -459,35 +459,36 @@ browser_dialog_load (const gchar *uri,
static GtkUIManager * static GtkUIManager *
ui_manager_new (GtkWidget *window) ui_manager_new (GtkWidget *window)
{ {
static GtkActionEntry actions[] = static const GtkActionEntry actions[] =
{ {
{ "back", GTK_STOCK_GO_BACK, { "back", GTK_STOCK_GO_BACK,
NULL, "<alt>Left", N_("Go back one page"), NULL, "<alt>Left", N_("Go back one page"),
G_CALLBACK (back_callback) }, G_CALLBACK (back_callback)
},
{ "forward", GTK_STOCK_GO_FORWARD, { "forward", GTK_STOCK_GO_FORWARD,
NULL, "<alt>Right", N_("Go forward one page"), NULL, "<alt>Right", N_("Go forward one page"),
G_CALLBACK (forward_callback) }, G_CALLBACK (forward_callback)
},
{ "index", GTK_STOCK_INDEX, { "index", GTK_STOCK_INDEX,
NULL, "<alt>Home", N_("Go to the index page"), NULL, "<alt>Home", N_("Go to the index page"),
G_CALLBACK (index_callback) }, G_CALLBACK (index_callback)
},
{ "zoom-in", GTK_STOCK_ZOOM_IN, { "zoom-in", GTK_STOCK_ZOOM_IN,
NULL, "<control>plus", NULL, NULL, "<control>plus", NULL,
G_CALLBACK (zoom_in_callback) }, G_CALLBACK (zoom_in_callback)
},
{ "zoom-out", GTK_STOCK_ZOOM_OUT, { "zoom-out", GTK_STOCK_ZOOM_OUT,
NULL, "<control>minus", NULL, NULL, "<control>minus", NULL,
G_CALLBACK (zoom_out_callback) }, G_CALLBACK (zoom_out_callback)
},
{ "close", GTK_STOCK_CLOSE, { "close", GTK_STOCK_CLOSE,
NULL, "<control>W", NULL, NULL, "<control>W", NULL,
G_CALLBACK (close_callback) }, G_CALLBACK (close_callback)
},
{ "quit", GTK_STOCK_QUIT, { "quit", GTK_STOCK_QUIT,
NULL, "<control>Q", NULL, NULL, "<control>Q", NULL,
G_CALLBACK (close_callback) }, G_CALLBACK (close_callback)
}
}; };
GtkUIManager *ui_manager = gtk_ui_manager_new (); GtkUIManager *ui_manager = gtk_ui_manager_new ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment