Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /gtk/ScintillaGTK.cxx [4f966f] .. [65a56e] Maximize Restore

  Switch to unified view

a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
...
...
2928
    } catch (...) {
2928
    } catch (...) {
2929
    }
2929
    }
2930
}
2930
}
2931
2931
2932
GtkWidget* scintilla_new() {
2932
GtkWidget* scintilla_new() {
2933
    return GTK_WIDGET(g_object_new(scintilla_get_type(), NULL));
2933
    GtkWidget *widget = GTK_WIDGET(g_object_new(scintilla_get_type(), NULL));
2934
  gtk_widget_set_direction(widget, GTK_TEXT_DIR_LTR);
2935
2936
  return widget;
2934
}
2937
}
2935
2938
2936
void scintilla_set_id(ScintillaObject *sci, uptr_t id) {
2939
void scintilla_set_id(ScintillaObject *sci, uptr_t id) {
2937
    ScintillaGTK *psci = reinterpret_cast<ScintillaGTK *>(sci->pscin);
2940
    ScintillaGTK *psci = reinterpret_cast<ScintillaGTK *>(sci->pscin);
2938
    psci->ctrlID = id;
2941
    psci->ctrlID = id;