Commits

Erik Grinaker committed ac1d7b7

tweaked 64-bit crash fix

Comments (0)

Files changed (1)

src/revelation-applet.in

 		# from gnome 2.10, the panel doesn't receive focus when clicked
 		# (the OverflowError exception is a workaround for what I suspect
 		# is a pygtk bug - see pygtk bug #300012)
-		if data.button == 1 and hasattr(gnomemisc, "panel_applet_request_focus") == True:
-			try:
+		try:
+			if data.button == 1 and hasattr(gnomemisc, "panel_applet_request_focus") == True:
 				gnomemisc.panel_applet_request_focus(self.applet, long(data.time))
 
-			except OverflowError:
-				gnomemisc.panel_applet_request_focus(self.applet, 0L)
+		except OverflowError:
+			gnomemisc.panel_applet_request_focus(self.applet, 0L)
 
 
 	def __cb_file_autolock(self, widget, data = None):