gimp r28197 - in trunk: . libgimpwidgets
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r28197 - in trunk: . libgimpwidgets
- Date: Sun, 22 Mar 2009 19:32:58 +0000 (UTC)
Author: mitch
Date: Sun Mar 22 19:32:58 2009
New Revision: 28197
URL: http://svn.gnome.org/viewvc/gimp?rev=28197&view=rev
Log:
2009-03-22 Michael Natterer <mitch gimp org>
* libgimpwidgets/gimpquerybox.c (create_query_box): use
gtk_dialog_get_content_area() instead of dialog->vbox.
Modified:
trunk/ChangeLog
trunk/libgimpwidgets/gimpquerybox.c
Modified: trunk/libgimpwidgets/gimpquerybox.c
==============================================================================
--- trunk/libgimpwidgets/gimpquerybox.c (original)
+++ trunk/libgimpwidgets/gimpquerybox.c Sun Mar 22 19:32:58 2009
@@ -158,12 +158,14 @@
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 @@
}
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]