Author: kitone
Date: Thu Apr 30 21:56:58 2015
New Revision: 932

URL: http://svn.gna.org/viewcvs/subtitleeditor?rev=932&view=rev
Log:
Fix bug #23521 : Videos, waveform and keyframe files drag'n'dropped do not show 
up in recently opened

Modified:
    trunk/ChangeLog
    trunk/plugins/actions/keyframesmanagement/keyframesmanagement.cc
    trunk/plugins/actions/videoplayermanagement/videoplayermanagement.cc
    trunk/plugins/actions/wavefrommanagement/waveformmanagement.cc

Modified: trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/subtitleeditor/trunk/ChangeLog?rev=932&r1=931&r2=932&view=diff
==============================================================================
--- trunk/ChangeLog     (original)
+++ trunk/ChangeLog     Thu Apr 30 21:56:58 2015
@@ -1,3 +1,10 @@
+2015-04-30  kitone  <[email protected]>
+
+       * plugins/actions/keyframesmanagement/keyframesmanagement.cc:
+       * plugins/actions/videoplayermanagement/videoplayermanagement.cc:
+       * plugins/actions/wavefrommanagement/waveformmanagement.cc:
+       Fix bug #23521 : Videos, waveform and keyframe files drag'n'dropped do 
not show up in recently opened
+
 2015-04-30  kitone  <[email protected]>
 
        * plugins/actions/dialoguize/dialog-dialoguize-preferences.ui:

Modified: trunk/plugins/actions/keyframesmanagement/keyframesmanagement.cc
URL: 
http://svn.gna.org/viewcvs/subtitleeditor/trunk/plugins/actions/keyframesmanagement/keyframesmanagement.cc?rev=932&r1=931&r2=932&view=diff
==============================================================================
--- trunk/plugins/actions/keyframesmanagement/keyframesmanagement.cc    
(original)
+++ trunk/plugins/actions/keyframesmanagement/keyframesmanagement.cc    Thu Apr 
30 21:56:58 2015
@@ -4,7 +4,7 @@
  *     http://home.gna.org/subtitleeditor/
  *     https://gna.org/projects/subtitleeditor/
  *
- *     Copyright @ 2005-2014, kitone
+ *     Copyright @ 2005-2015, kitone
  *
  *     This program is free software; you can redistribute it and/or modify
  *     it under the terms of the GNU General Public License as published by
@@ -230,7 +230,17 @@
                if(msg == Player::STREAM_READY || msg == Player::STATE_NONE)
                        update_ui();
                else if(msg == Player::KEYFRAME_CHANGED)
-                       update_ui();
+                       on_keyframes_changed();
+       }
+
+       /*
+        */
+       void on_keyframes_changed()
+       {
+               Glib::RefPtr<KeyFrames> kf = player()->get_keyframes();
+               if(kf)
+                       add_in_recent_manager(kf->get_uri());
+               update_ui();
        }
 
        /*

Modified: trunk/plugins/actions/videoplayermanagement/videoplayermanagement.cc
URL: 
http://svn.gna.org/viewcvs/subtitleeditor/trunk/plugins/actions/videoplayermanagement/videoplayermanagement.cc?rev=932&r1=931&r2=932&view=diff
==============================================================================
--- trunk/plugins/actions/videoplayermanagement/videoplayermanagement.cc        
(original)
+++ trunk/plugins/actions/videoplayermanagement/videoplayermanagement.cc        
Thu Apr 30 21:56:58 2015
@@ -4,7 +4,7 @@
  *     http://home.gna.org/subtitleeditor/
  *     https://gna.org/projects/subtitleeditor/
  *
- *     Copyright @ 2005-2012, kitone
+ *     Copyright @ 2005-2015, kitone
  *
  *     This program is free software; you can redistribute it and/or modify
  *     it under the terms of the GNU General Public License as published by
@@ -508,7 +508,10 @@
                        if(msg == Player::STATE_NONE)
                                remove_menu_audio_track();
                        else if(msg == Player::STREAM_READY)
+                       {
                                build_menu_audio_track();
+                               add_in_recent_manager(player()->get_uri());
+                       }
                        update_ui();
                        // If need, ask to display the video player
                        if(msg == Player::STREAM_READY)

Modified: trunk/plugins/actions/wavefrommanagement/waveformmanagement.cc
URL: 
http://svn.gna.org/viewcvs/subtitleeditor/trunk/plugins/actions/wavefrommanagement/waveformmanagement.cc?rev=932&r1=931&r2=932&view=diff
==============================================================================
--- trunk/plugins/actions/wavefrommanagement/waveformmanagement.cc      
(original)
+++ trunk/plugins/actions/wavefrommanagement/waveformmanagement.cc      Thu Apr 
30 21:56:58 2015
@@ -4,7 +4,7 @@
  *     http://home.gna.org/subtitleeditor/
  *     https://gna.org/projects/subtitleeditor/
  *
- *     Copyright @ 2005-2013, kitone
+ *     Copyright @ 2005-2015, kitone
  *
  *     This program is free software; you can redistribute it and/or modify
  *     it under the terms of the GNU General Public License as published by
@@ -202,7 +202,7 @@
                WaveformManager* wm = get_waveform_manager();
                
                wm->signal_waveform_changed().connect(
-                               sigc::mem_fun(*this, 
&WaveformManagement::update_ui));
+                               sigc::mem_fun(*this, 
&WaveformManagement::on_waveform_changed));
 
                get_config().signal_changed("waveform").connect(
                                sigc::mem_fun(*this, 
&WaveformManagement::on_config_waveform_changed));
@@ -248,6 +248,16 @@
                
action_group->get_action("waveform/respect-timing")->set_sensitive(has_waveform);
 
                
action_group->get_action("waveform/center-with-selected-subtitle")->set_sensitive(has_waveform
 && has_document);
+       }
+
+       /*
+        */
+       void on_waveform_changed()
+       {
+               Glib::RefPtr<Waveform> wf = 
get_waveform_manager()->get_waveform();
+               if(wf)
+                       add_in_recent_manager(wf->get_uri());
+               update_ui();
        }
 
        /*


_______________________________________________
Subtitleeditor-commits mailing list
[email protected]
https://mail.gna.org/listinfo/subtitleeditor-commits

Reply via email to