Merge lp:~voluntatefaber/beat-box/bug934439 into lp:beat-box/1.x

Proposed by Andrea Basso
Status: Merged
Approved by: Victor Martinez
Approved revision: 554
Merged at revision: 568
Proposed branch: lp:~voluntatefaber/beat-box/bug934439
Merge into: lp:beat-box/1.x
Diff against target: 37 lines (+4/-4)
1 file modified
src/Widgets/SideTreeView.vala (+4/-4)
To merge this branch: bzr merge lp:~voluntatefaber/beat-box/bug934439
Reviewer Review Type Date Requested Status
Victor Martinez (community) Approve
Review via email: mp+93640@code.launchpad.net

Commit message

To post a comment you must log in.
Revision history for this message
Victor Martinez (victored) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/Widgets/SideTreeView.vala'
--- src/Widgets/SideTreeView.vala 2012-02-17 01:24:32 +0000
+++ src/Widgets/SideTreeView.vala 2012-02-17 19:48:17 +0000
@@ -114,7 +114,7 @@
114 radioMenu = new Gtk.Menu();114 radioMenu = new Gtk.Menu();
115 radioImportStations = new Gtk.MenuItem.with_label(_("Import Station"));115 radioImportStations = new Gtk.MenuItem.with_label(_("Import Station"));
116 radioMenu.append(radioImportStations);116 radioMenu.append(radioImportStations);
117 radioImportStations.activate.connect(playlistImportClicked);117 radioImportStations.activate.connect(()=> {playlistImportClicked ("Station");});
118 radioMenu.show_all();118 radioMenu.show_all();
119 119
120 //playlist right click menu120 //playlist right click menu
@@ -139,7 +139,7 @@
139 playlistRemove.activate.connect(playlistMenuRemoveClicked);139 playlistRemove.activate.connect(playlistMenuRemoveClicked);
140 playlistSave.activate.connect(playlistSaveClicked);140 playlistSave.activate.connect(playlistSaveClicked);
141 playlistExport.activate.connect(playlistExportClicked);141 playlistExport.activate.connect(playlistExportClicked);
142 playlistImport.activate.connect(playlistImportClicked);142 playlistImport.activate.connect(()=>{playlistImportClicked ();});
143 playlistMenu.show_all();143 playlistMenu.show_all();
144 144
145 this.button_press_event.connect(sideListClick);145 this.button_press_event.connect(sideListClick);
@@ -945,13 +945,13 @@
945 p.name = original_name;945 p.name = original_name;
946 }946 }
947 947
948 void playlistImportClicked() {948 void playlistImportClicked(string title = "Playlist") {
949 if(lm.doing_file_operations())949 if(lm.doing_file_operations())
950 return;950 return;
951 951
952 string file = "";952 string file = "";
953 string name = "";953 string name = "";
954 var file_chooser = new FileChooserDialog ("Import Playlist", lw,954 var file_chooser = new FileChooserDialog ("Import " + title, lw,
955 FileChooserAction.OPEN,955 FileChooserAction.OPEN,
956 Gtk.Stock.CANCEL, ResponseType.CANCEL,956 Gtk.Stock.CANCEL, ResponseType.CANCEL,
957 Gtk.Stock.OPEN, ResponseType.ACCEPT);957 Gtk.Stock.OPEN, ResponseType.ACCEPT);

Subscribers

People subscribed via source and target branches

to all changes: