[gnome-system-tools] Use GtkDialog:response signal instead of ->response class member
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Use GtkDialog:response signal instead of ->response class member
- Date: Sat, 12 Feb 2011 16:54:25 +0000 (UTC)
commit 9ffbce9fafe228d7b37f2926b15d1be79fd2ebd5
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sat Feb 12 17:53:01 2011 +0100
Use GtkDialog:response signal instead of ->response class member
This fixes closing GstDialogs and launching the help.
src/common/gst-dialog.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/common/gst-dialog.c b/src/common/gst-dialog.c
index 8a95558..cd615bf 100644
--- a/src/common/gst-dialog.c
+++ b/src/common/gst-dialog.c
@@ -114,14 +114,12 @@ static void
gst_dialog_class_init (GstDialogClass *class)
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
- GtkDialogClass *dialog_class = GTK_DIALOG_CLASS (class);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
object_class->set_property = gst_dialog_set_property;
object_class->constructor = gst_dialog_constructor;
object_class->finalize = gst_dialog_finalize;
- dialog_class->response = gst_dialog_response;
widget_class->delete_event = gst_dialog_delete_event;
widget_class->realize = gst_dialog_realize;
@@ -204,6 +202,8 @@ gst_dialog_constructor (GType type,
dialog = GST_DIALOG (object);
priv = GST_DIALOG_GET_PRIVATE (dialog);
+ g_signal_connect (object, "response", G_CALLBACK(gst_dialog_response), NULL);
+
if (priv->tool && priv->widget_name) {
priv->builder = gtk_builder_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]