aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-09-19 02:43:11 +0000
committernyamatongwe <unknown>2000-09-19 02:43:11 +0000
commit31ce0f4f8f3e6657c3849722af440d94e59daf91 (patch)
treee5ad9a4518a553b362e54f47cbc14a5d66293a0c
parent1fa371337abd171528b63af97cddbcd56913b326 (diff)
downloadscintilla-mirror-31ce0f4f8f3e6657c3849722af440d94e59daf91.tar.gz
Patch from Stephan with some casts to avoid warnings.
-rw-r--r--gtk/ScintillaGTK.cxx12
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))