← Back to team overview

ayatana-commits team mailing list archive

[Merge] lp:~mitya57/indicator-session/fix-lp-881832 into lp:indicator-session

 

Dmitry Shachnev has proposed merging lp:~mitya57/indicator-session/fix-lp-881832 into lp:indicator-session.

Requested reviews:
  Indicator Applet Developers (indicator-applet-developers)
Related bugs:
  Bug #881832 in Session Menu: "indicator_session_get_location returns wrong values"
  https://bugs.launchpad.net/indicator-session/+bug/881832

For more details, see:
https://code.launchpad.net/~mitya57/indicator-session/fix-lp-881832/+merge/80425

Fix return values of indicator_session_get_location, to solve problems with indicator-applet-session (gnome3 port of which is available at lp:~ted/indicator-applet/gtk3-panel3 and lp:~jconti/indicator-applet/gnome3).
-- 
https://code.launchpad.net/~mitya57/indicator-session/fix-lp-881832/+merge/80425
Your team ayatana-commits is subscribed to branch lp:indicator-session.
=== modified file 'src/indicator-session.c'
--- src/indicator-session.c	2011-09-27 04:30:46 +0000
+++ src/indicator-session.c	2011-10-26 07:11:23 +0000
@@ -277,11 +277,11 @@
 {  
 	IndicatorSession * self = INDICATOR_SESSION (io);
   if (entry == &self->users){
+    return 0;
+  }
+  else if (entry == &self->devices){
     return 1;
   }
-  else if (entry == &self->devices){
-    return 0;
-  }
   g_warning ("IOEntry handed to us to position but we don't own it!");
   return 0;
 }