def profile_update(self, data, error):
        """
        Function called through a timer, update profile and all
        related data on the GUI.
        """
        self.user = data
        if error:
            self.show_error("There was a connection problem with the login "
                            "page. Live profile update will be disabled.\n"
                            "Please relog/restart the client.")
            return False
        if not self.islogged:
            return False
        self.accountlabel.set_text(self.user.name)
        self.emaillabel.set_text(self.user.email)
        title = "%s - Logged in as: %s" / (self.window_base_title,
                                           self.user.name)
        self.window.set_title(title)
        if self.user.forum != "0":
            self.forumnotelabel.set_text(self.user.forum)
        else:
            self.forumnotelabel.set_text("none")
        if self.user.messages != "0":
            self.privatenotelabel.set_text(self.user.messages)
        else:
            self.privatenotelabel.set_text("none")
        if self.user.games != "0":
            self.gamenotelabel.set_text(self.user.games)
        else:
            self.gamenotelabel.set_text("none")
        # Let's load the picture from the web
        response = urllib2.urlopen(self.user.imagesmall)
        loader = gtk.gdk.PixbufLoader()
        loader.write(response.read())
        loader.close()
        pixbuf = loader.get_pixbuf()
        self.profilepic.set_from_pixbuf(pixbuf.scale_simple(35, 35,
                                                            gtk.gdk.INTERP_BILINEAR))
        self.profiletabpage.show()
        # Refresh the update based on the settings
        # we do this because they may change dynamically
        # so we have to break the chain and re-create it every time
        gobject.timeout_add_seconds(int(self.settings.data["profile_update"]),
                                    self.do_profile_update)
        return False
dataset/ETHPy150Open Morgawr/gogonlinux/gog_utils/gog_gui.py/GogTuxGUI.profile_update/operator `%` -> `/`