lists.geany.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
List overview
Plugins-Commits
March 2013
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
plugins-commits@lists.geany.org
1 participants
77 discussions
Start a n
N
ew thread
[geany/geany-plugins] f68995: spellcheck: Add GTK3 support
by Colomban Wendling
18 Mar '13
18 Mar '13
Branch: refs/heads/master Author: Colomban Wendling <ban(a)herbesfolles.org> Committer: Colomban Wendling <ban(a)herbesfolles.org> Date: Mon, 18 Mar 2013 16:13:00 UTC Commit: f689951dbab9da86c898e0df294f876744d8206b
https://github.com/geany/geany-plugins/commit/f689951dbab9da86c898e0df294f8…
Log Message: ----------- spellcheck: Add GTK3 support Modified Paths: -------------- build/spellcheck.m4 spellcheck/src/scplugin.c Modified: build/spellcheck.m4 1 files changed, 0 insertions(+), 1 deletions(-) =================================================================== @@ -1,7 +1,6 @@ AC_DEFUN([GP_CHECK_SPELLCHECK], [ GP_ARG_DISABLE([spellcheck], [auto]) - GP_CHECK_PLUGIN_GTK2_ONLY([spellcheck]) ENCHANT_VERSION=1.3 OPT_ENCHANT_VERSION=1.5 Modified: spellcheck/src/scplugin.c 8 files changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -82,7 +82,7 @@ static void populate_dict_combo(GtkComboBox *combo) gtk_list_store_clear(GTK_LIST_STORE(model)); for (i = 0; i < sc_info->dicts->len; i++) { - gtk_combo_box_append_text(GTK_COMBO_BOX(combo), g_ptr_array_index(sc_info->dicts, i)); + gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo), g_ptr_array_index(sc_info->dicts, i)); if (utils_str_equal(g_ptr_array_index(sc_info->dicts, i), sc_info->default_language)) gtk_combo_box_set_active(GTK_COMBO_BOX(combo), i); @@ -102,7 +102,7 @@ static void configure_response_cb(GtkDialog *dialog, gint response, gpointer use gchar *config_dir = g_path_get_dirname(sc_info->config_file); GtkComboBox *combo = GTK_COMBO_BOX(g_object_get_data(G_OBJECT(dialog), "combo")); - setptr(sc_info->default_language, gtk_combo_box_get_active_text(combo)); + setptr(sc_info->default_language, gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(combo))); #ifdef HAVE_ENCHANT_1_5 setptr(sc_info->dictionary_dir, g_strdup(gtk_entry_get_text(GTK_ENTRY( g_object_get_data(G_OBJECT(dialog), "dict_dir"))))); @@ -274,7 +274,7 @@ GtkWidget *plugin_configure(GtkDialog *dialog) gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 3); - combo = gtk_combo_box_new_text(); + combo = gtk_combo_box_text_new(); populate_dict_combo(GTK_COMBO_BOX(combo)); if (sc_info->dicts->len > 20) @@ -305,7 +305,7 @@ GtkWidget *plugin_configure(GtkDialog *dialog) gtk_container_add(GTK_CONTAINER(button), image); hbox = gtk_hbox_new(FALSE, 6); - gtk_box_pack_start_defaults(GTK_BOX(hbox), entry_dir); + gtk_box_pack_start(GTK_BOX(hbox), entry_dir, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] 642779: Depend on Geany 1.24 (current Git)
by Colomban Wendling
18 Mar '13
18 Mar '13
Branch: refs/heads/master Author: Colomban Wendling <ban(a)herbesfolles.org> Committer: Colomban Wendling <ban(a)herbesfolles.org> Date: Mon, 18 Mar 2013 16:12:15 UTC Commit: 642779ede59dc925aead7c1b55bd5e663205b904
https://github.com/geany/geany-plugins/commit/642779ede59dc925aead7c1b55bd5…
Log Message: ----------- Depend on Geany 1.24 (current Git) Modified Paths: -------------- configure.ac Modified: configure.ac 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -18,7 +18,7 @@ IT_PROG_INTLTOOL([0.35.0]) GP_I18N dnl common checks -GP_CHECK_GEANY(1.23) +GP_CHECK_GEANY(1.24) GP_CHECK_UNITTESTS(0.9.4) GP_CHECK_GTK_VERSION GP_CHECK_CPPCHECK -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] df8305: Mark plugins that don't build on GTK3 as requiring GTK2
by Colomban Wendling
18 Mar '13
18 Mar '13
Branch: refs/heads/master Author: Colomban Wendling <ban(a)herbesfolles.org> Committer: Colomban Wendling <ban(a)herbesfolles.org> Date: Wed, 30 Jan 2013 21:24:55 UTC Commit: df830539dc44d1cd34785c6248747f408bf65090
https://github.com/geany/geany-plugins/commit/df830539dc44d1cd34785c6248747…
Log Message: ----------- Mark plugins that don't build on GTK3 as requiring GTK2 Plugin authors should remove or adapt this check when they port their plugin to work with GTK3. Modified Paths: -------------- build/addons.m4 build/debugger.m4 build/geanydoc.m4 build/geanyinsertnum.m4 build/geanylatex.m4 build/geanylipsum.m4 build/geanylua.m4 build/geanymacro.m4 build/geanyminiscript.m4 build/geanynumberedbookmarks.m4 build/geanyprj.m4 build/geanyvc.m4 build/gproject.m4 build/pretty-printer.m4 build/scope.m4 build/spellcheck.m4 build/treebrowser.m4 Modified: build/addons.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_ADDONS], [ - GP_ARG_DISABLE(Addons, yes) + GP_ARG_DISABLE([Addons], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([Addons]) GP_COMMIT_PLUGIN_STATUS([Addons]) AC_CONFIG_FILES([ addons/Makefile Modified: build/debugger.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_DEBUGGER], [ GP_ARG_DISABLE([Debugger], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([Debugger]) GP_CHECK_PLUGIN_DEPS([debugger], [VTE], [vte >= 0.24]) GP_COMMIT_PLUGIN_STATUS([Debugger]) Modified: build/geanydoc.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYDOC], [ - GP_ARG_DISABLE([GeanyDoc], [yes]) + GP_ARG_DISABLE([GeanyDoc], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyDoc]) GP_COMMIT_PLUGIN_STATUS([GeanyDoc]) AC_CONFIG_FILES([ geanydoc/Makefile Modified: build/geanyinsertnum.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYINSERTNUM], [ - GP_ARG_DISABLE([GeanyInsertNum], [yes]) + GP_ARG_DISABLE([GeanyInsertNum], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyInsertNum]) GP_COMMIT_PLUGIN_STATUS([GeanyInsertNum]) AC_CONFIG_FILES([ geanyinsertnum/Makefile Modified: build/geanylatex.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYLATEX], [ - GP_ARG_DISABLE([GeanyLaTeX], [yes]) + GP_ARG_DISABLE([GeanyLaTeX], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyLaTeX]) GP_COMMIT_PLUGIN_STATUS([GeanyLaTeX]) AC_CONFIG_FILES([ geanylatex/Makefile Modified: build/geanylipsum.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYLIPSUM], [ - GP_ARG_DISABLE([GeanyLipsum], [yes]) + GP_ARG_DISABLE([GeanyLipsum], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyLipsum]) GP_COMMIT_PLUGIN_STATUS([GeanyLipsum]) AC_CONFIG_FILES([ geanylipsum/Makefile Modified: build/geanylua.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYLUA], [ GP_ARG_DISABLE([GeanyLua], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyLua]) AC_ARG_WITH([lua-pkg], AC_HELP_STRING([--with-lua-pkg=ARG], Modified: build/geanymacro.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYMACRO], [ - GP_ARG_DISABLE([GeanyMacro], [yes]) + GP_ARG_DISABLE([GeanyMacro], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyMacro]) GP_COMMIT_PLUGIN_STATUS([GeanyMacro]) AC_CONFIG_FILES([ geanymacro/Makefile Modified: build/geanyminiscript.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYMINISCRIPT], [ - GP_ARG_DISABLE([GeanyMiniScript], [yes]) + GP_ARG_DISABLE([GeanyMiniScript], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyMiniScript]) GP_COMMIT_PLUGIN_STATUS([GeanyMiniScript]) AC_CONFIG_FILES([ geanyminiscript/Makefile Modified: build/geanynumberedbookmarks.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYNUMBEREDBOOKMARKS], [ - GP_ARG_DISABLE([GeanyNumberedBookmarks], [yes]) + GP_ARG_DISABLE([GeanyNumberedBookmarks], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyNumberedBookmarks]) GP_COMMIT_PLUGIN_STATUS([GeanyNumberedBookmarks]) AC_CONFIG_FILES([ geanynumberedbookmarks/Makefile Modified: build/geanyprj.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYPRJ], [ - GP_ARG_DISABLE([GeanyPrj], [yes]) + GP_ARG_DISABLE([GeanyPrj], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyPrj]) GP_COMMIT_PLUGIN_STATUS([GeanyPrj]) AC_CONFIG_FILES([ geanyprj/Makefile Modified: build/geanyvc.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYVC], [ - GP_ARG_DISABLE([GeanyVC], [yes]) + GP_ARG_DISABLE([GeanyVC], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyVC]) GP_COMMIT_PLUGIN_STATUS([GeanyVC]) AC_ARG_ENABLE(gtkspell, AC_HELP_STRING([--enable-gtkspell=ARG], Modified: build/gproject.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GPROJECT], [ - GP_ARG_DISABLE([GProject], [yes]) + GP_ARG_DISABLE([GProject], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GProject]) GP_COMMIT_PLUGIN_STATUS([GProject]) AC_CONFIG_FILES([ gproject/Makefile Modified: build/pretty-printer.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -3,6 +3,7 @@ AC_DEFUN([GP_CHECK_PRETTYPRINTER], LIBXML_VERSION=2.6.27 GP_ARG_DISABLE([pretty-printer], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([pretty-printer]) GP_CHECK_PLUGIN_DEPS([pretty-printer], [LIBXML], [libxml-2.0 >= ${LIBXML_VERSION}]) GP_COMMIT_PLUGIN_STATUS([Pretty Printer]) Modified: build/scope.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_SCOPE], [ GP_ARG_DISABLE([Scope], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([Scope]) GP_CHECK_PLUGIN_DEPS([scope], [VTE], [vte >= 0.17]) Modified: build/spellcheck.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_SPELLCHECK], [ GP_ARG_DISABLE([spellcheck], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([spellcheck]) ENCHANT_VERSION=1.3 OPT_ENCHANT_VERSION=1.5 Modified: build/treebrowser.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_TREEBROWSER], [ GP_ARG_DISABLE([Treebrowser], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([Treebrowser]) if [[ "$enable_treebrowser" != no ]]; then AC_CHECK_FUNC([creat], [enable_treebrowser=yes], -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] 4710d8: Disable plugins that check for a dependency on an incompatible GTK
by Colomban Wendling
18 Mar '13
18 Mar '13
Branch: refs/heads/master Author: Colomban Wendling <ban(a)herbesfolles.org> Committer: Colomban Wendling <ban(a)herbesfolles.org> Date: Wed, 30 Jan 2013 21:24:55 UTC Commit: 4710d851d7914baf302eeff54cec6e04bbdae70e
https://github.com/geany/geany-plugins/commit/4710d851d7914baf302eeff54cec6…
Log Message: ----------- Disable plugins that check for a dependency on an incompatible GTK Modified Paths: -------------- build/common.m4 build/gtk.m4 Modified: build/common.m4 7 files changed, 7 insertions(+), 0 deletions(-) =================================================================== @@ -18,6 +18,13 @@ dnl Checks whether modules exist using PKG_CHECK_MODULES, and enables/disables dnl plugins appropriately if enable_$plugin=auto AC_DEFUN([GP_CHECK_PLUGIN_DEPS], [ + AC_REQUIRE([GP_CHECK_GTK_VERSION]) + + gtk_dep=m4_bmatch([$3], [gtk\+-2\.0], [2], [gtk\+-3\.0], [3], [0]) + if test $gtk_dep -ne 0; then + GP_CHECK_PLUGIN_GTKN_ONLY([$1], [$gtk_dep]) + fi + if test "$m4_tolower(AS_TR_SH(enable_$1))" = "yes"; then PKG_CHECK_MODULES([$2], [$3]) elif test "$m4_tolower(AS_TR_SH(enable_$1))" = "auto"; then Modified: build/gtk.m4 28 files changed, 28 insertions(+), 0 deletions(-) =================================================================== @@ -21,3 +21,31 @@ AC_DEFUN([GP_CHECK_GTK3], AC_REQUIRE([GP_CHECK_GTK_VERSION]) AS_IF([test ${GP_GTK_VERSION_MAJOR} = 3],[$1],[$2]) ]) + +dnl GP_CHECK_PLUGIN_GTKN_ONLY pluginname gtkversion +AC_DEFUN([GP_CHECK_PLUGIN_GTKN_ONLY], +[ + AC_REQUIRE([GP_CHECK_GTK_VERSION]) + + AS_IF([test "$m4_tolower(AS_TR_SH(enable_$1))" = no],[], + [AC_MSG_CHECKING([whether the GTK version in use is compatible with plugin $1]) + AS_IF([test ${GP_GTK_VERSION_MAJOR} = $2], + [AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no]) + AS_IF([test "$m4_tolower(AS_TR_SH(enable_$1))" = yes], + [AC_MSG_ERROR([$1 is not compatible with the GTK version in use])], + [test "$m4_tolower(AS_TR_SH(enable_$1))" = auto], + [m4_tolower(AS_TR_SH(enable_$1))=no])])]) +]) + +dnl GP_CHECK_PLUGIN_GTK2_ONLY pluginname +AC_DEFUN([GP_CHECK_PLUGIN_GTK2_ONLY], +[ + GP_CHECK_PLUGIN_GTKN_ONLY([$1], [2]) +]) + +dnl GP_CHECK_PLUGIN_GTK3_ONLY pluginname +AC_DEFUN([GP_CHECK_PLUGIN_GTK3_ONLY], +[ + GP_CHECK_PLUGIN_GTKN_ONLY([$1], [3]) +]) -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] 384ad9: WebHelper: Add support for GTK3
by Colomban Wendling
18 Mar '13
18 Mar '13
Branch: refs/heads/master Author: Colomban Wendling <ban(a)herbesfolles.org> Committer: Colomban Wendling <ban(a)herbesfolles.org> Date: Wed, 30 Jan 2013 21:24:55 UTC Commit: 384ad9563db3446bab152d46232c2dfde91cec57
https://github.com/geany/geany-plugins/commit/384ad9563db3446bab152d46232c2…
Log Message: ----------- WebHelper: Add support for GTK3 Modified Paths: -------------- build/webhelper.m4 webhelper/src/gwh-browser.c webhelper/src/gwh-settings.c Modified: build/webhelper.m4 6 files changed, 4 insertions(+), 2 deletions(-) =================================================================== @@ -18,12 +18,14 @@ AC_DEFUN([GP_CHECK_WEBHELPER], fi fi + GP_CHECK_GTK3([webkit_package=webkitgtk-3.0], + [webkit_package=webkit-1.0]) GP_CHECK_PLUGIN_DEPS([WebHelper], [WEBHELPER], - [gtk+-2.0 >= ${GTK_VERSION} + [$GP_GTK_PACKAGE >= ${GTK_VERSION} glib-2.0 >= ${GLIB_VERSION} gio-2.0 >= ${GIO_VERSION} gdk-pixbuf-2.0 >= ${GDK_PIXBUF_VERSION} - webkit-1.0 >= ${WEBKIT_VERSION} + $webkit_package >= ${WEBKIT_VERSION} gthread-2.0]) Modified: webhelper/src/gwh-browser.c 6 files changed, 6 insertions(+), 0 deletions(-) =================================================================== @@ -49,6 +49,12 @@ (GTK_WIDGET_MAPPED ((w))) # endif /* defined (gtk_widget_get_mapped) */ #endif /* GTK_CHECK_VERSION (2, 20, 0) */ +#if GTK_CHECK_VERSION (3, 0, 0) +/* alias GtkObject, we implement the :destroy signal */ +# define GtkObject GtkWidget +# define GtkObjectClass GtkWidgetClass +# define GTK_OBJECT_CLASS GTK_WIDGET_CLASS +#endif /* GTK_CHECK_VERSION (3, 0, 0) */ struct _GwhBrowserPrivate Modified: webhelper/src/gwh-settings.c 11 files changed, 9 insertions(+), 2 deletions(-) =================================================================== @@ -29,6 +29,13 @@ #include <gtk/gtk.h> +#if ! GTK_CHECK_VERSION (3, 0, 0) +/* make gtk_adjustment_new() return a real GtkAdjustment, not a GtkObject */ +# define gtk_adjustment_new(v, l, u, si, pi, ps) \ + (GtkAdjustment *) (gtk_adjustment_new ((v), (l), (u), (si), (pi), (ps))) +#endif + + struct _GwhSettingsPrivate { GPtrArray *prop_array; @@ -619,14 +626,14 @@ struct _GwhSettingsPrivate gboolean *needs_label) { GtkWidget *button; - GtkObject *adj; + GtkAdjustment *adj; GParamSpecInt *pspec_int = G_PARAM_SPEC_INT (pspec); adj = gtk_adjustment_new ((gdouble)g_value_get_int (value), (gdouble)pspec_int->minimum, (gdouble)pspec_int->maximum, 1.0, 10.0, 0.0); - button = gtk_spin_button_new (GTK_ADJUSTMENT (adj), 0.0, 0); + button = gtk_spin_button_new (adj, 0.0, 0); *needs_label = TRUE; return button; -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] e81b4e: GeanyGenDoc: Add support for GTK3
by Colomban Wendling
18 Mar '13
18 Mar '13
Branch: refs/heads/master Author: Colomban Wendling <ban(a)herbesfolles.org> Committer: Colomban Wendling <ban(a)herbesfolles.org> Date: Wed, 30 Jan 2013 21:24:54 UTC Commit: e81b4e030bd9c8759390013a6a52631398535c0b
https://github.com/geany/geany-plugins/commit/e81b4e030bd9c8759390013a6a526…
Log Message: ----------- GeanyGenDoc: Add support for GTK3 Modified Paths: -------------- build/geanygendoc.m4 geanygendoc/src/ggd-options.h Modified: build/geanygendoc.m4 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -8,7 +8,7 @@ AC_DEFUN([GP_CHECK_GEANYGENDOC], CTPL_VERSION=0.3 GP_CHECK_PLUGIN_DEPS([GeanyGenDoc], GEANYGENDOC, - [gtk+-2.0 >= ${GTK_VERSION} + [$GP_GTK_PACKAGE >= ${GTK_VERSION} glib-2.0 >= ${GLIB_VERSION} gio-2.0 >= ${GIO_VERSION} ctpl >= ${CTPL_VERSION}]) Modified: geanygendoc/src/ggd-options.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -29,6 +29,11 @@ G_BEGIN_DECLS GGD_BEGIN_PLUGIN_API +#if GTK_CHECK_VERSION(3, 0, 0) +# define GtkObject GtkWidget +# define GTK_OBJECT GTK_WIDGET +#endif + /** * GgdOptGroup: -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] 702bf8: commander: Add support for GTK3
by Colomban Wendling
18 Mar '13
18 Mar '13
Branch: refs/heads/master Author: Colomban Wendling <ban(a)herbesfolles.org> Committer: Colomban Wendling <ban(a)herbesfolles.org> Date: Wed, 30 Jan 2013 21:24:54 UTC Commit: 702bf8474c4c949dbfb06d013696b2dc11bb207e
https://github.com/geany/geany-plugins/commit/702bf8474c4c949dbfb06d013696b…
Log Message: ----------- commander: Add support for GTK3 Modified Paths: -------------- build/commander.m4 Modified: build/commander.m4 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -3,7 +3,7 @@ AC_DEFUN([GP_CHECK_COMMANDER], GP_ARG_DISABLE([Commander], [auto]) GP_CHECK_PLUGIN_DEPS([Commander], [COMMANDER], - [gtk+-2.0 >= 2.16 + [$GP_GTK_PACKAGE >= 2.16 glib-2.0 >= 2.4]) GP_COMMIT_PLUGIN_STATUS([Commander]) -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] afed3a: Check for the GTK version to build against
by Colomban Wendling
18 Mar '13
18 Mar '13
Branch: refs/heads/master Author: Colomban Wendling <ban(a)herbesfolles.org> Committer: Colomban Wendling <ban(a)herbesfolles.org> Date: Wed, 30 Jan 2013 21:24:54 UTC Commit: afed3a1fdbd522ea01612c3171c307af21963f5f
https://github.com/geany/geany-plugins/commit/afed3a1fdbd522ea01612c3171c30…
Log Message: ----------- Check for the GTK version to build against Modified Paths: -------------- configure.ac Modified: configure.ac 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -20,6 +20,7 @@ GP_I18N dnl common checks GP_CHECK_GEANY(1.23) GP_CHECK_UNITTESTS(0.9.4) +GP_CHECK_GTK_VERSION GP_CHECK_CPPCHECK GP_CHECK_CFLAGS -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] f96274: Add macros to check for the GTK version to build against
by Colomban Wendling
18 Mar '13
18 Mar '13
Branch: refs/heads/master Author: Colomban Wendling <ban(a)herbesfolles.org> Committer: Colomban Wendling <ban(a)herbesfolles.org> Date: Wed, 30 Jan 2013 21:24:54 UTC Commit: f96274488adc86f5f567efeeff9007449338b150
https://github.com/geany/geany-plugins/commit/f96274488adc86f5f567efeeff900…
Log Message: ----------- Add macros to check for the GTK version to build against Modified Paths: -------------- build/gtk.m4 Modified: build/gtk.m4 23 files changed, 23 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,23 @@ +dnl checks for the GTK version to build against (2 or 3) +dnl defines GP_GTK_PACKAGE (e.g. "gtk+-2.0"), GP_GTK_VERSION (e.g. "2.24") and +dnl GP_GTK_VERSION_MAJOR (e.g. "2") +AC_DEFUN([GP_CHECK_GTK_VERSION], +[ + AC_REQUIRE([AC_PROG_AWK]) + AC_REQUIRE([PKG_PROG_PKG_CONFIG]) + + _gtk_req=$(${PKG_CONFIG} --print-requires geany | ${AWK} '/^gtk\+-/{print}') + GP_GTK_PACKAGE=$(echo ${_gtk_req} | ${AWK} '{print $[]1}') + GP_GTK_VERSION=$(echo ${_gtk_req} | ${AWK} '{print $[]3}') + GP_GTK_VERSION_MAJOR=$(echo ${GP_GTK_VERSION} | cut -d. -f1) + AC_SUBST([GP_GTK_PACKAGE]) + AC_SUBST([GP_GTK_VERSION]) + AC_SUBST([GP_GTK_VERSION_MAJOR]) +]) + +dnl executes $1 if GTK3 is used, and $2 otherwise +AC_DEFUN([GP_CHECK_GTK3], +[ + AC_REQUIRE([GP_CHECK_GTK_VERSION]) + AS_IF([test ${GP_GTK_VERSION_MAJOR} = 3],[$1],[$2]) +]) -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] de034e: Merge pull request #91 from b4n/gtk3-support
by Frank Lanitz
18 Mar '13
18 Mar '13
Branch: refs/heads/master Author: Frank Lanitz <frank(a)frank.uvena.de> Committer: Frank Lanitz <frank(a)frank.uvena.de> Date: Mon, 18 Mar 2013 08:31:47 UTC Commit: de034e64ddda3badd111a8accbcc92157eed29ed
https://github.com/geany/geany-plugins/commit/de034e64ddda3badd111a8accbcc9…
Log Message: ----------- Merge pull request #91 from b4n/gtk3-support Initial GTK3 support for GP Modified Paths: -------------- build/addons.m4 build/commander.m4 build/common.m4 build/debugger.m4 build/geanydoc.m4 build/geanygendoc.m4 build/geanyinsertnum.m4 build/geanylatex.m4 build/geanylipsum.m4 build/geanylua.m4 build/geanymacro.m4 build/geanyminiscript.m4 build/geanynumberedbookmarks.m4 build/geanyprj.m4 build/geanyvc.m4 build/gproject.m4 build/gtk.m4 build/pretty-printer.m4 build/scope.m4 build/spellcheck.m4 build/status.m4 build/treebrowser.m4 build/webhelper.m4 configure.ac geanygendoc/src/ggd-options.h webhelper/src/gwh-browser.c webhelper/src/gwh-settings.c Modified: build/addons.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_ADDONS], [ - GP_ARG_DISABLE(Addons, yes) + GP_ARG_DISABLE([Addons], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([Addons]) GP_COMMIT_PLUGIN_STATUS([Addons]) AC_CONFIG_FILES([ addons/Makefile Modified: build/commander.m4 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -3,7 +3,7 @@ AC_DEFUN([GP_CHECK_COMMANDER], GP_ARG_DISABLE([Commander], [auto]) GP_CHECK_PLUGIN_DEPS([Commander], [COMMANDER], - [gtk+-2.0 >= 2.16 + [$GP_GTK_PACKAGE >= 2.16 glib-2.0 >= 2.4]) GP_COMMIT_PLUGIN_STATUS([Commander]) Modified: build/common.m4 7 files changed, 7 insertions(+), 0 deletions(-) =================================================================== @@ -18,6 +18,13 @@ dnl Checks whether modules exist using PKG_CHECK_MODULES, and enables/disables dnl plugins appropriately if enable_$plugin=auto AC_DEFUN([GP_CHECK_PLUGIN_DEPS], [ + AC_REQUIRE([GP_CHECK_GTK_VERSION]) + + gtk_dep=m4_bmatch([$3], [gtk\+-2\.0], [2], [gtk\+-3\.0], [3], [0]) + if test $gtk_dep -ne 0; then + GP_CHECK_PLUGIN_GTKN_ONLY([$1], [$gtk_dep]) + fi + if test "$m4_tolower(AS_TR_SH(enable_$1))" = "yes"; then PKG_CHECK_MODULES([$2], [$3]) elif test "$m4_tolower(AS_TR_SH(enable_$1))" = "auto"; then Modified: build/debugger.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_DEBUGGER], [ GP_ARG_DISABLE([Debugger], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([Debugger]) GP_CHECK_PLUGIN_DEPS([debugger], [VTE], [vte >= 0.24]) GP_COMMIT_PLUGIN_STATUS([Debugger]) Modified: build/geanydoc.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYDOC], [ - GP_ARG_DISABLE([GeanyDoc], [yes]) + GP_ARG_DISABLE([GeanyDoc], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyDoc]) GP_COMMIT_PLUGIN_STATUS([GeanyDoc]) AC_CONFIG_FILES([ geanydoc/Makefile Modified: build/geanygendoc.m4 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -8,7 +8,7 @@ AC_DEFUN([GP_CHECK_GEANYGENDOC], CTPL_VERSION=0.3 GP_CHECK_PLUGIN_DEPS([GeanyGenDoc], GEANYGENDOC, - [gtk+-2.0 >= ${GTK_VERSION} + [$GP_GTK_PACKAGE >= ${GTK_VERSION} glib-2.0 >= ${GLIB_VERSION} gio-2.0 >= ${GIO_VERSION} ctpl >= ${CTPL_VERSION}]) Modified: build/geanyinsertnum.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYINSERTNUM], [ - GP_ARG_DISABLE([GeanyInsertNum], [yes]) + GP_ARG_DISABLE([GeanyInsertNum], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyInsertNum]) GP_COMMIT_PLUGIN_STATUS([GeanyInsertNum]) AC_CONFIG_FILES([ geanyinsertnum/Makefile Modified: build/geanylatex.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYLATEX], [ - GP_ARG_DISABLE([GeanyLaTeX], [yes]) + GP_ARG_DISABLE([GeanyLaTeX], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyLaTeX]) GP_COMMIT_PLUGIN_STATUS([GeanyLaTeX]) AC_CONFIG_FILES([ geanylatex/Makefile Modified: build/geanylipsum.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYLIPSUM], [ - GP_ARG_DISABLE([GeanyLipsum], [yes]) + GP_ARG_DISABLE([GeanyLipsum], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyLipsum]) GP_COMMIT_PLUGIN_STATUS([GeanyLipsum]) AC_CONFIG_FILES([ geanylipsum/Makefile Modified: build/geanylua.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYLUA], [ GP_ARG_DISABLE([GeanyLua], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyLua]) AC_ARG_WITH([lua-pkg], AC_HELP_STRING([--with-lua-pkg=ARG], Modified: build/geanymacro.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYMACRO], [ - GP_ARG_DISABLE([GeanyMacro], [yes]) + GP_ARG_DISABLE([GeanyMacro], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyMacro]) GP_COMMIT_PLUGIN_STATUS([GeanyMacro]) AC_CONFIG_FILES([ geanymacro/Makefile Modified: build/geanyminiscript.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYMINISCRIPT], [ - GP_ARG_DISABLE([GeanyMiniScript], [yes]) + GP_ARG_DISABLE([GeanyMiniScript], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyMiniScript]) GP_COMMIT_PLUGIN_STATUS([GeanyMiniScript]) AC_CONFIG_FILES([ geanyminiscript/Makefile Modified: build/geanynumberedbookmarks.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYNUMBEREDBOOKMARKS], [ - GP_ARG_DISABLE([GeanyNumberedBookmarks], [yes]) + GP_ARG_DISABLE([GeanyNumberedBookmarks], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyNumberedBookmarks]) GP_COMMIT_PLUGIN_STATUS([GeanyNumberedBookmarks]) AC_CONFIG_FILES([ geanynumberedbookmarks/Makefile Modified: build/geanyprj.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYPRJ], [ - GP_ARG_DISABLE([GeanyPrj], [yes]) + GP_ARG_DISABLE([GeanyPrj], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyPrj]) GP_COMMIT_PLUGIN_STATUS([GeanyPrj]) AC_CONFIG_FILES([ geanyprj/Makefile Modified: build/geanyvc.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GEANYVC], [ - GP_ARG_DISABLE([GeanyVC], [yes]) + GP_ARG_DISABLE([GeanyVC], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GeanyVC]) GP_COMMIT_PLUGIN_STATUS([GeanyVC]) AC_ARG_ENABLE(gtkspell, AC_HELP_STRING([--enable-gtkspell=ARG], Modified: build/gproject.m4 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_GPROJECT], [ - GP_ARG_DISABLE([GProject], [yes]) + GP_ARG_DISABLE([GProject], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([GProject]) GP_COMMIT_PLUGIN_STATUS([GProject]) AC_CONFIG_FILES([ gproject/Makefile Modified: build/gtk.m4 51 files changed, 51 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,51 @@ +dnl checks for the GTK version to build against (2 or 3) +dnl defines GP_GTK_PACKAGE (e.g. "gtk+-2.0"), GP_GTK_VERSION (e.g. "2.24") and +dnl GP_GTK_VERSION_MAJOR (e.g. "2") +AC_DEFUN([GP_CHECK_GTK_VERSION], +[ + AC_REQUIRE([AC_PROG_AWK]) + AC_REQUIRE([PKG_PROG_PKG_CONFIG]) + + _gtk_req=$(${PKG_CONFIG} --print-requires geany | ${AWK} '/^gtk\+-/{print}') + GP_GTK_PACKAGE=$(echo ${_gtk_req} | ${AWK} '{print $[]1}') + GP_GTK_VERSION=$(echo ${_gtk_req} | ${AWK} '{print $[]3}') + GP_GTK_VERSION_MAJOR=$(echo ${GP_GTK_VERSION} | cut -d. -f1) + AC_SUBST([GP_GTK_PACKAGE]) + AC_SUBST([GP_GTK_VERSION]) + AC_SUBST([GP_GTK_VERSION_MAJOR]) +]) + +dnl executes $1 if GTK3 is used, and $2 otherwise +AC_DEFUN([GP_CHECK_GTK3], +[ + AC_REQUIRE([GP_CHECK_GTK_VERSION]) + AS_IF([test ${GP_GTK_VERSION_MAJOR} = 3],[$1],[$2]) +]) + +dnl GP_CHECK_PLUGIN_GTKN_ONLY pluginname gtkversion +AC_DEFUN([GP_CHECK_PLUGIN_GTKN_ONLY], +[ + AC_REQUIRE([GP_CHECK_GTK_VERSION]) + + AS_IF([test "$m4_tolower(AS_TR_SH(enable_$1))" = no],[], + [AC_MSG_CHECKING([whether the GTK version in use is compatible with plugin $1]) + AS_IF([test ${GP_GTK_VERSION_MAJOR} = $2], + [AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no]) + AS_IF([test "$m4_tolower(AS_TR_SH(enable_$1))" = yes], + [AC_MSG_ERROR([$1 is not compatible with the GTK version in use])], + [test "$m4_tolower(AS_TR_SH(enable_$1))" = auto], + [m4_tolower(AS_TR_SH(enable_$1))=no])])]) +]) + +dnl GP_CHECK_PLUGIN_GTK2_ONLY pluginname +AC_DEFUN([GP_CHECK_PLUGIN_GTK2_ONLY], +[ + GP_CHECK_PLUGIN_GTKN_ONLY([$1], [2]) +]) + +dnl GP_CHECK_PLUGIN_GTK3_ONLY pluginname +AC_DEFUN([GP_CHECK_PLUGIN_GTK3_ONLY], +[ + GP_CHECK_PLUGIN_GTKN_ONLY([$1], [3]) +]) Modified: build/pretty-printer.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -3,6 +3,7 @@ AC_DEFUN([GP_CHECK_PRETTYPRINTER], LIBXML_VERSION=2.6.27 GP_ARG_DISABLE([pretty-printer], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([pretty-printer]) GP_CHECK_PLUGIN_DEPS([pretty-printer], [LIBXML], [libxml-2.0 >= ${LIBXML_VERSION}]) GP_COMMIT_PLUGIN_STATUS([Pretty Printer]) Modified: build/scope.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_SCOPE], [ GP_ARG_DISABLE([Scope], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([Scope]) GP_CHECK_PLUGIN_DEPS([scope], [VTE], [vte >= 0.17]) Modified: build/spellcheck.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_SPELLCHECK], [ GP_ARG_DISABLE([spellcheck], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([spellcheck]) ENCHANT_VERSION=1.3 OPT_ENCHANT_VERSION=1.5 Modified: build/status.m4 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -50,7 +50,7 @@ AC_DEFUN([GP_STATUS_PRINT], ${PACKAGE}-${VERSION} Build Environment: - Geany version: ${GEANY_VERSION} + Geany version: ${GEANY_VERSION} (GTK${GP_GTK_VERSION_MAJOR}) Install prefix: ${prefix} Datadir: ${expanded_datadir}/${PACKAGE_TARNAME} Libdir: ${expanded_libdir}/${PACKAGE_TARNAME} Modified: build/treebrowser.m4 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1,6 +1,7 @@ AC_DEFUN([GP_CHECK_TREEBROWSER], [ GP_ARG_DISABLE([Treebrowser], [auto]) + GP_CHECK_PLUGIN_GTK2_ONLY([Treebrowser]) if [[ "$enable_treebrowser" != no ]]; then AC_CHECK_FUNC([creat], [enable_treebrowser=yes], Modified: build/webhelper.m4 6 files changed, 4 insertions(+), 2 deletions(-) =================================================================== @@ -18,12 +18,14 @@ AC_DEFUN([GP_CHECK_WEBHELPER], fi fi + GP_CHECK_GTK3([webkit_package=webkitgtk-3.0], + [webkit_package=webkit-1.0]) GP_CHECK_PLUGIN_DEPS([WebHelper], [WEBHELPER], - [gtk+-2.0 >= ${GTK_VERSION} + [$GP_GTK_PACKAGE >= ${GTK_VERSION} glib-2.0 >= ${GLIB_VERSION} gio-2.0 >= ${GIO_VERSION} gdk-pixbuf-2.0 >= ${GDK_PIXBUF_VERSION} - webkit-1.0 >= ${WEBKIT_VERSION} + $webkit_package >= ${WEBKIT_VERSION} gthread-2.0]) Modified: configure.ac 1 files changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -20,6 +20,7 @@ GP_I18N dnl common checks GP_CHECK_GEANY(1.23) GP_CHECK_UNITTESTS(0.9.4) +GP_CHECK_GTK_VERSION GP_CHECK_CPPCHECK GP_CHECK_CFLAGS Modified: geanygendoc/src/ggd-options.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -29,6 +29,11 @@ G_BEGIN_DECLS GGD_BEGIN_PLUGIN_API +#if GTK_CHECK_VERSION(3, 0, 0) +# define GtkObject GtkWidget +# define GTK_OBJECT GTK_WIDGET +#endif + /** * GgdOptGroup: Modified: webhelper/src/gwh-browser.c 6 files changed, 6 insertions(+), 0 deletions(-) =================================================================== @@ -49,6 +49,12 @@ (GTK_WIDGET_MAPPED ((w))) # endif /* defined (gtk_widget_get_mapped) */ #endif /* GTK_CHECK_VERSION (2, 20, 0) */ +#if GTK_CHECK_VERSION (3, 0, 0) +/* alias GtkObject, we implement the :destroy signal */ +# define GtkObject GtkWidget +# define GtkObjectClass GtkWidgetClass +# define GTK_OBJECT_CLASS GTK_WIDGET_CLASS +#endif /* GTK_CHECK_VERSION (3, 0, 0) */ struct _GwhBrowserPrivate Modified: webhelper/src/gwh-settings.c 11 files changed, 9 insertions(+), 2 deletions(-) =================================================================== @@ -29,6 +29,13 @@ #include <gtk/gtk.h> +#if ! GTK_CHECK_VERSION (3, 0, 0) +/* make gtk_adjustment_new() return a real GtkAdjustment, not a GtkObject */ +# define gtk_adjustment_new(v, l, u, si, pi, ps) \ + (GtkAdjustment *) (gtk_adjustment_new ((v), (l), (u), (si), (pi), (ps))) +#endif + + struct _GwhSettingsPrivate { GPtrArray *prop_array; @@ -619,14 +626,14 @@ struct _GwhSettingsPrivate gboolean *needs_label) { GtkWidget *button; - GtkObject *adj; + GtkAdjustment *adj; GParamSpecInt *pspec_int = G_PARAM_SPEC_INT (pspec); adj = gtk_adjustment_new ((gdouble)g_value_get_int (value), (gdouble)pspec_int->minimum, (gdouble)pspec_int->maximum, 1.0, 10.0, 0.0); - button = gtk_spin_button_new (GTK_ADJUSTMENT (adj), 0.0, 0); + button = gtk_spin_button_new (adj, 0.0, 0); *needs_label = TRUE; return button; -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
Older →
Jump to page:
1
2
3
4
5
6
7
8
Results per page:
10
25
50
100
200