Mercurial > pidgin
comparison src/gtkimhtml.c @ 11385:78cd70f4834c
[gaim-migrate @ 13612]
a fairly straightforward patch from Sadrul Habib Chowdhury to make
control-r reset the formatting in a conversation (very useful) with
control-r (which I do not *think* will offend anyone as a default
keystroke), and have it be changable via ~/.gtkrc-2.0.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 31 Aug 2005 15:07:46 +0000 |
parents | a74244102c0a |
children | 16b0da1f376f |
comparison
equal
deleted
inserted
replaced
11384:08bf44bcedfe | 11385:78cd70f4834c |
---|---|
1228 g_cclosure_marshal_VOID__INT, | 1228 g_cclosure_marshal_VOID__INT, |
1229 G_TYPE_NONE, 1, | 1229 G_TYPE_NONE, 1, |
1230 G_TYPE_INT); | 1230 G_TYPE_INT); |
1231 signals[CLEAR_FORMAT] = g_signal_new("format_function_clear", | 1231 signals[CLEAR_FORMAT] = g_signal_new("format_function_clear", |
1232 G_TYPE_FROM_CLASS(gobject_class), | 1232 G_TYPE_FROM_CLASS(gobject_class), |
1233 G_SIGNAL_RUN_FIRST, | 1233 G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, |
1234 G_STRUCT_OFFSET(GtkIMHtmlClass, clear_format), | 1234 G_STRUCT_OFFSET(GtkIMHtmlClass, clear_format), |
1235 NULL, | 1235 NULL, |
1236 0, | 1236 0, |
1237 g_cclosure_marshal_VOID__VOID, | 1237 g_cclosure_marshal_VOID__VOID, |
1238 G_TYPE_NONE, 0); | 1238 G_TYPE_NONE, 0); |
1273 gtk_binding_entry_add_signal (binding_set, GDK_u, GDK_CONTROL_MASK, "format_function_toggle", 1, G_TYPE_INT, GTK_IMHTML_UNDERLINE); | 1273 gtk_binding_entry_add_signal (binding_set, GDK_u, GDK_CONTROL_MASK, "format_function_toggle", 1, G_TYPE_INT, GTK_IMHTML_UNDERLINE); |
1274 gtk_binding_entry_add_signal (binding_set, GDK_plus, GDK_CONTROL_MASK, "format_function_toggle", 1, G_TYPE_INT, GTK_IMHTML_GROW); | 1274 gtk_binding_entry_add_signal (binding_set, GDK_plus, GDK_CONTROL_MASK, "format_function_toggle", 1, G_TYPE_INT, GTK_IMHTML_GROW); |
1275 gtk_binding_entry_add_signal (binding_set, GDK_equal, GDK_CONTROL_MASK, "format_function_toggle", 1, G_TYPE_INT, GTK_IMHTML_GROW); | 1275 gtk_binding_entry_add_signal (binding_set, GDK_equal, GDK_CONTROL_MASK, "format_function_toggle", 1, G_TYPE_INT, GTK_IMHTML_GROW); |
1276 gtk_binding_entry_add_signal (binding_set, GDK_minus, GDK_CONTROL_MASK, "format_function_toggle", 1, G_TYPE_INT, GTK_IMHTML_SHRINK); | 1276 gtk_binding_entry_add_signal (binding_set, GDK_minus, GDK_CONTROL_MASK, "format_function_toggle", 1, G_TYPE_INT, GTK_IMHTML_SHRINK); |
1277 binding_set = gtk_binding_set_by_class(klass); | 1277 binding_set = gtk_binding_set_by_class(klass); |
1278 gtk_binding_entry_add_signal (binding_set, GDK_r, GDK_CONTROL_MASK, "format_function_clear", 0); | |
1278 gtk_binding_entry_add_signal (binding_set, GDK_KP_Enter, 0, "message_send", 0); | 1279 gtk_binding_entry_add_signal (binding_set, GDK_KP_Enter, 0, "message_send", 0); |
1279 gtk_binding_entry_add_signal (binding_set, GDK_Return, 0, "message_send", 0); | 1280 gtk_binding_entry_add_signal (binding_set, GDK_Return, 0, "message_send", 0); |
1280 } | 1281 } |
1281 | 1282 |
1282 static void gtk_imhtml_init (GtkIMHtml *imhtml) | 1283 static void gtk_imhtml_init (GtkIMHtml *imhtml) |