Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ branch:  streamtuner2


Diff

Differences From Artifact [12f5bb606e]:

To Artifact [d6b56fa41f]:


574
575
576
577
578
579
580
581

582





583
584
585







586
587
588
589

590
591
592
593
594
595
596
574
575
576
577
578
579
580

581
582
583
584
585
586
587



588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606







-
+

+
+
+
+
+
-
-
-
+
+
+
+
+
+
+




+






                return gtk.STOCK_CANCEL
        else:
            return gtk.STOCK_NEW


    # Attach textual menu entry and callback
    @staticmethod
    def add_menu(menuwidget, label, action, insert=None):
    def add_menu(menuwidget, label, action=None, stock=None, submenu=None, insert=None):
        for where in list(menuwidget):
            # plain or image menu item
            if stock:
                m = gtk.ImageMenuItem(stock)
                m.set_label(label)
            else:
            m = gtk.MenuItem(label)
            m.connect("activate", action)
            m.show()
                m = gtk.MenuItem(label)
            # callback or submenu
            if action:
                m.connect("activate", action)
            elif submenu:
                m.set_submenu(submenu)
            # insert or append
            if insert:
                where.insert(m, insert)
            else:
                where.add(m)
            m.show()
        

    # gtk.messagebox
    @staticmethod
    def msg(text, style=gtk.MESSAGE_INFO, buttons=gtk.BUTTONS_CLOSE, yes=None):
        m = gtk.MessageDialog(None, 0, style, buttons, message_format=text)
        m.show()