Commit 8f9d5942 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

make the dialog a "normal" window if it is created w/o an action area

2002-10-31  Sven Neumann  <sven@gimp.org>

	* app/gui/color-notebook.c: make the dialog a "normal" window if
	it is created w/o an action area (#97364).

	* plug-ins/Lighting/lighting_preview.c: removed use of deprecated
	GDK functions.
parent f676f1af
2002-10-31 Sven Neumann <sven@gimp.org>
* app/gui/color-notebook.c: make the dialog a "normal" window if
it is created w/o an action area (#97364).
* plug-ins/Lighting/lighting_preview.c: removed use of deprecated
GDK functions.
2002-10-31 Sven Neumann <sven@gimp.org> 2002-10-31 Sven Neumann <sven@gimp.org>
* plug-ins/common/gauss_iir.c * plug-ins/common/gauss_iir.c
......
...@@ -325,6 +325,9 @@ color_notebook_new_internal (GimpViewable *viewable, ...@@ -325,6 +325,9 @@ color_notebook_new_internal (GimpViewable *viewable,
NULL); NULL);
gtk_window_set_type_hint (GTK_WINDOW (cnp->shell),
GDK_WINDOW_TYPE_HINT_NORMAL);
gtk_dialog_set_has_separator (GTK_DIALOG (cnp->shell), FALSE); gtk_dialog_set_has_separator (GTK_DIALOG (cnp->shell), FALSE);
gtk_widget_hide (GTK_DIALOG (cnp->shell)->action_area); gtk_widget_hide (GTK_DIALOG (cnp->shell)->action_area);
} }
......
...@@ -325,6 +325,9 @@ color_notebook_new_internal (GimpViewable *viewable, ...@@ -325,6 +325,9 @@ color_notebook_new_internal (GimpViewable *viewable,
NULL); NULL);
gtk_window_set_type_hint (GTK_WINDOW (cnp->shell),
GDK_WINDOW_TYPE_HINT_NORMAL);
gtk_dialog_set_has_separator (GTK_DIALOG (cnp->shell), FALSE); gtk_dialog_set_has_separator (GTK_DIALOG (cnp->shell), FALSE);
gtk_widget_hide (GTK_DIALOG (cnp->shell)->action_area); gtk_widget_hide (GTK_DIALOG (cnp->shell)->action_area);
} }
......
...@@ -325,6 +325,9 @@ color_notebook_new_internal (GimpViewable *viewable, ...@@ -325,6 +325,9 @@ color_notebook_new_internal (GimpViewable *viewable,
NULL); NULL);
gtk_window_set_type_hint (GTK_WINDOW (cnp->shell),
GDK_WINDOW_TYPE_HINT_NORMAL);
gtk_dialog_set_has_separator (GTK_DIALOG (cnp->shell), FALSE); gtk_dialog_set_has_separator (GTK_DIALOG (cnp->shell), FALSE);
gtk_widget_hide (GTK_DIALOG (cnp->shell)->action_area); gtk_widget_hide (GTK_DIALOG (cnp->shell)->action_area);
} }
......
...@@ -335,7 +335,7 @@ draw_lights () ...@@ -335,7 +335,7 @@ draw_lights ()
gdk_draw_image (previewarea->window, gc, gdk_draw_image (previewarea->window, gc,
backbuf.image, 0, 0, backbuf.x, backbuf.image, 0, 0, backbuf.x,
backbuf.y, backbuf.w, backbuf.h); backbuf.y, backbuf.w, backbuf.h);
gdk_image_unref (backbuf.image); g_object_unref (backbuf.image);
backbuf.image = NULL; backbuf.image = NULL;
} }
...@@ -384,9 +384,9 @@ draw_lights () ...@@ -384,9 +384,9 @@ draw_lights ()
backbuf.h = (PREVIEW_HEIGHT - backbuf.y); backbuf.h = (PREVIEW_HEIGHT - backbuf.y);
backbuf.image = backbuf.image =
gdk_image_get (previewarea->window, backbuf.x, gdk_drawable_get_image (previewarea->window,
backbuf.y, backbuf.w, backbuf.x, backbuf.y,
backbuf.h); backbuf.w, backbuf.h);
} }
gck_gc_set_background (visinfo, gc, 0, 0, 0); gck_gc_set_background (visinfo, gc, 0, 0, 0);
...@@ -479,7 +479,7 @@ draw_preview_image (gint recompute) ...@@ -479,7 +479,7 @@ draw_preview_image (gint recompute)
* restore the wrong bitmap */ * restore the wrong bitmap */
if (backbuf.image != NULL) if (backbuf.image != NULL)
{ {
gdk_image_unref (backbuf.image); g_object_unref (backbuf.image);
backbuf.image = NULL; backbuf.image = NULL;
} }
......
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