~george-edison55/stackapplet/stackapplet-1.5

« back to all changes in this revision

Viewing changes to src/stackapplet.py

  • Committer: Nathan Osman
  • Date: 2010-10-14 22:17:07 UTC
  • Revision ID: admin@quickmediasolutions.com-20101014221707-den1yxu95tzmz1q7
Fixed image glitch, added debian files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
                
102
102
                menu = gtk.Menu()
103
103
                
 
104
                menu_item_acc_header = gtk.MenuItem("Accounts")
 
105
                menu.append(menu_item_acc_header)
 
106
                menu_item_acc_header.set_sensitive(False)
 
107
                menu_item_acc_header.show()
 
108
                
104
109
                num_added = self.add_accounts_to_menu(menu)
105
110
                
106
111
                if num_added:
110
115
                
111
116
                        separator.show()
112
117
                        menu.append(separator)
 
118
                else:
 
119
                        
 
120
                        menu_item_acc_header.set_label("No Accounts")
113
121
                
114
122
                # Add the other items
115
 
                menu_item_ref   = gtk.MenuItem("Refresh")
116
 
                menu_item_prefs = gtk.MenuItem("Preferences")
117
 
                menu_item_about = gtk.MenuItem("About")
118
 
                menu_item_quit  = gtk.MenuItem("Quit")
119
 
 
 
123
                menu_item_header = gtk.MenuItem("Tools")
 
124
                
 
125
                menu_item_ref    = gtk.MenuItem("Refresh")
 
126
                menu_item_prefs  = gtk.MenuItem("Preferences")
 
127
                menu_item_about  = gtk.MenuItem("About")
 
128
                menu_item_quit   = gtk.MenuItem("Quit")
 
129
                
 
130
                menu.append(menu_item_header)
120
131
                menu.append(menu_item_ref)
121
132
                menu.append(menu_item_prefs)
122
133
                menu.append(menu_item_about)
123
134
                menu.append(menu_item_quit)
124
 
 
 
135
                
 
136
                menu_item_header.set_sensitive(False)
125
137
                menu_item_ref  .connect("activate", self.menu_ref_activate)
126
138
                menu_item_prefs.connect("activate", self.menu_prefs_activate)
127
139
                menu_item_about.connect("activate", self.menu_about_activate)
128
140
                menu_item_quit .connect("activate", self.menu_quit_activate)
129
141
                
 
142
                menu_item_header.show()
130
143
                menu_item_ref.show()
131
144
                menu_item_prefs.show()
132
145
                menu_item_about.show()
174
187
                                f.close()
175
188
                                
176
189
                                return new_img
 
190
                        
 
191
                        return img_fn
177
192
                else:
178
193
                        
179
194
                        return img_fn