diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-08-21 20:39:03 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-08-26 15:52:09 +0800 |
commit | 5b06953566c13a940f69933868541e4a43200e90 (patch) | |
tree | 404f48585419284b0439ab845791d41c162cfb08 | |
parent | cd8ff6a009f3e9cb41cc6b13f6d89e2e81dcb1b7 (diff) | |
download | gsoc2013-empathy-5b06953566c13a940f69933868541e4a43200e90.tar gsoc2013-empathy-5b06953566c13a940f69933868541e4a43200e90.tar.gz gsoc2013-empathy-5b06953566c13a940f69933868541e4a43200e90.tar.bz2 gsoc2013-empathy-5b06953566c13a940f69933868541e4a43200e90.tar.lz gsoc2013-empathy-5b06953566c13a940f69933868541e4a43200e90.tar.xz gsoc2013-empathy-5b06953566c13a940f69933868541e4a43200e90.tar.zst gsoc2013-empathy-5b06953566c13a940f69933868541e4a43200e90.zip |
Make EmpathyDebugDialog be a GtkWindow subclass rather than a GtkDialog.
This is because:
1) There are no actions, so it's not a dialog
2) We want to hide the seperator for the action area
3) To be able to maximize the window
-rw-r--r-- | src/empathy-debug-dialog.c | 8 | ||||
-rw-r--r-- | src/empathy-debug-dialog.h | 4 |
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; |