finch/libgnt/gntentry.c

changeset 38366
68c94444252e
parent 36257
c5445f25f90f
equal deleted inserted replaced
38365:2ee19fb5fb0d 38366:68c94444252e
24 #include <string.h> 24 #include <string.h>
25 25
26 #include "gntinternal.h" 26 #include "gntinternal.h"
27 #include "gntbox.h" 27 #include "gntbox.h"
28 #include "gntentry.h" 28 #include "gntentry.h"
29 #include "gntmarshal.h"
30 #include "gntstyle.h" 29 #include "gntstyle.h"
31 #include "gnttree.h" 30 #include "gnttree.h"
32 #include "gntutils.h" 31 #include "gntutils.h"
33 32
34 enum 33 enum
949 signals[SIG_TEXT_CHANGED] = 948 signals[SIG_TEXT_CHANGED] =
950 g_signal_new("text_changed", 949 g_signal_new("text_changed",
951 G_TYPE_FROM_CLASS(klass), 950 G_TYPE_FROM_CLASS(klass),
952 G_SIGNAL_RUN_LAST, 951 G_SIGNAL_RUN_LAST,
953 G_STRUCT_OFFSET(GntEntryClass, text_changed), 952 G_STRUCT_OFFSET(GntEntryClass, text_changed),
954 NULL, NULL, 953 NULL, NULL, NULL,
955 g_cclosure_marshal_VOID__VOID,
956 G_TYPE_NONE, 0); 954 G_TYPE_NONE, 0);
957 955
958 signals[SIG_COMPLETION] = 956 signals[SIG_COMPLETION] =
959 g_signal_new("completion", 957 g_signal_new("completion",
960 G_TYPE_FROM_CLASS(klass), 958 G_TYPE_FROM_CLASS(klass),
961 G_SIGNAL_RUN_LAST, 959 G_SIGNAL_RUN_LAST,
962 0, NULL, NULL, 960 0, NULL, NULL, NULL,
963 gnt_closure_marshal_VOID__POINTER_POINTER,
964 G_TYPE_NONE, 2, G_TYPE_POINTER, G_TYPE_POINTER); 961 G_TYPE_NONE, 2, G_TYPE_POINTER, G_TYPE_POINTER);
965 962
966 gnt_bindable_class_register_action(bindable, "cursor-home", move_start, 963 gnt_bindable_class_register_action(bindable, "cursor-home", move_start,
967 GNT_KEY_CTRL_A, NULL); 964 GNT_KEY_CTRL_A, NULL);
968 gnt_bindable_register_binding(bindable, "cursor-home", GNT_KEY_HOME, NULL); 965 gnt_bindable_register_binding(bindable, "cursor-home", GNT_KEY_HOME, NULL);

mercurial