comparison src/gtkimhtml.c @ 8539:e0f659e4323e

[gaim-migrate @ 9280] This fixes ^A (and some other stuff, but nobody cares about that) for Gtk-+2.4 users. Thanks to Etan Reisner for this beautiful gem. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Thu, 01 Apr 2004 00:25:54 +0000
parents 2f81f6478bae
children fae482a76700
comparison
equal deleted inserted replaced
8538:848dfa9fe9d4 8539:e0f659e4323e
388 char buf[7]; 388 char buf[7];
389 buf[0] = '\0'; 389 buf[0] = '\0';
390 390
391 if (event->state & GDK_CONTROL_MASK) 391 if (event->state & GDK_CONTROL_MASK)
392 switch (event->keyval) { 392 switch (event->keyval) {
393 #if (!GTK_CHECK_VERSION(2,2,0))
393 case 'a': 394 case 'a':
394 return TRUE; 395 return TRUE;
395 break; 396 break;
396 397
397 case GDK_Home: 398 case GDK_Home:
399 break; 400 break;
400 401
401 case GDK_End: 402 case GDK_End:
402 return TRUE; 403 return TRUE;
403 break; 404 break;
405 #endif /* Gtk+ >= 2.2.0 */
404 406
405 case 'b': /* ctrl-b is GDK_Left, which moves backwards. */ 407 case 'b': /* ctrl-b is GDK_Left, which moves backwards. */
406 case 'B': 408 case 'B':
407 if (imhtml->format_functions & GTK_IMHTML_BOLD) { 409 if (imhtml->format_functions & GTK_IMHTML_BOLD) {
408 if(imhtml->html_shortcuts) { 410 if(imhtml->html_shortcuts) {