[libslab] Make libslab_get_current_screen() a public function



commit c43abe36b846700f4c7898fd5899f07aa164d3e2
Author: Federico Mena Quintero <federico novell com>
Date:   Mon Jun 29 12:30:39 2009 -0500

    Make libslab_get_current_screen() a public function
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 libslab/libslab-utils.c |    6 +++---
 libslab/libslab-utils.h |    2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libslab/libslab-utils.c b/libslab/libslab-utils.c
index 5fe4314..a54fe29 100644
--- a/libslab/libslab-utils.c
+++ b/libslab/libslab-utils.c
@@ -183,8 +183,8 @@ libslab_gnome_desktop_item_get_docpath (GnomeDesktopItem *item)
 /* Ugh, here we don't have knowledge of the screen that is being used.  So, do
  * what we can to find it.
  */
-static GdkScreen *
-get_screen (void)
+GdkScreen *
+libslab_get_current_screen (void)
 {
 	GdkEvent *event;
 	GdkScreen *screen = NULL;
@@ -222,7 +222,7 @@ libslab_gnome_desktop_item_open_help (GnomeDesktopItem *item)
 	if (doc_path) {
 		help_uri = g_strdup_printf ("ghelp:%s", doc_path);
 
-		if (!gtk_show_uri (get_screen (), help_uri, gtk_get_current_event_time (), &error)) {
+		if (!gtk_show_uri (libslab_get_current_screen (), help_uri, gtk_get_current_event_time (), &error)) {
 			g_warning ("error opening %s [%s]\n", help_uri, error->message);
 
 			g_error_free (error);
diff --git a/libslab/libslab-utils.h b/libslab/libslab-utils.h
index ee0cdc8..bb887d2 100644
--- a/libslab/libslab-utils.h
+++ b/libslab/libslab-utils.h
@@ -28,6 +28,8 @@ gboolean          libslab_desktop_item_is_lockscreen (const gchar *uri);
 gchar            *libslab_string_replace_once (const gchar *string, const gchar *key, const gchar *value);
 void              libslab_spawn_command (const gchar *cmd);
 
+GdkScreen *libslab_get_current_screen (void);
+
 void libslab_thumbnail_factory_preinit (void);
 GnomeThumbnailFactory *libslab_thumbnail_factory_get (void);
 



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