Commit 377c3760 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

use gtk_dialog_get_content_area() instead of dialog->vbox.

2009-03-22  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpquerybox.c (create_query_box): use
	gtk_dialog_get_content_area() instead of dialog->vbox.


svn path=/trunk/; revision=28197
parent bcc31e20
2009-03-22 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpquerybox.c (create_query_box): use
gtk_dialog_get_content_area() instead of dialog->vbox.
2009-03-22 Michael Natterer <mitch@gimp.org>
* app/widgets/gimptagentry.c: use "list" as variable name for
......
......@@ -158,12 +158,14 @@ create_query_box (const gchar *title,
if (stock_id)
{
GtkWidget *content_area;
GtkWidget *image;
content_area = gtk_dialog_get_content_area (GTK_DIALOG (query_box->qbox));
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (query_box->qbox)->vbox),
hbox);
gtk_container_add (GTK_CONTAINER (content_area), hbox);
gtk_widget_show (hbox);
image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_DIALOG);
......@@ -183,9 +185,12 @@ create_query_box (const gchar *title,
}
else
{
GtkWidget *content_area;
content_area = gtk_dialog_get_content_area (GTK_DIALOG (query_box->qbox));
gtk_container_set_border_width (GTK_CONTAINER (query_box->vbox), 12);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (query_box->qbox)->vbox),
query_box->vbox);
gtk_container_add (GTK_CONTAINER (content_area), query_box->vbox);
}
gtk_widget_show (query_box->vbox);
......
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