Commit 3aa703e4 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/dialogs/dialogs-constructors.c include a check button for the

2005-10-06  Sven Neumann  <sven@gimp.org>

	* app/dialogs/dialogs-constructors.c
	* app/dialogs/keyboard-shortcuts-dialog.[ch]: include a check
	button for the "save-accels" gimprc property.
parent caf18b2b
2005-10-06 Sven Neumann <sven@gimp.org>
* app/dialogs/dialogs-constructors.c
* app/dialogs/keyboard-shortcuts-dialog.[ch]: include a check
button for the "save-accels" gimprc property.
2005-10-06 Sven Neumann <sven@gimp.org>
* plug-ins/help/domain.c: try to improve the error message that is
......
......@@ -140,7 +140,7 @@ dialogs_keyboard_shortcuts_get (GimpDialogFactory *factory,
GimpContext *context,
gint preview_size)
{
return keyboard_shortcuts_dialog_new ();
return keyboard_shortcuts_dialog_new (context->gimp);
}
GtkWidget *
......
......@@ -24,6 +24,8 @@
#include "dialogs-types.h"
#include "core/gimp.h"
#include "widgets/gimpactionview.h"
#include "widgets/gimphelp-ids.h"
#include "widgets/gimpuimanager.h"
......@@ -34,7 +36,7 @@
GtkWidget *
keyboard_shortcuts_dialog_new (void)
keyboard_shortcuts_dialog_new (Gimp *gimp)
{
GtkWidget *dialog;
GtkWidget *vbox;
......@@ -43,6 +45,9 @@ keyboard_shortcuts_dialog_new (void)
GtkWidget *view;
GtkWidget *image;
GtkWidget *label;
GtkWidget *button;
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
dialog = gimp_dialog_new (_("Configure Keyboard Shortcuts"),
"gimp-keyboard-shortcuts-dialog",
......@@ -100,5 +105,10 @@ keyboard_shortcuts_dialog_new (void)
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
button = gimp_prop_check_button_new (G_OBJECT (gimp->config), "save-accels",
_("_Save keyboard shortcuts on exit"));
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_widget_show (button);
return dialog;
}
......@@ -20,7 +20,7 @@
#define __KEYBOARD_SHORTCUTS_DIALOG_H__
GtkWidget * keyboard_shortcuts_dialog_new (void);
GtkWidget * keyboard_shortcuts_dialog_new (Gimp *gimp);
#endif /* __KEYBOARD_SHORTCUTS_DIALOG_H__ */
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