kov changed libgksu/branches/libgksu2/ChangeLog, libgksu/branches/libgksu2/docs/libgksu-undocumented.txt, libgksu/branches/libgksu2/libgksu/libgksu.c

Gustavo Noronha kov at costa.debian.org
Tue Apr 25 02:31:13 UTC 2006


Mensagem de log: 
use the internal context->sudo_mode to tell the
ask_pass function if we're on su or sudo mode


-----


Modified: libgksu/branches/libgksu2/ChangeLog
===================================================================
--- libgksu/branches/libgksu2/ChangeLog	2006-04-25 02:13:28 UTC (rev 572)
+++ libgksu/branches/libgksu2/ChangeLog	2006-04-25 02:31:11 UTC (rev 573)
@@ -1,5 +1,9 @@
 2006-04-24  Gustavo Noronha Silva  <kov at debian.org>
 
+	* libgksu/libgksu.c:
+	- use the internal context->sudo_mode to tell the
+	  ask_pass function if we're on su or sudo mode
+
 	* libgksu/libgksu.{c.h}:
 	- implemented the message setting and getting
 	  functions, and use the message that is given

Modified: libgksu/branches/libgksu2/docs/libgksu-undocumented.txt
===================================================================
--- libgksu/branches/libgksu2/docs/libgksu-undocumented.txt	2006-04-25 02:13:28 UTC (rev 572)
+++ libgksu/branches/libgksu2/docs/libgksu-undocumented.txt	2006-04-25 02:31:11 UTC (rev 573)
@@ -5,6 +5,7 @@
 
 
 GksuError
+gksu_context_set_grab
 
 
 libgksu:Short_Description

Modified: libgksu/branches/libgksu2/libgksu/libgksu.c
===================================================================
--- libgksu/branches/libgksu2/libgksu/libgksu.c	2006-04-25 02:13:28 UTC (rev 572)
+++ libgksu/branches/libgksu2/libgksu/libgksu.c	2006-04-25 02:31:11 UTC (rev 573)
@@ -1522,6 +1522,8 @@
   int fdpty;
   pid_t pid;
 
+  context->sudo_mode = FALSE;
+
   gksu_quark = g_quark_from_string (PACKAGE);
 
   if (!context->command)
@@ -1927,6 +1929,8 @@
   int parent_pipe[2];	/* For talking to the parent */
   int child_pipe[2];	/* For talking to the child */
 
+  context->sudo_mode = TRUE;
+
   gksu_quark = g_quark_from_string (PACKAGE);
 
   if (!context->command)




More information about the gksu-commits mailing list