Sink reference of window->tooltips

This commit is contained in:
Yevgen Muntyan 2005-07-26 13:57:07 +00:00
parent 18dc1d564b
commit b9567efeb4
2 changed files with 22 additions and 18 deletions

View File

@ -24,7 +24,7 @@
</ignoreparts> </ignoreparts>
<projectdirectory>.</projectdirectory> <projectdirectory>.</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath> <absoluteprojectpath>false</absoluteprojectpath>
<description/> <description></description>
<secondaryLanguages> <secondaryLanguages>
<language>C</language> <language>C</language>
</secondaryLanguages> </secondaryLanguages>
@ -46,7 +46,7 @@
</run> </run>
<configurations> <configurations>
<debug> <debug>
<configargs>--enable-debug=full --enable-all-gcc-warnings=fatal --enable-developer-mode --disable-moo-module</configargs> <configargs>--enable-debug=full --enable-all-gcc-warnings=fatal --enable-developer-mode --disable-moo-module --without-python</configargs>
<builddir>build/debug</builddir> <builddir>build/debug</builddir>
<ccompiler>kdevgccoptions</ccompiler> <ccompiler>kdevgccoptions</ccompiler>
<cxxcompiler>kdevgppoptions</cxxcompiler> <cxxcompiler>kdevgppoptions</cxxcompiler>
@ -54,13 +54,13 @@
<cflags>-O0 -g3 -pg</cflags> <cflags>-O0 -g3 -pg</cflags>
<cxxflags>-O0 -g3 -pg</cxxflags> <cxxflags>-O0 -g3 -pg</cxxflags>
<envvars/> <envvars/>
<topsourcedir/> <topsourcedir></topsourcedir>
<cppflags/> <cppflags></cppflags>
<ldflags/> <ldflags></ldflags>
<ccompilerbinary/> <ccompilerbinary></ccompilerbinary>
<cxxcompilerbinary/> <cxxcompilerbinary></cxxcompilerbinary>
<f77compilerbinary/> <f77compilerbinary></f77compilerbinary>
<f77flags/> <f77flags></f77flags>
</debug> </debug>
<optimized> <optimized>
<configargs>--enable-all-gcc-warnings=fatal --enable-developer-mode</configargs> <configargs>--enable-all-gcc-warnings=fatal --enable-developer-mode</configargs>
@ -149,10 +149,10 @@
<general> <general>
<dbgshell>libtool</dbgshell> <dbgshell>libtool</dbgshell>
<programargs>--g-fatal-warnings</programargs> <programargs>--g-fatal-warnings</programargs>
<gdbpath/> <gdbpath></gdbpath>
<configGdbScript/> <configGdbScript></configGdbScript>
<runShellScript/> <runShellScript></runShellScript>
<runGdbScript/> <runGdbScript></runGdbScript>
<breakonloadinglibs>true</breakonloadinglibs> <breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty> <separatetty>false</separatetty>
<floatingtoolbar>true</floatingtoolbar> <floatingtoolbar>true</floatingtoolbar>
@ -217,16 +217,16 @@
</kdevdoctreeview> </kdevdoctreeview>
<kdevfilecreate> <kdevfilecreate>
<filetypes> <filetypes>
<type icon="source" ext="g" name="GAP source" create="template" > <type icon="source" ext="g" create="template" name="GAP source" >
<descr>A new empty GAP source file</descr> <descr>A new empty GAP source file</descr>
</type> </type>
<type icon="source_cpp" ext="cpp" name="C++ Source" create="template" > <type icon="source_cpp" ext="cpp" create="template" name="C++ Source" >
<descr>A new empty C++ file.</descr> <descr>A new empty C++ file.</descr>
</type> </type>
<type icon="source_h" ext="h" name="C/C++ Header" create="template" > <type icon="source_h" ext="h" create="template" name="C/C++ Header" >
<descr>A new empty header file for C/C++.</descr> <descr>A new empty header file for C/C++.</descr>
</type> </type>
<type icon="source_c" ext="c" name="C Source" create="template" > <type icon="source_c" ext="c" create="template" name="C Source" >
<descr>A new empty C file.</descr> <descr>A new empty C file.</descr>
</type> </type>
</filetypes> </filetypes>
@ -253,7 +253,7 @@
</codecompletion> </codecompletion>
<references/> <references/>
<creategettersetter> <creategettersetter>
<prefixGet/> <prefixGet></prefixGet>
<prefixSet>set</prefixSet> <prefixSet>set</prefixSet>
<prefixVariable>m_,_</prefixVariable> <prefixVariable>m_,_</prefixVariable>
<parameterName>theValue</parameterName> <parameterName>theValue</parameterName>

View File

@ -242,10 +242,14 @@ GObject *moo_window_constructor (GType type,
moo_ui_object_init (MOO_UI_OBJECT (object)); moo_ui_object_init (MOO_UI_OBJECT (object));
window = MOO_WINDOW (object); window = MOO_WINDOW (object);
window->accel_group = gtk_accel_group_new (); window->accel_group = gtk_accel_group_new ();
gtk_window_add_accel_group (GTK_WINDOW (window), gtk_window_add_accel_group (GTK_WINDOW (window),
window->accel_group); window->accel_group);
window->tooltips = gtk_tooltips_new (); window->tooltips = gtk_tooltips_new ();
g_object_ref (window->tooltips);
gtk_object_sink (GTK_OBJECT (window->tooltips));
vbox = gtk_vbox_new (FALSE, 0); vbox = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox); gtk_widget_show (vbox);