diff options
author | nyamatongwe <unknown> | 2010-08-18 10:35:42 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-08-18 10:35:42 +1000 |
commit | d4acea45b1d0f2f31adda7f08d4292adc748a0d7 (patch) | |
tree | cbcdc2487c592ce4671fbf7b74d59215cf0f07d3 | |
parent | 4c6d1206dcea3b49f6ab9d2e2a8d5d907395d67b (diff) | |
download | scintilla-mirror-d4acea45b1d0f2f31adda7f08d4292adc748a0d7.tar.gz |
Removed code that is not used since GTK+ 1.x is no longer supported.
That code used deprecated APIs.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index d43fcdb33..996d99aff 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -204,7 +204,6 @@ private: static void Map(GtkWidget *widget); void UnMapThis(); static void UnMap(GtkWidget *widget); - static gint CursorMoved(GtkWidget *widget, int xoffset, int yoffset, ScintillaGTK *sciThis); gint FocusInThis(GtkWidget *widget); static gint FocusIn(GtkWidget *widget, GdkEventFocus *event); gint FocusOutThis(GtkWidget *widget); @@ -503,16 +502,6 @@ void ScintillaGTK::MainForAll(GtkContainer *container, gboolean include_internal } } -gint ScintillaGTK::CursorMoved(GtkWidget *, int xoffset, int yoffset, ScintillaGTK *sciThis) { - GdkRectangle area; - area.x = xoffset; - area.y = yoffset; - area.width = 1; - area.height = 1; - gtk_im_context_set_cursor_location(sciThis->im_context, &area); - return FALSE; -} - gint ScintillaGTK::FocusInThis(GtkWidget *widget) { try { GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_FOCUS); @@ -2089,36 +2078,6 @@ void ScintillaGTK::Destroy(GObject *object) { } } -static void DrawChild(GtkWidget *widget, GdkRectangle *area) { - GdkRectangle areaIntersect; - if (widget && - GTK_WIDGET_DRAWABLE(widget) && - gtk_widget_intersect(widget, area, &areaIntersect)) { - gtk_widget_draw(widget, &areaIntersect); - } -} - -void ScintillaGTK::Draw(GtkWidget *widget, GdkRectangle *area) { - ScintillaGTK *sciThis = ScintillaFromWidget(widget); - try { - //Platform::DebugPrintf("Draw %p %0d,%0d %0d,%0d\n", widget, area->x, area->y, area->width, area->height); - PRectangle rcPaint(area->x, area->y, area->x + area->width, area->y + area->height); - sciThis->SyncPaint(rcPaint); - if (GTK_WIDGET_DRAWABLE(PWidget(sciThis->wMain))) { - DrawChild(PWidget(sciThis->scrollbarh), area); - DrawChild(PWidget(sciThis->scrollbarv), area); - } - - Point pt = sciThis->PointMainCaret(); - pt.y += sciThis->vs.lineHeight - 2; - if (pt.x < 0) pt.x = 0; - if (pt.y < 0) pt.y = 0; - CursorMoved(widget, pt.x, pt.y, sciThis); - } catch (...) { - sciThis->errorStatus = SC_STATUS_FAILURE; - } -} - gint ScintillaGTK::ExposeTextThis(GtkWidget * /*widget*/, GdkEventExpose *ose) { try { paintState = painting; |