mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 00:39:18 +00:00
Patches from Dekel; try to fix solaris build problems with gcc 2.95.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/lyx-1_1_5@871 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
91a3dc5607
commit
a3beb62f65
18
ChangeLog
18
ChangeLog
@ -1,3 +1,21 @@
|
|||||||
|
2000-07-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||||
|
|
||||||
|
* configure.in: use -isystem instead of -I for X headers. This
|
||||||
|
fixes a problem on solaris with a recent gcc.
|
||||||
|
|
||||||
|
2000-06-20 Dekel Tsur <dekel@math.tau.ac.il>
|
||||||
|
|
||||||
|
* src/lyx_gui.C (create_forms): Add "Reset" option to the language
|
||||||
|
combox in the character popup
|
||||||
|
|
||||||
|
* src/lyx_cb.C (UserFreeFont): Add argument to the method:
|
||||||
|
BufferParams const & params
|
||||||
|
|
||||||
|
2000-07-08 Dekel Tsur <dekel@math.tau.ac.il>
|
||||||
|
|
||||||
|
* src/WorkArea.C (request_clipboard_cb): Set clipboard_read to
|
||||||
|
true when clipboard is empty.
|
||||||
|
|
||||||
2000-07-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
2000-07-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||||
|
|
||||||
* configure.in: add check for strings.h header.
|
* configure.in: add check for strings.h header.
|
||||||
|
@ -126,6 +126,14 @@ AC_CHECK_LIB(pt,ptsname,X_EXTRA_LIBS="-lpt $X_EXTRA_LIBS")
|
|||||||
# The real thing.
|
# The real thing.
|
||||||
AC_PATH_XTRA
|
AC_PATH_XTRA
|
||||||
LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
|
LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
|
||||||
|
# Since solaris X headers use int as implicit return type and modern
|
||||||
|
# gcc's do not like that, let's use -isystem instead of -I.
|
||||||
|
# We should test for gcc version and see whether it supports -isystem,
|
||||||
|
# but since at least gcc 2.6.x supports it and it is still too old for
|
||||||
|
# us, it seems we are safe.
|
||||||
|
if test -n "$GXX" ; then
|
||||||
|
X_CFLAGS=`echo ${X_CFLAGS} | sed -e 's/-I/-isystem/'`
|
||||||
|
fi
|
||||||
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
||||||
|
|
||||||
## Check whether X is new enough to handle the input method stuff
|
## Check whether X is new enough to handle the input method stuff
|
||||||
|
@ -369,12 +369,11 @@ int request_clipboard_cb(FL_OBJECT * /*ob*/, long /*type*/,
|
|||||||
void const * data, long size)
|
void const * data, long size)
|
||||||
{
|
{
|
||||||
clipboard_selection.erase();
|
clipboard_selection.erase();
|
||||||
if (size == 0) return 0; // no selection
|
|
||||||
|
if (size > 0)
|
||||||
clipboard_selection.reserve(size);
|
clipboard_selection.reserve(size);
|
||||||
for (int i = 0; i < size; ++i) {
|
for (int i = 0; i < size; ++i)
|
||||||
clipboard_selection += static_cast<char const *>(data)[i];
|
clipboard_selection += static_cast<char const *>(data)[i];
|
||||||
}
|
|
||||||
clipboard_read = true;
|
clipboard_read = true;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ void changeDepth(BufferView * bv, int decInc)
|
|||||||
|
|
||||||
void Free(BufferView * bv)
|
void Free(BufferView * bv)
|
||||||
{
|
{
|
||||||
ToggleAndShow(bv, UserFreeFont());
|
ToggleAndShow(bv, UserFreeFont(bv->buffer()->params));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
20
src/lyx_cb.C
20
src/lyx_cb.C
@ -1976,7 +1976,7 @@ void MenuLayoutSave()
|
|||||||
|
|
||||||
// This is both GUI and LyXFont dependent. Don't know where to put it. (Asger)
|
// This is both GUI and LyXFont dependent. Don't know where to put it. (Asger)
|
||||||
// Well, it's mostly GUI dependent, so I guess it will stay here. (Asger)
|
// Well, it's mostly GUI dependent, so I guess it will stay here. (Asger)
|
||||||
LyXFont UserFreeFont()
|
LyXFont UserFreeFont(BufferParams const & params)
|
||||||
{
|
{
|
||||||
LyXFont font(LyXFont::ALL_IGNORE);
|
LyXFont font(LyXFont::ALL_IGNORE);
|
||||||
|
|
||||||
@ -2058,20 +2058,18 @@ LyXFont UserFreeFont()
|
|||||||
case 11: font.setColor(LColor::inherit); break;
|
case 11: font.setColor(LColor::inherit); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
string language = combo_language2->getline();
|
int choice = combo_language2->get();
|
||||||
Languages::iterator lit = languages.find(language);
|
if (choice == 1)
|
||||||
if (lit != languages.end())
|
font.setLanguage(ignore_language);
|
||||||
font.setLanguage(&(*lit).second);
|
else if (choice == 2)
|
||||||
else
|
font.setLanguage(params.language_info);
|
||||||
font.setLanguage(ignore_language);
|
else
|
||||||
|
font.setLanguage(&languages[combo_language2->getline()]);
|
||||||
|
|
||||||
return font;
|
return font;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* callbacks for form form_title */
|
/* callbacks for form form_title */
|
||||||
extern "C" void TimerCB(FL_OBJECT *, long)
|
extern "C" void TimerCB(FL_OBJECT *, long)
|
||||||
{
|
{
|
||||||
@ -2233,7 +2231,7 @@ extern "C" void CharacterApplyCB(FL_OBJECT *, long)
|
|||||||
// we set toggleall locally here, since it should be true for
|
// we set toggleall locally here, since it should be true for
|
||||||
// all other uses of ToggleAndShow() (JMarc)
|
// all other uses of ToggleAndShow() (JMarc)
|
||||||
toggleall = fl_get_button(fd_form_character->check_toggle_all);
|
toggleall = fl_get_button(fd_form_character->check_toggle_all);
|
||||||
ToggleAndShow(current_view, UserFreeFont());
|
ToggleAndShow(current_view, UserFreeFont(current_view->buffer()->params));
|
||||||
current_view->setState();
|
current_view->setState();
|
||||||
toggleall = true;
|
toggleall = true;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
#ifndef LYX_CB_H
|
#ifndef LYX_CB_H
|
||||||
#define LYX_CB_H
|
#define LYX_CB_H
|
||||||
|
|
||||||
|
class BufferParams;
|
||||||
|
|
||||||
///
|
///
|
||||||
extern bool quitting;
|
extern bool quitting;
|
||||||
extern bool toggleall;
|
extern bool toggleall;
|
||||||
@ -9,7 +11,7 @@ extern bool toggleall;
|
|||||||
// When still false after reading lyxrc, warn user
|
// When still false after reading lyxrc, warn user
|
||||||
//about failing \bind_file command. RVDK_PATCH_5
|
//about failing \bind_file command. RVDK_PATCH_5
|
||||||
extern bool BindFileSet;
|
extern bool BindFileSet;
|
||||||
extern LyXFont UserFreeFont();
|
extern LyXFont UserFreeFont(BufferParams const & params);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -397,7 +397,8 @@ void LyXGUI::create_forms()
|
|||||||
|
|
||||||
// "default" is not part of the languages array any more.
|
// "default" is not part of the languages array any more.
|
||||||
combo_language->addto("default");
|
combo_language->addto("default");
|
||||||
combo_language2->addto("No change");
|
combo_language2->addto(_("No change"));
|
||||||
|
combo_language2->addto(_("Reset"));
|
||||||
for(Languages::const_iterator cit = languages.begin();
|
for(Languages::const_iterator cit = languages.begin();
|
||||||
cit != languages.end(); ++cit) {
|
cit != languages.end(); ++cit) {
|
||||||
combo_language->addto((*cit).second.lang.c_str());
|
combo_language->addto((*cit).second.lang.c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user