app/tools/gimpcolorpickertool.c don't use gtk_window_present() to raise
2004-04-16 Sven Neumann <sven@gimp.org> * app/tools/gimpcolorpickertool.c * app/tools/gimpmeasuretool.c: don't use gtk_window_present() to raise the tool dialog since it also moves the focus away from the image window. Fixes the problem described in bug #139349.
This commit is contained in:
committed by
Sven Neumann
parent
77ae74798d
commit
ed4e23096b
@ -1,3 +1,10 @@
|
||||
2004-04-16 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/tools/gimpcolorpickertool.c
|
||||
* app/tools/gimpmeasuretool.c: don't use gtk_window_present() to
|
||||
raise the tool dialog since it also moves the focus away from the
|
||||
image window. Fixes the problem described in bug #139349.
|
||||
|
||||
2004-04-16 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/tools/gimpcroptool.c: some code cleanup that I forgot to do
|
||||
|
||||
@ -370,6 +370,7 @@ gimp_color_picker_tool_info_response (GtkWidget *widget,
|
||||
GimpColorPickerTool *picker_tool)
|
||||
{
|
||||
gtk_widget_destroy (picker_tool->dialog);
|
||||
|
||||
picker_tool->dialog = NULL;
|
||||
picker_tool->color_area = NULL;
|
||||
picker_tool->color_frame1 = NULL;
|
||||
@ -389,5 +390,8 @@ gimp_color_picker_tool_info_update (GimpColorPickerTool *picker_tool,
|
||||
gimp_color_frame_set_color (GIMP_COLOR_FRAME (picker_tool->color_frame2),
|
||||
sample_type, color, color_index);
|
||||
|
||||
gtk_window_present (GTK_WINDOW (picker_tool->dialog));
|
||||
if (GTK_WIDGET_VISIBLE (picker_tool->dialog))
|
||||
gdk_window_show (picker_tool->dialog->window);
|
||||
else
|
||||
gtk_widget_show (picker_tool->dialog);
|
||||
}
|
||||
|
||||
@ -820,7 +820,10 @@ gimp_measure_tool_dialog_update (GimpMeasureTool *mtool,
|
||||
gtk_label_set_text (GTK_LABEL (mtool->unit_label[1]), " ");
|
||||
}
|
||||
|
||||
gtk_window_present (GTK_WINDOW (mtool->dialog));
|
||||
if (GTK_WIDGET_VISIBLE (mtool->dialog))
|
||||
gdk_window_show (mtool->dialog->window);
|
||||
else
|
||||
gtk_widget_show (mtool->dialog);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user