Author: kitone
Date: Thu Jan  8 23:36:04 2015
New Revision: 883

URL: http://svn.gna.org/viewcvs/subtitleeditor?rev=883&view=rev
Log:
Fix bug #22489 : Text correction - ability to double click to swith enable 
status.

Modified:
    trunk/ChangeLog
    trunk/plugins/actions/textcorrection/patternspage.h
    trunk/plugins/actions/textcorrection/taskspage.h

Modified: trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/subtitleeditor/trunk/ChangeLog?rev=883&r1=882&r2=883&view=diff
==============================================================================
--- trunk/ChangeLog     (original)
+++ trunk/ChangeLog     Thu Jan  8 23:36:04 2015
@@ -1,3 +1,9 @@
+2015-01-08  kitone  <[email protected]>
+
+       * plugins/actions/textcorrection/patternspage.h:
+       * plugins/actions/textcorrection/taskspage.h:
+       Fix bug #22489 : Text correction - ability to double click to swith 
enable status.
+
 2015-01-08  kitone  <[email protected]>
 
        * plugins/actions/textcorrection/patternspage.h:

Modified: trunk/plugins/actions/textcorrection/patternspage.h
URL: 
http://svn.gna.org/viewcvs/subtitleeditor/trunk/plugins/actions/textcorrection/patternspage.h?rev=883&r1=882&r2=883&view=diff
==============================================================================
--- trunk/plugins/actions/textcorrection/patternspage.h (original)
+++ trunk/plugins/actions/textcorrection/patternspage.h Thu Jan  8 23:36:04 2015
@@ -349,6 +349,8 @@
                        column->pack_start(*renderer);
                        column->add_attribute(renderer->property_markup(), 
m_column.label);
                }
+               m_treeview->signal_row_activated().connect(
+                       sigc::mem_fun(*this, &PatternsPage::on_row_activated));
        }
 
        /*
@@ -365,6 +367,13 @@
                        (*it)[m_column.enabled] = value;
                        m_patternManager.set_active(name, value);
                }
+       }
+
+       /*
+        */
+       void on_row_activated(const Gtk::TreeModel::Path &path, 
Gtk::TreeViewColumn *)
+       {
+               on_enabled_toggled(path.to_string());
        }
 
        /*

Modified: trunk/plugins/actions/textcorrection/taskspage.h
URL: 
http://svn.gna.org/viewcvs/subtitleeditor/trunk/plugins/actions/textcorrection/taskspage.h?rev=883&r1=882&r2=883&view=diff
==============================================================================
--- trunk/plugins/actions/textcorrection/taskspage.h    (original)
+++ trunk/plugins/actions/textcorrection/taskspage.h    Thu Jan  8 23:36:04 2015
@@ -81,6 +81,8 @@
                        column->pack_start(*label);
                        column->add_attribute(label->property_markup(), 
m_column.label);
                }
+               m_treeview->signal_row_activated().connect(
+                       sigc::mem_fun(*this, &TasksPage::on_row_activated));
        }
 
        /*
@@ -97,6 +99,13 @@
                        (*it)[m_column.enabled] = enabled;
                        page->set_enable(enabled);
                }
+       }
+
+       /*
+        */
+       void on_row_activated(const Gtk::TreeModel::Path &path, 
Gtk::TreeViewColumn *)
+       {
+               on_enabled_toggled(path.to_string());
        }
 
        /*


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

Reply via email to