Reference buffer
parent
890a3292b3
commit
f9cfb720c5
|
@ -21,13 +21,11 @@ AC_DEFUN([_MOO_CHECK_VERSION],[
|
|||
for i in 2 4 6 8 10 12 14; do
|
||||
if test $[]$1[]_MINOR_VERSION -ge $i; then
|
||||
eval moo_ver_2_[]$i=yes
|
||||
else
|
||||
eval moo_ver_2_[]$i=no
|
||||
fi
|
||||
done
|
||||
|
||||
#if test $[]$1[]_MINOR_VERSION -ge 9; then
|
||||
# eval moo_ver_2_10=yes
|
||||
#fi
|
||||
|
||||
AC_MSG_RESULT($[]$1[]_MAJOR_VERSION.$[]$1[]_MINOR_VERSION.$[]$1[]_MICRO_VERSION)
|
||||
fi
|
||||
|
||||
|
|
|
@ -125,13 +125,17 @@ $(mooedit)/mooeditsavemultiple-glade.h: $(mooedit_srcdir)/glade/mooeditsavemult.
|
|||
sh $(XML2H) MOO_EDIT_SAVE_MULTIPLE_GLADE_UI $(mooedit_srcdir)/glade/mooeditsavemult.glade \
|
||||
> $(mooedit)/mooeditsavemultiple-glade.h
|
||||
|
||||
if GTK_2_10
|
||||
mooedit_sources += $(mooedit_gtk_2_10_sources)
|
||||
else
|
||||
mooedit_extra_dist = $(mooedit_gtk_2_10_sources)
|
||||
endif
|
||||
|
||||
moo_extra_dist += $(mooedit_extra_dist)
|
||||
|
||||
if MOO_BUILD_EDIT
|
||||
moo_sources += $(mooedit_sources)
|
||||
moo_built_sources += $(mooedit_built_sources)
|
||||
|
||||
if GTK_2_10
|
||||
moo_sources += $(mooedit_gtk_2_10_sources)
|
||||
else
|
||||
moo_extra_dist += $(mooedit_gtk_2_10_sources)
|
||||
endif
|
||||
moo_extra_dist += $(mooedit_sources)
|
||||
endif
|
||||
|
|
|
@ -146,6 +146,8 @@ moo_print_operation_set_doc (MooPrintOperation *print,
|
|||
|
||||
if (print->doc)
|
||||
g_object_unref (print->doc);
|
||||
if (print->buffer)
|
||||
g_object_unref (print->buffer);
|
||||
|
||||
print->doc = doc;
|
||||
|
||||
|
@ -153,6 +155,7 @@ moo_print_operation_set_doc (MooPrintOperation *print,
|
|||
{
|
||||
g_object_ref (print->doc);
|
||||
print->buffer = gtk_text_view_get_buffer (print->doc);
|
||||
g_object_ref (print->buffer);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue