View | Details | Raw Unified | Return to bug 205429
Collapse All | Expand All

(-)xpn.py (-7 / +35 lines)
Lines 328-334 class MainWin: Link Here
328
        self.win_outbox=Outbox_Manager(self,VERSION)
328
        self.win_outbox=Outbox_Manager(self,VERSION)
329
        self.win_outbox.show()
329
        self.win_outbox.show()
330
330
331
            
332
    def open_edit_win(self,object,is_followup=False):
331
    def open_edit_win(self,object,is_followup=False):
333
        group=""
332
        group=""
334
        id_name=""
333
        id_name=""
Lines 395-401 class MainWin: Link Here
395
            self.win4=Edit_Win(self.configs,group,None,None,self.subscribed_groups,server_name=self.current_server,id_name=id_name)
394
            self.win4=Edit_Win(self.configs,group,None,None,self.subscribed_groups,server_name=self.current_server,id_name=id_name)
396
            #self.win4.show()
395
            #self.win4.show()
397
396
398
399
    def open_edit_mail_win(self,object):
397
    def open_edit_mail_win(self,object):
400
        to_name=""
398
        to_name=""
401
        id_name=""
399
        id_name=""
Lines 578-583 class MainWin: Link Here
578
        except: pass
576
        except: pass
579
        gtk.main_quit()
577
        gtk.main_quit()
580
578
579
    def tray_activated(self,  widget):
580
        if self.window.get_property("is-active"):
581
            self.window.iconify()
582
            self.window.hide()
583
        else:
584
            self.window.present()
585
            self.window.deiconify()
586
            widget.set_blinking(False)
587
588
    def tray_popuped(self,  widget,  button,  timestamp):
589
        menu = gtk.Menu()
590
        menuitem = gtk.ImageMenuItem(gtk.STOCK_PREFERENCES)
591
        menuitem.connect("activate",  self.open_configure_win)
592
        menu.append(menuitem)
593
        menu.append(gtk.SeparatorMenuItem())
594
        menuitem = gtk.ImageMenuItem(gtk.STOCK_ABOUT)
595
        menuitem.connect('activate', self.open_about_dialog)
596
        menu.append(menuitem)
597
        menuitem = gtk.ImageMenuItem(gtk.STOCK_QUIT)
598
        menuitem.connect('activate', self.destroy)
599
        menu.append(menuitem)
600
601
        menu.show_all()
602
        menu.popup(None,  None,  None,  button,  timestamp)
603
581
    def save_sorting_type(self,obj=None):
604
    def save_sorting_type(self,obj=None):
582
        for n in range(1,5):
605
        for n in range(1,5):
583
            col=self.threads_pane.threads_tree.get_column(n)
606
            col=self.threads_pane.threads_tree.get_column(n)
Lines 591-599 class MainWin: Link Here
591
                self.configs["ascend_order"]=ascend_order
614
                self.configs["ascend_order"]=ascend_order
592
                self.configs["sort_col"]=col_name
615
                self.configs["sort_col"]=col_name
593
                self.conf.write_configs()
616
                self.conf.write_configs()
594
         
617
595
                
596
    
597
    def show_subscribed(self):
618
    def show_subscribed(self):
598
        model,path_list,iter_list=self.groups_pane.get_selected_rows()
619
        model,path_list,iter_list=self.groups_pane.get_selected_rows()
599
        
620
        
Lines 1587-1592 class MainWin: Link Here
1587
        self.statusbar.push(1,message)
1608
        self.statusbar.push(1,message)
1588
        if total_headers:
1609
        if total_headers:
1589
            self.progressbar.set_text(_("Building Articles"))
1610
            self.progressbar.set_text(_("Building Articles"))
1611
            if not self.window.get_property("is-active"):
1612
                self.trayicon.set_blinking(True)
1590
        else:
1613
        else:
1591
            self.progressbar.set_text(_("No New Headers"))
1614
            self.progressbar.set_text(_("No New Headers"))
1592
        self.progressbar.set_fraction(2/float(2))
1615
        self.progressbar.set_fraction(2/float(2))
Lines 2599-2606 When you try to import a newsrc file XPN Link Here
2599
                        article.has_body=False
2622
                        article.has_body=False
2600
                    self.art_db.insertArticle(group[0],article)
2623
                    self.art_db.insertArticle(group[0],article)
2601
2624
2602
2603
2604
    def __init__(self,use_home,custom_dir):
2625
    def __init__(self,use_home,custom_dir):
2605
        Edit_Win.VERSION=VERSION
2626
        Edit_Win.VERSION=VERSION
2606
        Edit_Mail_Win.VERSION=VERSION
2627
        Edit_Mail_Win.VERSION=VERSION
Lines 2614-2619 When you try to import a newsrc file XPN Link Here
2614
        if ret>0 :sys.exit(ret)
2635
        if ret>0 :sys.exit(ret)
2615
        self.wdir=userdir.dir
2636
        self.wdir=userdir.dir
2616
        
2637
        
2638
        # handle the trayicon
2639
        self.trayicon = gtk.StatusIcon()
2640
        self.trayicon.set_tooltip_text(_("XPN Newsreader"))
2641
        self.trayicon.set_from_file("pixmaps/xpn-icon.png")
2642
        self.trayicon.connect("activate",  self.tray_activated)
2643
        self.trayicon.connect("popup-menu",  self.tray_popuped)
2644
2617
        self.conf=Config_File()
2645
        self.conf=Config_File()
2618
        self.configs=self.conf.get_configs()
2646
        self.configs=self.conf.get_configs()
2619
2647

Return to bug 205429