PATCH: Add double click to edit (as oposed to diff) as a preference



Hi,

I recently discovered meld and think it is so far the best opensource
diff tool I've encountered.

This is my first small patch as a suggestion for handling the
activation in the VC tree. I prefer to have it set and then use
gnome-open to edit files with their associated editor.

There are a couple of other features I am interested in adding:

1. Version control log in the context menu
2. And a bit of an ambitious one:  A time lapse view feature like the
Perforce commercial client has (
http://www.perforce.com/perforce/products/tours/p4v/p4v_time_lapse_view_7.html
)

Let me know if anybody else has had some ideas on this or started
effort on it already.

Thanks,
Jacques

--
"On two occasions I have been asked, 'Pray, Mr. Babbage, if you put
into the machine wrong figures, will the right answers come out?' I am
not able rightly to apprehend the kind of confusion of ideas that
could provoke such a question."
Charles Babbage
Index: meldapp.py
===================================================================
RCS file: /cvs/gnome/meld/meldapp.py,v
retrieving revision 1.109
diff -r1.109 meldapp.py
237a238
>         self.checkbutton_doubleclick_edits.set_active( self.prefs.doubleclick_edits )
296a298,299
>     def on_checkbutton_doubleclick_edits_toggled(self, check):
>         self.prefs.doubleclick_edits = check.get_active()
407a411
>         "doubleclick_edits": prefs.Value(prefs.BOOL, 0),
Index: vcview.py
===================================================================
RCS file: /cvs/gnome/meld/vcview.py,v
retrieving revision 1.7
diff -r1.7 vcview.py
289a290,292
>         if self.prefs.doubleclick_edits:
>             self._edit_files( [path] )
>         else:
Index: glade2/meldapp.glade
===================================================================
RCS file: /cvs/gnome/meld/glade2/meldapp.glade,v
retrieving revision 1.33
diff -r1.33 meldapp.glade
52d51
< 
1363d1361
< 
2097a2096,2115
> 
> 			      <child>
> 				<widget class="GtkCheckButton" id="checkbutton_doubleclick_edits">
> 				  <property name="visible">True</property>
> 				  <property name="can_focus">True</property>
> 				  <property name="label" translatable="yes">Double click edits (diff when off)</property>
> 				  <property name="use_underline">True</property>
> 				  <property name="relief">GTK_RELIEF_NORMAL</property>
> 				  <property name="focus_on_click">True</property>
> 				  <property name="active">False</property>
> 				  <property name="inconsistent">False</property>
> 				  <property name="draw_indicator">True</property>
> 				  <signal name="toggled" handler="on_checkbutton_doubleclick_edits_toggled" last_modification_time="Thu, 2 March 2006 00:56:33 GMT"/>
> 				</widget>
> 				<packing>
> 				  <property name="padding">0</property>
> 				  <property name="expand">False</property>
> 				  <property name="fill">False</property>
> 				</packing>
> 			      </child>
4561d4578
< 







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]