Index: profiles/gnome-audio-profiles-test.c
===================================================================
--- profiles/gnome-audio-profiles-test.c	(revision 4311)
+++ profiles/gnome-audio-profiles-test.c	(working copy)
@@ -22,9 +22,9 @@
 #include <config.h>
 #endif
 
+#include <stdlib.h>
 #include <gtk/gtk.h>
 #include <gconf/gconf-client.h>
-#include <libgnomeui/libgnomeui.h>
 #include <gst/gst.h>
 
 #include <profiles/gnome-media-profiles.h>
@@ -148,12 +148,21 @@
 {
   GtkWidget *window, *hbox, *combo, *edit, *test;
   GConfClient *gconf;
-  GnomeProgram *program;
+  GOptionContext *context;
+  GError *error = NULL;
 
-  gst_init (&argc, &argv);
-  program = gnome_program_init ("gnome-audio-profiles-test", VERSION,
-                                LIBGNOMEUI_MODULE, argc, argv,
-                                NULL);
+  g_thread_init (NULL);
+  context = g_option_context_new (NULL);
+  g_option_context_add_group (context, gst_init_get_option_group ());
+  g_option_context_add_group (context, gtk_get_option_group (TRUE));
+  if (g_option_context_parse (context, &argc, &argv, &error) == FALSE) {
+	  g_print ("%s\nRun '%s --help' to see a full list of available command line options.\n",
+		   error->message, argv[0]);
+	  g_error_free (error);
+	  g_option_context_free (context);
+	  exit (1);
+  }
+  g_option_context_free (context);
 
   gconf = gconf_client_get_default ();
   gnome_media_profiles_init (gconf);
@@ -175,7 +184,5 @@
   gtk_widget_show_all (window);
   gtk_main ();
 
-  g_object_unref (program);
-
   return 0;
 }
Index: profiles/audio-profiles-edit.c
===================================================================
--- profiles/audio-profiles-edit.c	(revision 4311)
+++ profiles/audio-profiles-edit.c	(working copy)
@@ -34,7 +34,6 @@
 #include "audio-profile-private.h"
 #include "gmp-util.h"
 #include "audio-profiles-edit.h"
-#include <libgnomeui/libgnomeui.h>
 
 #define MANAGE_STOCK_EDIT "manage-edit"
 
@@ -528,12 +527,11 @@
     {
       GError *err = NULL;
 
-      gnome_help_display_on_screen ("gnome-audio-profiles",
-                                    "gnome-audio-profiles-profile-edit",
-				    gtk_widget_get_screen (GTK_WIDGET (dialog)),
-				    &err);
+      gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)),
+		    "ghelp:gnome-audio-profiles?gnome-audio-profiles-profile-edit",
+		    gtk_get_current_event_time (),
+		    &err);
 
-
       if (err)
         {
           gmp_util_show_error_dialog  (GTK_WINDOW (dialog), NULL,
Index: profiles/gnome-audio-profiles-properties.c
===================================================================
--- profiles/gnome-audio-profiles-properties.c	(revision 4311)
+++ profiles/gnome-audio-profiles-properties.c	(working copy)
@@ -23,10 +23,10 @@
 #include <config.h>
 #endif
 
+#include <stdlib.h>
 #include <libintl.h>
 #include <gtk/gtk.h>
-#include <libgnome/gnome-program.h>
-#include <libgnomeui/gnome-ui-init.h>
+#include <glib/gi18n.h>
 
 #include "gnome-media-profiles.h"
 #include "audio-profile-private.h"
@@ -43,18 +43,22 @@
 {
   GtkWidget *widget;
   GConfClient *conf;
-  GnomeProgram *program;
+  GOptionContext *context;
+  GError *error = NULL;
 
-  program = gnome_program_init ("gnome-audio-profiles-properties",
-			        VERSION,
-			        LIBGNOMEUI_MODULE,
-			        argc, argv,
-				GNOME_PARAM_APP_DATADIR, DATADIR,
-			        GNOME_PARAM_NONE);
+  g_thread_init (NULL);
 
-  /* FIXME: add a comment why we need this at all, until then
-     we comment it out
-  gm_audio_profile_edit_get_type (); */
+  context = g_option_context_new (NULL);
+  g_option_context_add_group (context, gtk_get_option_group (TRUE));
+  if (g_option_context_parse (context, &argc, &argv, &error) == FALSE) {
+	  g_print (_("%s\nRun '%s --help' to see a full list of available command line options.\n"),
+		   error->message, argv[0]);
+	  g_error_free (error);
+	  g_option_context_free (context);
+	  exit (1);
+  }
+  g_option_context_free (context);
+
   glade_register_widget (gm_audio_profile_edit_get_type (),
 			 NULL,
 			 gtk_dialog_build_children,
@@ -75,7 +79,6 @@
   gtk_main ();
 
   g_object_unref (conf);
-  g_object_unref (program);
 
   return 0;
 }
Index: profiles/audio-profile-edit.c
===================================================================
--- profiles/audio-profile-edit.c	(revision 4311)
+++ profiles/audio-profile-edit.c	(working copy)
@@ -27,7 +27,6 @@
 #include <glib/gi18n.h>
 #include <gtk/gtk.h>
 #include <glade/glade-xml.h>
-#include <libgnomeui/gnome-help.h>
 #include <gst/gst.h>
 
 #include "gmp-util.h"
@@ -112,10 +111,10 @@
     {
       GError *err = NULL;
 
-      gnome_help_display_on_screen ("gnome-audio-profiles",
-                                    "gnome-audio-profiles-profile-edit",
-				    gtk_widget_get_screen (GTK_WIDGET (dialog)),
-				    &err);
+      gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)),
+		    "ghelp:gnome-audio-profiles?gnome-audio-profiles-edit",
+		    gtk_get_current_event_time (),
+		    &err);
 
       if (err)
         {
Index: profiles/gnome-media-profiles.pc.in
===================================================================
--- profiles/gnome-media-profiles.pc.in	(revision 4311)
+++ profiles/gnome-media-profiles.pc.in	(working copy)
@@ -6,7 +6,7 @@
                                                                                 
 Name: GNOME Media Profiles
 Description: Media Profiles describing audio codec settings for output
-Requires: gconf-2.0, gtk+-2.0, libglade-2.0, libgnome-2.0
+Requires: gconf-2.0, gtk+-2.0, libglade-2.0
 Version: @VERSION@
 Libs: -L${libdir} -lgnome-media-profiles
 Cflags: -I${includedir}
Index: configure.ac
===================================================================
--- configure.ac	(revision 4311)
+++ configure.ac	(working copy)
@@ -60,7 +60,7 @@
 dnl=======================================================================
 
 GLIB_REQUIRED_VERSION=2.18.2
-GTK_REQUIRED_VERSION=2.10.0
+GTK_REQUIRED_VERSION=2.14.0
 LIBGLADE_REQUIRED_VERSION=1.99.2
 GCONF_REQUIRED_VERSION=2.6.1
 PA_REQUIRED_VERSION=0.9.12 # FIXME remove extra checks below when we have PA 0.9.15
@@ -246,7 +246,6 @@
     gstreamer-0.10
     gconf-2.0
     libglade-2.0
-    libgnomeui-2.0
     gio-2.0],
     have_profiles=yes)
 fi
