[gimp] Issue #3398 - colour map picker isn't positioned on the correct...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Issue #3398 - colour map picker isn't positioned on the correct...
- Date: Mon, 27 May 2019 12:56:17 +0000 (UTC)
commit 765abcd316279c7f27420a05a7a8e3be8fa17215
Author: Michael Natterer <mitch gimp org>
Date: Mon May 27 14:53:55 2019 +0200
Issue #3398 - colour map picker isn't positioned on the correct...
...-last positioned- monitor
Use gimp_dialog_factory_position_dialog() in GimpColormapEditor and
GimpPaletteEditor so the color dialogs appear where they were before.
app/widgets/gimpcolormapeditor.c | 6 ++++++
app/widgets/gimppaletteeditor.c | 6 ++++++
2 files changed, 12 insertions(+)
---
diff --git a/app/widgets/gimpcolormapeditor.c b/app/widgets/gimpcolormapeditor.c
index 52d1d6dfd0..d7480f5d21 100644
--- a/app/widgets/gimpcolormapeditor.c
+++ b/app/widgets/gimpcolormapeditor.c
@@ -264,6 +264,12 @@ gimp_colormap_editor_edit_color (GimpColormapEditor *editor)
g_object_set (editor->color_dialog, "description", desc, NULL);
gimp_color_dialog_set_color (GIMP_COLOR_DIALOG (editor->color_dialog),
&color);
+
+ if (! gtk_widget_get_visible (editor->color_dialog))
+ gimp_dialog_factory_position_dialog (gimp_dialog_factory_get_singleton (),
+ "gimp-colormap-editor-color-dialog",
+ editor->color_dialog,
+ gimp_widget_get_monitor (GTK_WIDGET (editor)));
}
g_free (desc);
diff --git a/app/widgets/gimppaletteeditor.c b/app/widgets/gimppaletteeditor.c
index 9e9b67688c..8bf36675a3 100644
--- a/app/widgets/gimppaletteeditor.c
+++ b/app/widgets/gimppaletteeditor.c
@@ -506,6 +506,12 @@ gimp_palette_editor_edit_color (GimpPaletteEditor *editor)
data_editor->context);
gimp_color_dialog_set_color (GIMP_COLOR_DIALOG (editor->color_dialog),
&editor->color->color);
+
+ if (! gtk_widget_get_visible (editor->color_dialog))
+ gimp_dialog_factory_position_dialog (gimp_dialog_factory_get_singleton (),
+ "gimp-palette-editor-color-dialog",
+ editor->color_dialog,
+ gimp_widget_get_monitor (GTK_WIDGET (editor)));
}
gtk_window_present (GTK_WINDOW (editor->color_dialog));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]