diff options
| author | nyamatongwe <devnull@localhost> | 2000-09-19 02:43:11 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-09-19 02:43:11 +0000 |
| commit | 66b17b2072fcd5830a64b83766e7f197d29d0551 (patch) | |
| tree | e5ad9a4518a553b362e54f47cbc14a5d66293a0c | |
| parent | c5ba93891fd49a9b30cce75bbef3a72f4603fa98 (diff) | |
| download | scintilla-mirror-66b17b2072fcd5830a64b83766e7f197d29d0551.tar.gz | |
Patch from Stephan with some casts to avoid warnings.
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 90b594d83..a8644e81f 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -181,20 +181,20 @@ gint ScintillaGTK::Realize(GtkWidget *widget, ScintillaGTK *sciThis) { GdkICAttr *attr = sciThis->ic_attr; GdkICAttributesType attrmask = GDK_IC_ALL_REQ; GdkIMStyle style; - GdkIMStyle supported_style = GDK_IM_PREEDIT_NONE | + GdkIMStyle supported_style = (GdkIMStyle) (GDK_IM_PREEDIT_NONE | GDK_IM_PREEDIT_NOTHING | GDK_IM_PREEDIT_POSITION | GDK_IM_STATUS_NONE | - GDK_IM_STATUS_NOTHING; + GDK_IM_STATUS_NOTHING); if (widget->style && widget->style->font->type != GDK_FONT_FONTSET) - supported_style &= ~GDK_IM_PREEDIT_POSITION; + supported_style = (GdkIMStyle) ((int) supported_style & ~GDK_IM_PREEDIT_POSITION); attr->style = style = gdk_im_decide_style (supported_style); attr->client_window = widget->window; if ((colormap = gtk_widget_get_colormap (widget)) != gtk_widget_get_default_colormap ()) { - attrmask |= GDK_IC_PREEDIT_COLORMAP; + attrmask = (GdkICAttributesType) ((int) attrmask | GDK_IC_PREEDIT_COLORMAP); attr->preedit_colormap = colormap; } @@ -205,7 +205,7 @@ gint ScintillaGTK::Realize(GtkWidget *widget, ScintillaGTK *sciThis) { break; } - attrmask |= GDK_IC_PREEDIT_POSITION_REQ; + attrmask = (GdkICAttributesType) ((int) attrmask | GDK_IC_PREEDIT_POSITION_REQ); gdk_window_get_size (widget->window, &width, &height); attr->spot_location.x = 0; attr->spot_location.y = height; @@ -223,7 +223,7 @@ gint ScintillaGTK::Realize(GtkWidget *widget, ScintillaGTK *sciThis) { g_warning ("Can't create input context."); else { mask = gdk_window_get_events (widget->window); - mask |= gdk_ic_get_events (sciThis->ic); + mask = (GdkEventMask) ((int) mask | gdk_ic_get_events(sciThis->ic)); gdk_window_set_events (widget->window, mask); if (GTK_WIDGET_HAS_FOCUS (widget)) |
