[anjuta] project-wizard: bgo #654463 - Disable "Install missing packages" button on OpenBSD



commit 9adfabb2676535d2aa8c9862149997aee9b2f372
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Tue Sep 6 22:40:58 2011 +0200

    project-wizard: bgo #654463 - Disable "Install missing packages" button on OpenBSD

 configure.ac                   |    9 +++++++++
 plugins/project-wizard/druid.c |    2 ++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f2e7a2c..8762794 100644
--- a/configure.ac
+++ b/configure.ac
@@ -290,6 +290,15 @@ PKG_CHECK_MODULES([PLUGIN_SYMBOL_DB],
      [PKG_CHECK_MODULES([PLUGIN_SYMBOL_DB],
          [libgda-4.0 >= $GDA4_REQUIRED])])
 
+dnl Disable packagekit support
+dnl -----------------------------------
+AC_ARG_ENABLE(packagekit,
+  [AC_HELP_STRING([--disable-packagekit],[build without PackageKit support])],,
+  [enable_packagekit=yes])
+if test "x$enable_packagekit" != "xno"; then
+  AC_DEFINE(ENABLE_PACKAGEKIT, 1, [define to enable PackageKit installer])
+fi
+
 dnl Setup Anjuta Library flags
 dnl --------------------------
 LIBANJUTA_CFLAGS='$(ANJUTA_CFLAGS) $(GDL_CFLAGS) $(DEPRECATED_FLAGS) -I$(top_srcdir) -I$(top_builddir)/libanjuta -DPACKAGE_PIXMAPS_DIR=\""$(datadir)/pixmaps/$(PACKAGE)"\" -DPACKAGE_LIB_DIR=\""$(pkglibdir)"\" -DPACKAGE_DATA_DIR=\""$(datadir)/$(PACKAGE)"\"'
diff --git a/plugins/project-wizard/druid.c b/plugins/project-wizard/druid.c
index 877de2e..f308a84 100644
--- a/plugins/project-wizard/druid.c
+++ b/plugins/project-wizard/druid.c
@@ -914,12 +914,14 @@ check_and_warn_missing (NPWDruid *druid)
 		hbox = gtk_hbox_new (FALSE, 0);
 		gtk_widget_show (hbox);
 
+#ifdef ENABLE_PACKAGEKIT		
 		install_button =
 			gtk_button_new_with_label (_("Install missing packages"));
 		gtk_box_pack_end (GTK_BOX (hbox), install_button, FALSE, FALSE, 10);
 		g_signal_connect (install_button, "clicked",
 						  G_CALLBACK (on_install_button_clicked), druid);
 		gtk_widget_show (install_button);
+#endif
 
 		npw_druid_fill_error_page (druid, hbox,
 								   GTK_MESSAGE_WARNING,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]