diff -ur qalculate-gtk-0.9.6/configure.in qalculate-gtk-0.9.6_patched/configure.in
old
|
new
|
|
63 | 63 | |
64 | 64 | AC_LANG([C++]) |
65 | 65 | |
66 | | AC_PATH_CLN(1.1.0, [ |
67 | | LIBS="$LIBS $CLN_LIBS" |
68 | | CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS" |
69 | | AC_DEFINE(HAVE_LIBCLN,1,[If CLN can be used]) |
70 | | ], AC_MSG_ERROR([No suitable installed version of CLN could be found.])) |
71 | | |
72 | 66 | PKG_CHECK_MODULES(GLIB, [ |
73 | 67 | glib-2.0 >= 2.4 |
74 | 68 | libxml-2.0 |
… |
… |
|
95 | 89 | AC_SUBST(QALCULATE_CFLAGS) |
96 | 90 | AC_SUBST(QALCULATE_LIBS) |
97 | 91 | |
| 92 | PKG_CHECK_MODULES(CLN, [ cln >= 1.2 ], |
| 93 | [have_recent_cln=yes], [have_recent_cln=no]) |
| 94 | AC_SUBST(CLN_CPPFLAGS) |
| 95 | AC_SUBST(CLN_LIBS) |
| 96 | |
| 97 | if test "$have_recent_cln" = "yes" ; then |
| 98 | AC_DEFINE(HAVE_LIBCLN12, 1, [Define if CLN can be used]) |
| 99 | LIBS="$LIBS $CLN_LIBS" |
| 100 | CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS" |
| 101 | fi |
| 102 | |
98 | 103 | LIBGNOME_REQUIRED=2.0.0 |
99 | 104 | |
100 | 105 | USE_LIBGNOME="auto" |
diff -ur qalculate-gtk-0.9.6/src/main.cc qalculate-gtk-0.9.6_patched/src/main.cc
old
|
new
|
|
92 | 92 | g_free(icon); |
93 | 93 | } |
94 | 94 | |
| 95 | gtk_init(&argc, &argv); |
| 96 | |
95 | 97 | g_object_get(G_OBJECT(program), GNOME_PARAM_POPT_CONTEXT, &pctx, NULL); |
96 | 98 | |
97 | | gtk_init(&argc, &argv); |
98 | 99 | |
99 | 100 | #else |
100 | 101 | |
101 | | gtk_window_set_default_icon_from_file(PACKAGE_DATA_DIR "/pixmaps/qalculate.png", NULL); |
102 | 102 | |
103 | 103 | gtk_init(&argc, &argv); |
104 | 104 | |
| 105 | gtk_window_set_default_icon_from_file(PACKAGE_DATA_DIR "/pixmaps/qalculate.png", NULL); |
| 106 | |
105 | 107 | #endif |
106 | 108 | |
107 | 109 | glade_init(); |