repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: c075fca9ae6a84954fdd54857473c6b164923733: path_to: revision_to:
commit c075fca9ae6a84954fdd54857473c6b164923733 Author: Emanuele GiaquintaDate: Sat Jul 9 13:40:13 2011 +0000 Remove camelcase in some function names. diff --git a/src/command.C b/src/command.C
--- a/src/command.C
+++ b/src/command.C
@@ -989,7 +989,7 @@ rxvt_term::flush ()
scr_refresh ();
scrollBar.show (1);
#ifdef USE_XIM
- IMSendSpot ();
+ im_send_spot ();
#endif
}
@@ -1738,7 +1738,7 @@ rxvt_term::focus_in ()
#if USE_XIM
if (Input_Context != NULL)
{
- IMSetPosition ();
+ im_set_position ();
XSetICFocus (Input_Context);
}
#endif
diff --git a/src/main.C b/src/main.C
--- a/src/main.C
+++ b/src/main.C
@@ -1080,7 +1080,7 @@ rxvt_term::resize_all_windows (unsigned int newwidth, unsigned int newheight, in
scr_reset ();
#ifdef USE_XIM
- IMSetPosition ();
+ im_set_position ();
#endif
}
@@ -1151,7 +1151,7 @@ rxvt_term::im_set_preedit_area (XRectangle &preedit_rect,
/* Checking whether input method is running. */
bool
-rxvt_term::IMisRunning ()
+rxvt_term::im_is_running ()
{
Atom atom;
Window win;
@@ -1177,7 +1177,7 @@ rxvt_term::IMisRunning ()
}
void
-rxvt_term::IMSendSpot ()
+rxvt_term::im_send_spot ()
{
XPoint nspot;
XVaNestedList preedit_attr;
@@ -1293,7 +1293,7 @@ xim_preedit_caret (XIC ic, XPointer client_data, XIMPreeditCaretCallbackStruct *
* open a suitable preedit type
*/
bool
-rxvt_term::IM_get_IC (const char *modifiers)
+rxvt_term::im_get_ic (const char *modifiers)
{
int i, j, found;
XIM xim;
@@ -1501,7 +1501,7 @@ foundpet:
vt_select_input ();
#endif
- IMSetPosition ();
+ im_set_position ();
return true;
}
@@ -1539,7 +1539,7 @@ rxvt_term::im_cb ()
{
strcpy (buf, "@im=");
strncat (buf, s[i], IMBUFSIZ - 5);
- if (IM_get_IC (buf))
+ if (im_get_ic (buf))
{
found = true;
break;
@@ -1554,11 +1554,11 @@ rxvt_term::im_cb ()
}
/* try with XMODIFIERS env. var. */
- if (IM_get_IC (""))
+ if (im_get_ic (""))
goto done;
/* try with no modifiers base IF the user didn't specify an IM */
- if (IM_get_IC ("@im=none"))
+ if (im_get_ic ("@im=none"))
goto done;
done:
@@ -1569,7 +1569,7 @@ done:
}
void
-rxvt_term::IMSetPosition ()
+rxvt_term::im_set_position ()
{
XRectangle preedit_rect, status_rect, *needed_rect;
XVaNestedList preedit_attr, status_attr;
@@ -1577,7 +1577,7 @@ rxvt_term::IMSetPosition ()
if (!Input_Context
|| !focus
|| !(input_style & (XIMPreeditArea | XIMPreeditPosition))
- || !IMisRunning ())
+ || !im_is_running ())
return;
if (input_style & XIMPreeditPosition)
diff --git a/src/rxvt.h b/src/rxvt.h
--- a/src/rxvt.h +++ b/src/rxvt.h @@ -1343,10 +1343,10 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen void im_set_color (unsigned long &fg, unsigned long &bg); void im_set_preedit_area (XRectangle &preedit_rect, XRectangle &status_rect, const XRectangle &needed_rect); - bool IMisRunning (); - void IMSendSpot (); - bool IM_get_IC (const char *modifiers); - void IMSetPosition (); + bool im_is_running (); + void im_send_spot (); + bool im_get_ic (const char *modifiers); + void im_set_position (); #endif // command.C
-----END OF PAGE-----