From b9567efeb4d3186b7c5608f4e8b710c8980d6f34 Mon Sep 17 00:00:00 2001
From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com>
Date: Tue, 26 Jul 2005 13:57:07 +0000
Subject: [PATCH] Sink reference of window->tooltips
---
moo.kdevelop | 36 ++++++++++++++++++------------------
moo/mooui/moowindow.c | 4 ++++
2 files changed, 22 insertions(+), 18 deletions(-)
diff --git a/moo.kdevelop b/moo.kdevelop
index 90fe2c60..386d01a9 100644
--- a/moo.kdevelop
+++ b/moo.kdevelop
@@ -24,7 +24,7 @@
.
false
-
+
C
@@ -46,7 +46,7 @@
- --enable-debug=full --enable-all-gcc-warnings=fatal --enable-developer-mode --disable-moo-module
+ --enable-debug=full --enable-all-gcc-warnings=fatal --enable-developer-mode --disable-moo-module --without-python
build/debug
kdevgccoptions
kdevgppoptions
@@ -54,13 +54,13 @@
-O0 -g3 -pg
-O0 -g3 -pg
-
-
-
-
-
-
-
+
+
+
+
+
+
+
--enable-all-gcc-warnings=fatal --enable-developer-mode
@@ -149,10 +149,10 @@
libtool
--g-fatal-warnings
-
-
-
-
+
+
+
+
true
false
true
@@ -217,16 +217,16 @@
-
+
A new empty GAP source file
-
+
A new empty C++ file.
-
+
A new empty header file for C/C++.
-
+
A new empty C file.
@@ -253,7 +253,7 @@
-
+
set
m_,_
theValue
diff --git a/moo/mooui/moowindow.c b/moo/mooui/moowindow.c
index b61077d7..7187162c 100644
--- a/moo/mooui/moowindow.c
+++ b/moo/mooui/moowindow.c
@@ -242,10 +242,14 @@ GObject *moo_window_constructor (GType type,
moo_ui_object_init (MOO_UI_OBJECT (object));
window = MOO_WINDOW (object);
+
window->accel_group = gtk_accel_group_new ();
gtk_window_add_accel_group (GTK_WINDOW (window),
window->accel_group);
+
window->tooltips = gtk_tooltips_new ();
+ g_object_ref (window->tooltips);
+ gtk_object_sink (GTK_OBJECT (window->tooltips));
vbox = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox);