summaryrefslogtreecommitdiff
path: root/gtk/gtkappchoosermodule.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-11-29 18:10:06 +0100
committerCosimo Cecchi <cosimoc@gnome.org>2010-11-29 18:10:06 +0100
commit51cb082022994634e8639443c9f2463ac4c822e8 (patch)
tree3406ce6633fa5de3efee288310d9a671c7669df9 /gtk/gtkappchoosermodule.c
parent134e74177e3a143082039a1953b18e3d4ee5fa3d (diff)
downloadgtk+-51cb082022994634e8639443c9f2463ac4c822e8.tar.gz
app-chooser-online: rework of the online module
- the _get_default() method is now async - the PackageKit module will return NULL in case PackageKit is not available in the session bus - the dummy module doesn't exist anymore - the dialog won't display the online button in case there's no module available
Diffstat (limited to 'gtk/gtkappchoosermodule.c')
-rw-r--r--gtk/gtkappchoosermodule.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/gtk/gtkappchoosermodule.c b/gtk/gtkappchoosermodule.c
index bc5c0e74af..afcf3de966 100644
--- a/gtk/gtkappchoosermodule.c
+++ b/gtk/gtkappchoosermodule.c
@@ -28,7 +28,6 @@
#include <gio/gio.h>
#include "gtkappchooseronline.h"
-#include "gtkappchooseronlinedummy.h"
#ifdef ENABLE_PACKAGEKIT
#include "gtkappchooseronlinepk.h"
@@ -45,18 +44,16 @@ _gtk_app_chooser_module_ensure (void)
G_LOCK (registered_ep);
if (!registered_ep)
-{
- registered_ep = TRUE;
-
- ep = g_io_extension_point_register ("gtkappchooser-online");
- g_io_extension_point_set_required_type (ep, GTK_TYPE_APP_CHOOSER_ONLINE);
+ {
+ registered_ep = TRUE;
- _gtk_app_chooser_online_dummy_get_type ();
+ ep = g_io_extension_point_register ("gtkappchooser-online");
+ g_io_extension_point_set_required_type (ep, GTK_TYPE_APP_CHOOSER_ONLINE);
#ifdef ENABLE_PACKAGEKIT
- _gtk_app_chooser_online_pk_get_type ();
+ _gtk_app_chooser_online_pk_get_type ();
#endif
- }
+ }
G_UNLOCK (registered_ep);
}