Index: src/text/fmt/gtk2 =================================================================== --- src/text/fmt/gtk2 (revision 0) +++ src/text/fmt/gtk2 (revision 0) @@ -0,0 +1 @@ +link gtk \ No newline at end of file Property changes on: src/text/fmt/gtk2 ___________________________________________________________________ Added: svn:special + * Index: plugins/ots/xp/AbiOts.cpp =================================================================== --- plugins/ots/xp/AbiOts.cpp (revision 30487) +++ plugins/ots/xp/AbiOts.cpp (working copy) @@ -47,7 +47,7 @@ #include -#ifdef TOOLKIT_GTK +#ifdef TOOLKIT_GTK_ALL #include #include "xap_UnixApp.h" #include "xap_UnixDialogHelper.h" @@ -55,12 +55,16 @@ static const char* Ots_MenuLabel = "&Summarize"; static const char* Ots_MenuTooltip = "Summarize your document or selected text"; -#ifdef TOOLKIT_GTK +#ifdef TOOLKIT_GTK_ALL static int getSummaryPercent(void) { - std::string ui_path = static_cast(XAP_App::getApp())->getAbiSuiteAppUIDir() + "/ots.xml"; - + std::string ui_path = static_cast(XAP_App::getApp())->getAbiSuiteAppUIDir() +#if defined(TOOLKIT_GTK) + + "/ots.xml"; +#elif defined(TOOLKIT_GTK2) + + "/ots_gtk2.xml"; +#endif // load the dialog from the UI file GtkBuilder* builder = gtk_builder_new(); gtk_builder_add_from_file(builder, ui_path.c_str(), NULL); @@ -197,7 +201,7 @@ EV_Menu_Action* myAction = new EV_Menu_Action(newID, // id that the layout said we could use 0, // no, we don't have a sub menu. -#ifdef TOOLKIT_GTK +#ifdef TOOLKIT_GTK_ALL 1, // yes, we raise a dialog. #else 0, // no dialog Index: plugins/ots/xp/Makefile.am =================================================================== --- plugins/ots/xp/Makefile.am (revision 30487) +++ plugins/ots/xp/Makefile.am (working copy) @@ -10,8 +10,13 @@ AbiOts.cpp uidir=$(ABIWORD_UIDIR) +if TOOLKIT_GTK2 ui_DATA = \ + ots_gtk2.xml +else +ui_DATA = \ ots.xml +endif EXTRA_DIST = \ $(ui_DATA) Index: plugins/ots/xp/ots_gtk2.xml =================================================================== --- plugins/ots/xp/ots_gtk2.xml (revision 0) +++ plugins/ots/xp/ots_gtk2.xml (revision 0) @@ -0,0 +1,138 @@ + + + + + 100 + 1 + 10 + 20 + 10 + 5 + + + 6 + True + Summary Percent + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + False + True + + + True + False + 0 + + + True + GTK_BUTTONBOX_END + + + True + True + True + gtk-close + True + GTK_RELIEF_NORMAL + + + + + 0 + False + True + GTK_PACK_END + + + + + 6 + True + False + 0 + + + True + <b>Summary Percent</b> + False + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + True + False + 0 + + + True + + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + True + True + 5 + 0 + True + GTK_UPDATE_ALWAYS + False + False + adjustment1 + + + 0 + True + True + + + + + 6 + True + False + + + + + 6 + False + False + + + + + + closeBtn + + + Index: plugins/gdict/unix/GdictAbiPlugin.cpp =================================================================== --- plugins/gdict/unix/GdictAbiPlugin.cpp (revision 30487) +++ plugins/gdict/unix/GdictAbiPlugin.cpp (working copy) @@ -154,7 +154,11 @@ close = GTK_WIDGET (g_list_last (GNOME_DIALOG (gdict_dlg)->buttons)->data); vbox = GNOME_DIALOG(gdict_dlg)->vbox; +#if GTK_CHECK_VERSION(2,15,0) hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, GNOME_PAD_SMALL); +#else + hbox = gtk_hbox_new (FALSE, GNOME_PAD_SMALL); +#endif gtk_container_set_border_width (GTK_CONTAINER (hbox), GNOME_PAD_SMALL); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); Index: plugins/gdict/Makefile.am =================================================================== --- plugins/gdict/Makefile.am (revision 30487) +++ plugins/gdict/Makefile.am (working copy) @@ -1,5 +1,5 @@ -if TOOLKIT_GTK +if TOOLKIT_GTK_ALL SUBDIRS = unix