Skip to content

Commit

Permalink
[x] Fixed an index error
Browse files Browse the repository at this point in the history
  • Loading branch information
iJunkie22 committed Nov 18, 2014
1 parent 60d8f97 commit 4f0bdda
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions maintest.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def show_page(self, p_num_to_show):
try:
final_theme_file.write('[Icon Theme]\n')
for k, v in self.Ardis_index_dict.items():
final_theme_file.write("{0}={2}\n".format(k, v))
final_theme_file.write("{0}={1}\n".format(k, v))
for line in temp_theme_file:
final_theme_file.write(line)
finally:
Expand Down Expand Up @@ -618,8 +618,10 @@ def on_AdvSettings_toggle(self, tog):
# this is a simple test to make sure everything is connected
print tog.get_active()

def hide_adv_settings(self, wind, winbool):
def hide_adv_settings(self, wind, event):
wind.hide_on_delete()
if wind.props.title == 'Password':
self.pw_purpose = self.old_pw_purpose
return True
# print self.get_active()

Expand All @@ -631,13 +633,10 @@ def on_eventbox_radio_press(self, radio, image):

def on_open_window_clicked(self, window3, *junk):
window3.show_all()
if window3 != advsetwin:
print junk
if window3.props.title == 'Password':
pathstat = os.stat(os.path.join(abapp.Ardis_kw['path'], 'index.theme'))
builder.get_object('lbl_cur_u_num').props.label = str(os.getuid())
builder.get_object('lbl_cur_o_num').props.label = str(pathstat.st_uid)
else:
print "hi"

def on_pw_submit_clicked(self, text_entry):
if self.pw_purpose == "Unlock permissions of root-installed Ardis":
Expand Down

0 comments on commit 4f0bdda

Please sign in to comment.