[gimp] fix build of devel-docs tools with GSEAL_ENABLE
- From: Sven Neumann <neo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] fix build of devel-docs tools with GSEAL_ENABLE
- Date: Sat, 17 Oct 2009 22:56:16 +0000 (UTC)
commit 2fb9054aab302b9257ba251b3f9bf43a1f41fac1
Author: Sven Neumann <sven gimp org>
Date: Sun Oct 18 00:55:03 2009 +0200
fix build of devel-docs tools with GSEAL_ENABLE
devel-docs/tools/shooter.c | 2 +-
devel-docs/tools/widgets.c | 9 ++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/devel-docs/tools/shooter.c b/devel-docs/tools/shooter.c
index 851733f..3eb6c93 100644
--- a/devel-docs/tools/shooter.c
+++ b/devel-docs/tools/shooter.c
@@ -266,7 +266,7 @@ main (int argc, char **argv)
gtk_widget_show (info->window);
- window = info->window->window;
+ window = gtk_widget_get_window (info->window);
gtk_widget_show_now (info->window);
gtk_widget_queue_draw (info->window);
diff --git a/devel-docs/tools/widgets.c b/devel-docs/tools/widgets.c
index 010e586..7c42cb4 100644
--- a/devel-docs/tools/widgets.c
+++ b/devel-docs/tools/widgets.c
@@ -38,8 +38,9 @@ adjust_size_callback (WidgetInfo *info)
guint target_width = 0;
guint target_height = 0;
- toplevel = GDK_WINDOW_XWINDOW (info->window->window);
- XGetGeometry (GDK_WINDOW_XDISPLAY (info->window->window), toplevel,
+ toplevel = GDK_WINDOW_XWINDOW (gtk_widget_get_window (info->window));
+ XGetGeometry (GDK_WINDOW_XDISPLAY (gtk_widget_get_window (info->window)),
+ toplevel,
&root, &tx, &ty, &twidth, &theight, &tborder_width, &tdepth);
switch (info->size)
@@ -382,6 +383,7 @@ create_dialog (void)
{
WidgetInfo *info;
GtkWidget *widget;
+ GtkWidget *content;
GtkWidget *label;
widget = gimp_dialog_new ("Gimp Dialog",
@@ -393,7 +395,8 @@ create_dialog (void)
NULL);
label = gtk_label_new ("Gimp Dialog");
- gtk_container_add (GTK_CONTAINER (GTK_DIALOG (widget)->vbox), label);
+ content = gtk_dialog_get_content_area (GTK_DIALOG (widget));
+ gtk_container_add (GTK_CONTAINER (content), label);
gtk_widget_show (label);
info = new_widget_info ("gimp-dialog", widget, MEDIUM);
info->include_decorations = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]