aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-debug-dialog.c8
-rw-r--r--src/empathy-debug-dialog.h4
2 files changed, 7 insertions, 5 deletions
diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c
index 9d047bab1..caf57de4d 100644
--- a/src/empathy-debug-dialog.c
+++ b/src/empathy-debug-dialog.c
@@ -39,7 +39,7 @@
#include "empathy-debug-dialog.h"
G_DEFINE_TYPE (EmpathyDebugDialog, empathy_debug_dialog,
- GTK_TYPE_DIALOG)
+ GTK_TYPE_WINDOW)
enum
{
@@ -212,7 +212,7 @@ debug_dialog_set_toolbar_sensitivity (EmpathyDebugDialog *debug_dialog,
gboolean sensitive)
{
EmpathyDebugDialogPriv *priv = GET_PRIV (debug_dialog);
- GtkWidget *vbox = gtk_dialog_get_content_area (GTK_DIALOG (debug_dialog));
+ GtkWidget *vbox = gtk_bin_get_child (GTK_BIN (debug_dialog));
gtk_widget_set_sensitive (GTK_WIDGET (priv->save_button), sensitive);
gtk_widget_set_sensitive (GTK_WIDGET (priv->copy_button), sensitive);
@@ -948,7 +948,9 @@ debug_dialog_constructor (GType type,
gtk_window_set_title (GTK_WINDOW (object), _("Debug Window"));
gtk_window_set_default_size (GTK_WINDOW (object), 800, 400);
- vbox = gtk_dialog_get_content_area (GTK_DIALOG (object));
+ vbox = gtk_vbox_new (FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (object), vbox);
+ gtk_widget_show (vbox);
toolbar = gtk_toolbar_new ();
gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_BOTH_HORIZ);
diff --git a/src/empathy-debug-dialog.h b/src/empathy-debug-dialog.h
index 5d98fa0a4..903fa5361 100644
--- a/src/empathy-debug-dialog.h
+++ b/src/empathy-debug-dialog.h
@@ -45,13 +45,13 @@ typedef struct _EmpathyDebugDialogClass EmpathyDebugDialogClass;
struct _EmpathyDebugDialog
{
- GtkDialog parent;
+ GtkWindow parent;
gpointer priv;
};
struct _EmpathyDebugDialogClass
{
- GtkDialogClass parent_class;
+ GtkWindowClass parent_class;
};
GType empathy_debug_dialog_get_type (void) G_GNUC_CONST;