[gnome-utils] Fix some more issues when compiling with -DGSEAL_ENABLE.



commit f444ef947f352ef164ee469bcb12a3dcac5f6e37
Author: Andre Klapper <a9016009 gmx de>
Date:   Mon May 3 21:32:04 2010 +0200

    Fix some more issues when compiling with -DGSEAL_ENABLE.

 gnome-dictionary/src/gdict-source-dialog.c |    4 ++--
 gnome-dictionary/src/gdict-window.c        |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gnome-dictionary/src/gdict-source-dialog.c b/gnome-dictionary/src/gdict-source-dialog.c
index 9cef95c..12172f2 100644
--- a/gnome-dictionary/src/gdict-source-dialog.c
+++ b/gnome-dictionary/src/gdict-source-dialog.c
@@ -597,7 +597,7 @@ gdict_source_dialog_constructor (GType                  type,
   dialog = GDICT_SOURCE_DIALOG (object);
 
   gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
-  gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->vbox), 2);
+  gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), 2);
   
   gtk_widget_push_composite_child ();
 
@@ -613,7 +613,7 @@ gdict_source_dialog_constructor (GType                  type,
   }
   
   /* the main widget */
-  gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox),
+  gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
                      GTK_WIDGET (gtk_builder_get_object (dialog->builder, "source_root")));
 
   /* the transport combo changes the UI by changing the visible widgets
diff --git a/gnome-dictionary/src/gdict-window.c b/gnome-dictionary/src/gdict-window.c
index e4beade..2d63ad6 100644
--- a/gnome-dictionary/src/gdict-window.c
+++ b/gnome-dictionary/src/gdict-window.c
@@ -325,7 +325,7 @@ gdict_window_lookup_start_cb (GdictContext *context,
   window->last_definition = 0;
   window->current_definition = 0;
 
-  gdk_window_set_cursor (GTK_WIDGET (window)->window, window->busy_cursor);
+  gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (window)), window->busy_cursor);
 
   g_free (message);
 }
@@ -381,7 +381,7 @@ gdict_window_lookup_end_cb (GdictContext *context,
                           -1);
     }
 
-  gdk_window_set_cursor (GTK_WIDGET (window)->window, NULL);
+  gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (window)), NULL);
   g_free (message);
 
   if (count == 0)
@@ -400,7 +400,7 @@ gdict_window_error_cb (GdictContext *context,
 {
   gint count;
   
-  gdk_window_set_cursor (GTK_WIDGET (window)->window, NULL);
+  gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (window)), NULL);
   
   if (window->status && window->statusbar_visible)
     gtk_statusbar_push (GTK_STATUSBAR (window->status), 0,
@@ -1638,7 +1638,7 @@ set_window_default_size (GdictWindow *window)
 
       /* ... but make it no larger than the monitor */
       screen = gtk_widget_get_screen (widget);
-      monitor_num = gdk_screen_get_monitor_at_window (screen, widget->window);
+      monitor_num = gdk_screen_get_monitor_at_window (screen, gtk_widget_get_window (widget));
 
       gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
       width = MIN (width, monitor.width * 3 / 4);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]