kov changed libgksu/trunk/ChangeLog, libgksu/trunk/libgksu/libgksu.c, libgksu/trunk/libgksu/libgksu.h

Gustavo Noronha kov at costa.debian.org
Wed Jul 12 23:49:26 UTC 2006


Mensagem de log: 
implement new accessor functions for the startup notification
launcher context


-----


Modified: libgksu/trunk/ChangeLog
===================================================================
--- libgksu/trunk/ChangeLog	2006-07-11 00:48:44 UTC (rev 650)
+++ libgksu/trunk/ChangeLog	2006-07-12 23:49:25 UTC (rev 651)
@@ -1,3 +1,9 @@
+2006-07-12  Gustavo Noronha Silva  <kov at debian.org>
+
+	* libgksu/libgksu.{c,h}:
+	- add accessor methods for the startup notification launcher
+	  context
+
 2006-07-10  Gustavo Noronha Silva  <kov at debian.org>
 
 	* configure.ac:

Modified: libgksu/trunk/libgksu/libgksu.c
===================================================================
--- libgksu/trunk/libgksu/libgksu.c	2006-07-11 00:48:44 UTC (rev 650)
+++ libgksu/trunk/libgksu/libgksu.c	2006-07-12 23:49:25 UTC (rev 651)
@@ -1543,6 +1543,34 @@
 }
 
 /**
+ * gksu_context_set_launcher_context:
+ * @context: the #GksuContext you want to set the sn context in
+ * @sn_context: the #SnLauncherContext you want to set
+ *
+ * Tell libgksu to use the given #SnLauncherContext for startup notification.
+ * Currently the library will only use this to set DESKTOP_STARTUP_ID in the
+ * environment of the child.
+ *
+ * Returns: the #SnLauncherContext which is set, or NULL if none was set
+ */
+void
+gksu_context_set_launcher_context (GksuContext *context, SnLauncherContext *sn_context);
+
+/**
+ * gksu_context_get_launcher_context:
+ * @context: the #GksuContext you want to get the sn context from
+ *
+ * Gets the current startup notification launcher context
+ *
+ * Returns: the #SnLauncherContext which is set, or NULL if none was set
+ */
+SnLauncherContext*
+gksu_context_get_launcher_context (GksuContext *context)
+{
+  return context->sn_context;
+}
+
+/**
  * gksu_context_set_debug:
  * @context: the #GksuContext you want to modify
  * @value: TRUE or FALSE

Modified: libgksu/trunk/libgksu/libgksu.h
===================================================================
--- libgksu/trunk/libgksu/libgksu.h	2006-07-11 00:48:44 UTC (rev 650)
+++ libgksu/trunk/libgksu/libgksu.h	2006-07-12 23:49:25 UTC (rev 651)
@@ -148,6 +148,12 @@
 gksu_context_get_grab (GksuContext *context);
 
 void
+gksu_context_set_launcher_context (GksuContext *context, SnLauncherContext *sn_context);
+
+SnLauncherContext*
+gksu_context_get_launcher_context (GksuContext *context);
+
+void
 gksu_context_set_debug (GksuContext *context, gboolean value);
 
 gboolean




More information about the gksu-commits mailing list