diff --git a/lib/gui/gmdialog.c b/lib/gui/gmdialog.c
index d34d4b5..4ef228c 100644
--- a/lib/gui/gmdialog.c
+++ b/lib/gui/gmdialog.c
@@ -417,7 +417,7 @@ gnomemeeting_dialog (GtkWindow *parent,
   
   g_signal_connect_swapped (dialog, "response",
                             G_CALLBACK (gtk_widget_destroy),
-                            GTK_OBJECT (dialog));
+                            dialog);
   
   /* Can be called from threads */
   gm_window_show (dialog);
diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp
index b064f4a..f7d5b7c 100644
--- a/src/gui/main_window.cpp
+++ b/src/gui/main_window.cpp
@@ -176,17 +176,17 @@ struct _EkigaMainWindowPrivate
   GtkWidget *audio_output_volume_frame;
   GtkWidget *input_signal;
   GtkWidget *output_signal;
-  GtkObject *adj_input_volume;
-  GtkObject *adj_output_volume;
+  GtkWidget *adj_input_volume;
+  GtkWidget *adj_output_volume;
   unsigned int levelmeter_timeout_id;
 
   /* Video Settings Window */
   GtkWidget *video_settings_window;
   GtkWidget *video_settings_frame;
-  GtkObject *adj_whiteness;
-  GtkObject *adj_brightness;
-  GtkObject *adj_colour;
-  GtkObject *adj_contrast;
+  GtkWidget *adj_whiteness;
+  GtkWidget *adj_brightness;
+  GtkWidget *adj_colour;
+  GtkWidget *adj_contrast;
 
   /* Misc Dialogs */
   GtkWidget *transfer_call_popup;
@@ -912,7 +912,7 @@ static bool on_handle_errors (std::string error,
 
   g_signal_connect_swapped (dialog, "response",
                             G_CALLBACK (gtk_widget_destroy),
-                            GTK_OBJECT (dialog));
+                            dialog);
 
   gtk_widget_show_all (dialog);
 
@@ -1672,7 +1672,7 @@ gm_mw_video_settings_window_new (EkigaMainWindow *mw)
   gtk_widget_set_sensitive (GTK_WIDGET (mw->priv->video_settings_frame), FALSE);
   
   /* That's an usual GtkWindow, connect it to the signals */
-  g_signal_connect_swapped (GTK_OBJECT (window), 
+  g_signal_connect_swapped (window, 
 			    "response", 
 			    G_CALLBACK (gm_window_hide),
 			    (gpointer) window);
