mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
reworked album query dialog
This commit is contained in:
parent
f1831a5569
commit
b9b1ba989a
@ -92,7 +92,7 @@ class Client(MPDClient):
|
|||||||
class AlbumDialog(Gtk.Dialog):
|
class AlbumDialog(Gtk.Dialog):
|
||||||
def __init__(self, parent, client, album, artist, year):
|
def __init__(self, parent, client, album, artist, year):
|
||||||
Gtk.Dialog.__init__(self, title=(artist+" - "+album+" ("+year+")"), transient_for=parent)
|
Gtk.Dialog.__init__(self, title=(artist+" - "+album+" ("+year+")"), transient_for=parent)
|
||||||
self.add_buttons(Gtk.STOCK_ADD, Gtk.ResponseType.ACCEPT, Gtk.STOCK_MEDIA_PLAY, Gtk.ResponseType.YES, Gtk.STOCK_OK, Gtk.ResponseType.OK, Gtk.STOCK_CLOSE, Gtk.ResponseType.CLOSE)
|
self.add_buttons(Gtk.STOCK_ADD, Gtk.ResponseType.ACCEPT, Gtk.STOCK_MEDIA_PLAY, Gtk.ResponseType.YES, Gtk.STOCK_OPEN, Gtk.ResponseType.OK, Gtk.STOCK_CLOSE, Gtk.ResponseType.CLOSE)
|
||||||
self.set_default_size(800, 600)
|
self.set_default_size(800, 600)
|
||||||
|
|
||||||
#adding vars
|
#adding vars
|
||||||
@ -606,7 +606,7 @@ class Browser(Gtk.Box):
|
|||||||
album = AlbumDialog(self.window, self.client, selected_album, selected_artist, selected_album_year)
|
album = AlbumDialog(self.window, self.client, selected_album, selected_artist, selected_album_year)
|
||||||
response = album.run()
|
response = album.run()
|
||||||
if response == Gtk.ResponseType.OK:
|
if response == Gtk.ResponseType.OK:
|
||||||
self.title_list.album_to_playlist(selected_album, selected_artist, selected_album_year, False)
|
self.album_list.iconview.select_path(path)
|
||||||
elif response == Gtk.ResponseType.ACCEPT:
|
elif response == Gtk.ResponseType.ACCEPT:
|
||||||
self.title_list.album_to_playlist(selected_album, selected_artist, selected_album_year, True)
|
self.title_list.album_to_playlist(selected_album, selected_artist, selected_album_year, True)
|
||||||
elif response == Gtk.ResponseType.YES:
|
elif response == Gtk.ResponseType.YES:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
dnl -*- Mode: autoconf -*-
|
dnl -*- Mode: autoconf -*-
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
AC_PREREQ([2.68])
|
AC_PREREQ([2.68])
|
||||||
AC_INIT([mpdevil], [0.4.0])
|
AC_INIT([mpdevil], [0.4.1])
|
||||||
AC_CONFIG_SRCDIR([bin/mpdevil.py])
|
AC_CONFIG_SRCDIR([bin/mpdevil.py])
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user