diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-08-11 00:14:32 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-08-11 00:14:32 +0000 |
| commit | 9bb3dac067eec3752ba52849cdad47dbdce824af (patch) | |
| tree | e51334d75ff3b1de345d85b4d99e57e3c049300f /src/widgets | |
| parent | clean up code slightly (diff) | |
| download | inkscape-9bb3dac067eec3752ba52849cdad47dbdce824af.tar.gz inkscape-9bb3dac067eec3752ba52849cdad47dbdce824af.zip | |
patch from bug 169004
(bzr r6605)
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/toolbox.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index a27e3906c..a7591608f 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -5175,12 +5175,15 @@ sp_text_toolbox_family_changed (GtkTreeSelection *selection, gtk_widget_grab_focus (GTK_WIDGET(desktop->canvas)); } +/* This is where execution comes when the contents of the font family box have been completed + by the press of the return key */ void sp_text_toolbox_family_entry_activate (GtkEntry *entry, GObject *tbl) { - const char *family = gtk_entry_get_text (entry); + const char *family = gtk_entry_get_text (entry); // Fetch the requested font family +// Try to match that to a known font. If not, then leave current font alone and remain focused on text box try { Gtk::TreePath path = Inkscape::FontLister::get_instance()->get_row_for_font (family); GtkTreeSelection *selection = GTK_TREE_SELECTION (g_object_get_data (G_OBJECT(tbl), "family-tree-selection")); |
