Commit 4a4a1096 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

added foreign entries for the keyboard shortcut and the controller action

2004-10-29  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/dialogs.c (toplevel_entries): added foreign entries
	for the keyboard shortcut and the controller action dialogs.

	* app/dialogs/preferences-dialog.c
	* app/widgets/gimpcontrollereditor.c: register the dialogs with
	the "toplevel" dialog factory so they remember their size and
	position.
parent c20ddeba
2004-10-29 Michael Natterer <mitch@gimp.org>
* app/dialogs/dialogs.c (toplevel_entries): added foreign entries
for the keyboard shortcut and the controller action dialogs.
* app/dialogs/preferences-dialog.c
* app/widgets/gimpcontrollereditor.c: register the dialogs with
the "toplevel" dialog factory so they remember their size and
position.
2004-10-29 Michael Natterer <mitch@gimp.org>
 
* plug-ins/dbbrowser/gimpprocbrowser.c
......
......@@ -76,6 +76,9 @@ static const GimpDialogFactoryEntry toplevel_entries[] =
FOREIGN ("gimp-palette-editor-color-dialog", FALSE),
FOREIGN ("gimp-colormap-editor-color-dialog", FALSE),
FOREIGN ("gimp-keyboard-shortcuts-dialog", TRUE),
FOREIGN ("gimp-controller-action-dialog", TRUE),
/* ordinary toplevels */
TOPLEVEL ("gimp-image-new-dialog",
dialogs_image_new_new, FALSE, TRUE, FALSE),
......
......@@ -508,6 +508,9 @@ prefs_keyboard_shortcuts_dialog (GtkWidget *widget,
g_object_set_data (G_OBJECT (gtk_widget_get_toplevel (widget)),
"gimp-keyboard-shortcuts-dialog", dialog);
gimp_dialog_factory_add_foreign (gimp_dialog_factory_from_name ("toplevel"),
"gimp-keyboard-shortcuts-dialog", dialog);
g_signal_connect (dialog, "response",
G_CALLBACK (gtk_widget_destroy),
NULL);
......
......@@ -31,6 +31,7 @@
#include "gimpactionview.h"
#include "gimpcontrollereditor.h"
#include "gimpcontrollerinfo.h"
#include "gimpdialogfactory.h"
#include "gimphelp-ids.h"
#include "gimppropwidgets.h"
#include "gimpuimanager.h"
......@@ -523,6 +524,10 @@ gimp_controller_editor_edit_clicked (GtkWidget *button,
g_object_add_weak_pointer (G_OBJECT (editor->edit_dialog),
(gpointer) &editor->edit_dialog);
gimp_dialog_factory_add_foreign (gimp_dialog_factory_from_name ("toplevel"),
"gimp-controller-action-dialog",
editor->edit_dialog);
g_signal_connect (editor->edit_dialog, "response",
G_CALLBACK (gimp_controller_editor_edit_response),
editor);
......
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