diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-09-12 06:31:44 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-09-12 06:31:44 +0000 |
| commit | c7f3577f6c28f0a4f452b194a39e910cdb193e02 (patch) | |
| tree | 18d2304f57aae41b3e8bb4d7b628e3fe57958e2e /src/ui/tools/text-tool.cpp | |
| parent | Remove a lonly header noticed by Maren (diff) | |
| download | inkscape-c7f3577f6c28f0a4f452b194a39e910cdb193e02.tar.gz inkscape-c7f3577f6c28f0a4f452b194a39e910cdb193e02.zip | |
Fix non changing value on combobox. This can also be used in other toolbars
Diffstat (limited to 'src/ui/tools/text-tool.cpp')
| -rw-r--r-- | src/ui/tools/text-tool.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp index ef21ffea7..20b4c2c65 100644 --- a/src/ui/tools/text-tool.cpp +++ b/src/ui/tools/text-tool.cpp @@ -160,7 +160,6 @@ void TextTool::setup() { gtk_im_context_set_client_window(this->imc, gtk_widget_get_window (canvas)); - g_signal_connect(G_OBJECT(canvas), "motion_notify_event", G_CALLBACK(sptc_focus_in), this); g_signal_connect(G_OBJECT(canvas), "focus_in_event", G_CALLBACK(sptc_focus_in), this); g_signal_connect(G_OBJECT(canvas), "focus_out_event", G_CALLBACK(sptc_focus_out), this); g_signal_connect(G_OBJECT(this->imc), "commit", G_CALLBACK(sptc_commit), this); @@ -1795,9 +1794,6 @@ static void sp_text_context_forget_text(TextTool *tc) gint sptc_focus_in(GtkWidget *widget, GdkEventFocus */*event*/, TextTool *tc) { - if (!gtk_widget_is_focus (widget)) { - gtk_widget_grab_focus(widget); - } gtk_im_context_focus_in(tc->imc); return FALSE; } |
