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.
This commit is contained in:

committed by
Sven Neumann

parent
caf18b2b80
commit
3aa703e432
@ -1,3 +1,9 @@
|
||||
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__ */
|
||||
|
Reference in New Issue
Block a user