static void class_init (C2SMTPClass *klass) { GtkObjectClass *object_class; object_class = (GtkObjectClass *) klass; parent_class = gtk_type_class (c2_net_object_get_type ()); signals[SMTP_UPDATE] = gtk_signal_new ("smtp_update", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (C2SMTPClass, smtp_update), c2_marshal_NONE__INT_INT_INT, GTK_TYPE_NONE, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_INT); signals[FINISHED] = gtk_signal_new ("finished", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (C2SMTPClass, finished), gtk_marshal_NONE__INT_INT, GTK_TYPE_NONE, 2, GTK_TYPE_INT, GTK_TYPE_INT); gtk_object_class_add_signals (object_class, signals, LAST_SIGNAL); klass->smtp_update = NULL; klass->finished = NULL; object_class->destroy = destroy; }
static void dirtree_class_init (DirTreeClass * klass) { GtkObjectClass *object_class; GtkCTreeClass *ctree_class; object_class = (GtkObjectClass *) klass; ctree_class = (GtkCTreeClass *) klass; parent_class = gtk_type_class (gtk_ctree_get_type ()); dirtree_signals[SELECT_FILE] = gtk_signal_new ("select_file", GTK_RUN_FIRST, GTK_CLASS_TYPE (object_class), GTK_SIGNAL_OFFSET (DirTreeClass, select_file), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); gtk_object_class_add_signals (object_class, dirtree_signals, LAST_SIGNAL); ctree_class->tree_expand = dirtree_expand; ctree_class->tree_collapse = dirtree_collapse; ctree_class->tree_select_row = dirtree_select_row; klass->select_file = NULL; }
static void gtk_color_combo_class_init (GtkColorComboClass * klass) { GtkObjectClass *object_class; GtkWidgetClass *widget_class; parent_class = gtk_type_class (gtk_hbox_get_type ()); object_class = (GtkObjectClass *) klass; widget_class = (GtkWidgetClass *) klass; object_class->destroy = gtk_color_combo_destroy; widget_class->realize = gtk_color_combo_realize; color_combo_signals[CHANGED]=gtk_signal_new("changed", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET(GtkColorComboClass, changed), gtk_marshal_NONE__INT_POINTER, GTK_TYPE_NONE, 2, GTK_TYPE_INT, GTK_TYPE_STRING); gtk_object_class_add_signals (object_class, color_combo_signals,LAST_SIGNAL); klass->changed = NULL; }
static void gv_manager_class_init(GvManagerClass *klass) { GtkObjectClass *object_class; object_class = (GtkObjectClass*) klass; manager_signals[PREFERENCES_CHANGED] = gtk_signal_new ("preferences-changed", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (GvManagerClass,preferences_changed), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 0 ); manager_signals[BUSY_CHANGED] = gtk_signal_new ("busy-changed", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (GvManagerClass,busy_changed), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 0 ); gtk_object_class_add_signals(object_class, manager_signals, LAST_SIGNAL); klass->preferences_changed = NULL; klass->busy_changed = NULL; }
static void class_init (C2DialogClass *klass) { GtkObjectClass *object_class = (GtkObjectClass *) klass; parent_class = gtk_type_class (gnome_dialog_get_type ()); gtk_object_class_add_signals (object_class, signals, LAST_SIGNAL); object_class->destroy = destroy; }
static void class_init (C2NetworkTrafficClass *klass) { GtkObjectClass *object_class = (GtkObjectClass *) klass; parent_class = gtk_type_class (gtk_drawing_area_get_type ()); gtk_object_class_add_signals (object_class, signals, LAST_SIGNAL); object_class->destroy = destroy; }
static void class_init (C2IMAPClass *klass) { GtkObjectClass *object_class = (GtkObjectClass*) klass; parent_class = gtk_type_class(c2_net_object_get_type() ); signals[LOGIN] = gtk_signal_new ("login", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (C2IMAPClass, login), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); signals[MAILBOX_LIST] = gtk_signal_new ("mailbox_list", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (C2IMAPClass, mailbox_list), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); signals[INCOMING_MAIL] = gtk_signal_new ("incoming_mail", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (C2IMAPClass, incoming_mail), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); signals[LOGOUT] = gtk_signal_new ("logout", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (C2IMAPClass, logout), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); signals[NET_ERROR] = gtk_signal_new("net_error", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (C2IMAPClass, net_error), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); gtk_object_class_add_signals (object_class, signals, LAST_SIGNAL); klass->login = NULL; klass->login_failed = NULL; klass->mailbox_list = NULL; klass->incoming_mail = NULL; klass->logout = NULL; klass->net_error = NULL; object_class->destroy = destroy; /* BOSKO: Is not a good idea to do it this way, better * connect to the destroy signal of the object in the * c2_imap_new function. */ }
static void combo_class_init(GtkObjectClass *klass) { parent_class = gtk_type_class(COMBO_PARENT_TYPE_FUNC()); COMBO_CLASS(klass)->selection_changed = NULL; combo_signals[CHANGED_SIGNAL] = gtk_signal_new("selection_changed",GTK_RUN_LAST, GTK_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(ComboClass,selection_changed), gtk_marshal_NONE__NONE,GTK_TYPE_NONE,0); gtk_object_class_add_signals(klass,combo_signals,LAST_SIGNAL); GTK_WIDGET_CLASS(klass)->size_request = combo_size_request; }
static void gtk_breakpoints_class_init (GtkBreakpointsClass *klass) { GtkObjectClass *object_class; parent_class = gtk_type_class(gtk_data_get_type()); object_class = (GtkObjectClass*) klass; object_class->destroy = gtk_breakpoints_destroy; /* register signals */ breakpoints_signals[SIG_CHANGED] = gtk_signal_new ("changed", GTK_RUN_FIRST | GTK_RUN_NO_RECURSE, object_class->type, GTK_SIGNAL_OFFSET (GtkBreakpointsClass, changed), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); breakpoints_signals[SIG_INSERT] = gtk_signal_new ("insert", GTK_RUN_FIRST | GTK_RUN_NO_RECURSE, object_class->type, GTK_SIGNAL_OFFSET (GtkBreakpointsClass, insert), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); breakpoints_signals[SIG_REMOVE] = gtk_signal_new ("remove", GTK_RUN_FIRST | GTK_RUN_NO_RECURSE, object_class->type, GTK_SIGNAL_OFFSET (GtkBreakpointsClass, remove), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); gtk_object_class_add_signals (object_class, breakpoints_signals, SIG_LAST); klass->insert = NULL; klass->remove = NULL; klass->changed = NULL; }
static void gtk_moz_embed_single_class_init(GtkMozEmbedSingleClass *klass) { GtkObjectClass *object_class; object_class = GTK_OBJECT_CLASS(klass); // set up our signals moz_embed_single_signals[NEW_WINDOW_ORPHAN] = gtk_signal_new("new_window_orphan", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedSingleClass, new_window_orphan), gtk_marshal_NONE__POINTER_UINT, GTK_TYPE_NONE, 2, GTK_TYPE_POINTER, GTK_TYPE_UINT); #ifdef MOZ_WIDGET_GTK gtk_object_class_add_signals(object_class, moz_embed_single_signals, SINGLE_LAST_SIGNAL); #endif /* MOZ_WIDGET_GTK */ }
static void class_init (C2TransferListClass *klass) { GtkObjectClass *object_class = (GtkObjectClass *) klass; parent_class = gtk_type_class (c2_dialog_get_type ()); signals[FINISH] = gtk_signal_new ("finish", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (C2TransferListClass, finish), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); signals[CANCEL_ALL] = gtk_signal_new ("cancel_all", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (C2TransferListClass, cancel_all), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); gtk_object_class_add_signals(object_class, signals, LAST_SIGNAL); klass->finish = NULL; klass->cancel_all = NULL; }
static void gtk_moz_embed_class_init(GtkMozEmbedClass *klass) { GtkContainerClass *container_class; GtkWidgetClass *widget_class; GtkObjectClass *object_class; container_class = GTK_CONTAINER_CLASS(klass); widget_class = GTK_WIDGET_CLASS(klass); object_class = GTK_OBJECT_CLASS(klass); embed_parent_class = (GtkBinClass *)gtk_type_class(gtk_bin_get_type()); widget_class->realize = gtk_moz_embed_realize; widget_class->unrealize = gtk_moz_embed_unrealize; widget_class->size_allocate = gtk_moz_embed_size_allocate; widget_class->map = gtk_moz_embed_map; widget_class->unmap = gtk_moz_embed_unmap; #ifdef MOZ_ACCESSIBILITY_ATK widget_class->get_accessible = gtk_moz_embed_get_accessible; #endif object_class->destroy = gtk_moz_embed_destroy; // set up our signals moz_embed_signals[LINK_MESSAGE] = gtk_signal_new ("link_message", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, link_message), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); moz_embed_signals[JS_STATUS] = gtk_signal_new ("js_status", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, js_status), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); moz_embed_signals[LOCATION] = gtk_signal_new ("location", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, location), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); moz_embed_signals[TITLE] = gtk_signal_new("title", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, title), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); moz_embed_signals[PROGRESS] = gtk_signal_new("progress", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, progress), gtk_marshal_NONE__INT_INT, GTK_TYPE_NONE, 2, GTK_TYPE_INT, GTK_TYPE_INT); moz_embed_signals[PROGRESS_ALL] = gtk_signal_new("progress_all", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, progress_all), gtkmozembed_VOID__STRING_INT_INT, GTK_TYPE_NONE, 3, GTK_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE, GTK_TYPE_INT, GTK_TYPE_INT); moz_embed_signals[NET_STATE] = gtk_signal_new("net_state", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, net_state), gtkmozembed_VOID__INT_UINT, GTK_TYPE_NONE, 2, GTK_TYPE_INT, GTK_TYPE_UINT); moz_embed_signals[NET_STATE_ALL] = gtk_signal_new("net_state_all", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, net_state_all), gtkmozembed_VOID__STRING_INT_UINT, GTK_TYPE_NONE, 3, GTK_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE, GTK_TYPE_INT, GTK_TYPE_UINT); moz_embed_signals[NET_START] = gtk_signal_new("net_start", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, net_start), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); moz_embed_signals[NET_STOP] = gtk_signal_new("net_stop", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, net_stop), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); moz_embed_signals[NEW_WINDOW] = gtk_signal_new("new_window", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, new_window), gtk_marshal_NONE__POINTER_UINT, GTK_TYPE_NONE, 2, GTK_TYPE_POINTER, GTK_TYPE_UINT); moz_embed_signals[VISIBILITY] = gtk_signal_new("visibility", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, visibility), gtk_marshal_NONE__BOOL, GTK_TYPE_NONE, 1, GTK_TYPE_BOOL); moz_embed_signals[DESTROY_BROWSER] = gtk_signal_new("destroy_browser", GTK_RUN_FIRST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, destroy_brsr), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); moz_embed_signals[OPEN_URI] = gtk_signal_new("open_uri", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, open_uri), gtkmozembed_BOOL__STRING, GTK_TYPE_BOOL, 1, GTK_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE); moz_embed_signals[SIZE_TO] = gtk_signal_new("size_to", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, size_to), gtk_marshal_NONE__INT_INT, GTK_TYPE_NONE, 2, GTK_TYPE_INT, GTK_TYPE_INT); moz_embed_signals[DOM_KEY_DOWN] = gtk_signal_new("dom_key_down", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_key_down), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); moz_embed_signals[DOM_KEY_PRESS] = gtk_signal_new("dom_key_press", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_key_press), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); moz_embed_signals[DOM_KEY_UP] = gtk_signal_new("dom_key_up", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_key_up), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); moz_embed_signals[DOM_MOUSE_DOWN] = gtk_signal_new("dom_mouse_down", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_mouse_down), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); moz_embed_signals[DOM_MOUSE_UP] = gtk_signal_new("dom_mouse_up", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_mouse_up), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); moz_embed_signals[DOM_MOUSE_CLICK] = gtk_signal_new("dom_mouse_click", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_mouse_click), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); moz_embed_signals[DOM_MOUSE_DBL_CLICK] = gtk_signal_new("dom_mouse_dbl_click", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_mouse_dbl_click), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); moz_embed_signals[DOM_MOUSE_OVER] = gtk_signal_new("dom_mouse_over", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_mouse_over), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); moz_embed_signals[DOM_MOUSE_OUT] = gtk_signal_new("dom_mouse_out", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_mouse_out), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); moz_embed_signals[SECURITY_CHANGE] = gtk_signal_new("security_change", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, security_change), gtk_marshal_NONE__POINTER_UINT, GTK_TYPE_NONE, 2, GTK_TYPE_POINTER, GTK_TYPE_UINT); moz_embed_signals[STATUS_CHANGE] = gtk_signal_new("status_change", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, status_change), gtkmozembed_VOID__POINTER_INT_POINTER, GTK_TYPE_NONE, 3, GTK_TYPE_POINTER, GTK_TYPE_INT, GTK_TYPE_POINTER); moz_embed_signals[DOM_ACTIVATE] = gtk_signal_new("dom_activate", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_activate), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); moz_embed_signals[DOM_FOCUS_IN] = gtk_signal_new("dom_focus_in", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_focus_in), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); moz_embed_signals[DOM_FOCUS_OUT] = gtk_signal_new("dom_focus_out", GTK_RUN_LAST, GET_OBJECT_CLASS_TYPE(klass), GTK_SIGNAL_OFFSET(GtkMozEmbedClass, dom_focus_out), gtk_marshal_BOOL__POINTER, GTK_TYPE_BOOL, 1, GTK_TYPE_POINTER); #ifdef MOZ_WIDGET_GTK gtk_object_class_add_signals(object_class, moz_embed_signals, EMBED_LAST_SIGNAL); #endif /* MOZ_WIDGET_GTK */ }
static void gtk_file_browser_class_init (GtkFileBrowserClass *klass) { GtkObjectClass *object_class; parent_class = gtk_type_class(gtk_clist_get_type()); object_class = (GtkObjectClass*) klass; object_class->destroy = gtk_file_browser_destroy; object_class->set_arg = gtk_file_browser_set_arg; object_class->get_arg = gtk_file_browser_get_arg; /* register arguments */ gtk_object_add_arg_type ("GtkFileBrowser::use_icons", GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_USE_ICONS); gtk_object_add_arg_type ("GtkFileBrowser::path", GTK_TYPE_STRING, GTK_ARG_READWRITE, ARG_PATH); /* register signals */ file_browser_signals[SIG_PATH_CHANGED] = gtk_signal_new ("path_changed", GTK_RUN_FIRST | GTK_RUN_NO_RECURSE, object_class->type, GTK_SIGNAL_OFFSET (GtkFileBrowserClass, path_changed), gtk_marshal_NONE__STRING, GTK_TYPE_NONE, 1, /* parameters */ GTK_TYPE_STRING); file_browser_signals[SIG_CLICKED] = gtk_signal_new ("clicked", GTK_RUN_FIRST | GTK_RUN_NO_RECURSE, object_class->type, GTK_SIGNAL_OFFSET (GtkFileBrowserClass, clicked), gtk_marshal_NONE__STRING, GTK_TYPE_NONE, 1, /* parameters */ GTK_TYPE_STRING); file_browser_signals[SIG_BUSY] = gtk_signal_new ("busy", GTK_RUN_FIRST | GTK_RUN_NO_RECURSE, object_class->type, GTK_SIGNAL_OFFSET (GtkFileBrowserClass, busy), gtk_marshal_NONE__BOOL, GTK_TYPE_NONE, 1, /* parameters */ GTK_TYPE_BOOL); gtk_object_class_add_signals (object_class, file_browser_signals, SIG_LAST); klass->path_changed = NULL; klass->busy = NULL; klass->clicked = NULL; }
static void gv_tool_class_init(GvToolClass *klass) { GtkObjectClass *object_class; object_class = (GtkObjectClass*) klass; tool_signals[ACTIVATE] = gtk_signal_new ("activate", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (GvToolClass, activate), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); tool_signals[DEACTIVATE] = gtk_signal_new ("deactivate", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (GvToolClass, deactivate), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); tool_signals[DRAW] = gtk_signal_new ("draw", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (GvToolClass, draw), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); tool_signals[BUTTON_PRESS] = gtk_signal_new ("button-press", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (GvToolClass, button_press), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); tool_signals[BUTTON_RELEASE] = gtk_signal_new ("button-release", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (GvToolClass, button_release), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); tool_signals[MOTION_NOTIFY] = gtk_signal_new ("motion-notify", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (GvToolClass, motion_notify), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); tool_signals[KEY_PRESS] = gtk_signal_new ("key-press", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (GvToolClass, key_press), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); tool_signals[ENTER_NOTIFY] = gtk_signal_new ("enter-notify", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (GvToolClass, enter_notify), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); tool_signals[LEAVE_NOTIFY] = gtk_signal_new ("leave-notify", GTK_RUN_FIRST, object_class->type, GTK_SIGNAL_OFFSET (GvToolClass, leave_notify), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); gtk_object_class_add_signals(object_class, tool_signals, LAST_SIGNAL); klass->activate = gv_tool_real_activate; klass->deactivate = gv_tool_real_deactivate; klass->draw = NULL; klass->button_press = NULL; klass->button_release = NULL; klass->motion_notify = NULL; klass->key_press = NULL; klass->enter_notify = NULL; klass->leave_notify = NULL; }
static void gtk_hex_entry_class_init (GtkHexEntryClass *klass) { GtkObjectClass *object_class; GtkWidgetClass *widget_class; parent_class = gtk_type_class(gtk_widget_get_type()); object_class = (GtkObjectClass*) klass; widget_class = (GtkWidgetClass*) klass; object_class->destroy = gtk_hex_entry_destroy; object_class->finalize = gtk_hex_entry_finalize; object_class->set_arg = gtk_hex_entry_set_arg; object_class->get_arg = gtk_hex_entry_get_arg; widget_class->realize = gtk_hex_entry_realize; widget_class->unrealize = gtk_hex_entry_unrealize; widget_class->size_request = gtk_hex_entry_size_request; widget_class->size_allocate = gtk_hex_entry_size_allocate; widget_class->configure_event = gtk_hex_entry_configure_event; widget_class->draw = gtk_hex_entry_draw; widget_class->expose_event = gtk_hex_entry_expose; widget_class->button_press_event = gtk_hex_entry_button_press; widget_class->button_release_event = gtk_hex_entry_button_release; widget_class->motion_notify_event = gtk_hex_entry_motion; widget_class->key_press_event = gtk_hex_entry_key_press; widget_class->focus_out_event = gtk_hex_entry_focus_out; widget_class->focus_in_event = gtk_hex_entry_focus_in; widget_class->enter_notify_event = gtk_hex_entry_enter_notify; widget_class->leave_notify_event = gtk_hex_entry_leave_notify; /* register arguments */ gtk_object_add_arg_type ("GtkHexEntry::value", GTK_TYPE_ULONG, GTK_ARG_READWRITE, ARG_VALUE); /* register signals */ hex_entry_signals[SIG_VALUE_CHANGED] = gtk_signal_new ("value_changed", GTK_RUN_FIRST | GTK_RUN_NO_RECURSE, object_class->type, GTK_SIGNAL_OFFSET (GtkHexEntryClass, value_changed), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); hex_entry_signals[SIG_ACTIVATE] = gtk_signal_new ("activate", GTK_RUN_LAST | GTK_RUN_NO_RECURSE, object_class->type, GTK_SIGNAL_OFFSET (GtkHexEntryClass, activate), gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); gtk_object_class_add_signals (object_class, hex_entry_signals, SIG_LAST); klass->value_changed = NULL; klass->activate = NULL; }