+2006-02-07 John Spray <spray@lyx.org>
+
+ * GCitation.[Ch]: Allow adding items by double clicking
+
2006-02-06 John Spray <spray@lyx.org>
* GGraphics.[Ch], glade/graphics.glade: Use GtkLengthEntry, touch up glade
findentry_->signal_changed().connect(
sigc::mem_fun(*this, &GCitation::set_search_buttons));
+ bibkeysview_->signal_row_activated().connect(
+ sigc::mem_fun(*this, &GCitation::bibkeysview_activated));
bibselection_->signal_changed().connect(
sigc::mem_fun(*this, &GCitation::bib_selected));
+
citeselection_->signal_changed().connect(
sigc::mem_fun(*this, &GCitation::cite_selected));
find(biblio::FORWARD);
}
+
+void GCitation::bibkeysview_activated(const Gtk::TreeModel::Path&, Gtk::TreeViewColumn*)
+{
+ add();
+}
+
} // namespace frontend
} // namespace lyx
*/
static inline bool bib_visible(const Gtk::TreeModel::const_iterator&);
+ /// Handle adding a bib key by double clicking
+ void bibkeysview_activated(const Gtk::TreeModel::Path&, Gtk::TreeViewColumn*);
+
/** apply() won't act when this is true.
true if no text is selected when the citation dialog is opened
*/