示例#1
0
/* Signals table */
static    gint
handle_size_allocate_signal(GtkMenuItem * menuitem, gint size_allocate, C_signal * cs)
{
   PREPARECV(cs, cv);
   _clip_mputn(cs->cw->cmachine, &cv, HASH_SIZE_ALLOCATE, size_allocate);
   INVOKESIGHANDLER(GTK_WIDGET(menuitem), cs, cv);
}
示例#2
0
/* Signal handlers */
static    gint
handle_input_dialog_signal(GtkInputDialog * dialog, gint deviceid, C_signal * cs)
{
   PREPARECV(cs, cv);
   _clip_mputn(cs->cw->cmachine, &cv, HASH_DEVICEID, deviceid);
   INVOKESIGHANDLER(GTK_WIDGET(dialog), cs, cv);
}
示例#3
0
static    gint
handle_change_value_signal(GtkSpinButton * sbutton, GtkScrollType * type, C_signal * cs)
{
   PREPARECV(cs, cv);
   _clip_mputn(cs->cw->cmachine, &cv, HASH_SCROLL_TYPE, (gint) type);
   INVOKESIGHANDLER(GTK_WIDGET(sbutton), cs, cv);
}
示例#4
0
文件: listitem.c 项目: amery/clip-itk
static gint handle_scroll_horizontal_signal (GtkWidget *widget, GtkScrollType scroll_type, gfloat position, C_signal *cs)
{
	PREPARECV(cs,cv);
  	_clip_mputn(cs->cw->cmachine, &cv, HASH_SCROLLTYPE, scroll_type);
  	_clip_mputn(cs->cw->cmachine, &cv, HASH_POSITION, position);
        INVOKESIGHANDLER(widget,cs,cv);
}
示例#5
0
文件: paned.c 项目: amery/clip-itk
static int
cycle_handle_focus_signal_handler(GtkPaned *paned, gboolean arg1, C_signal *cs)
{
	PREPARECV(cs,cv);
	_clip_mputl(cs->cw->cmachine, &cv, HASH_ARG1, arg1);
	INVOKESIGHANDLER(GTK_WIDGET(paned), cs,cv);
}
示例#6
0
static    gint
handle_input_signal(GtkSpinButton * sbutton, gpointer data, C_signal * cs)
{
   PREPARECV(cs, cv);

   INVOKESIGHANDLER(GTK_WIDGET(sbutton), cs, cv);
}
示例#7
0
static    gint
handle_widget_selected_signal(GtkWidget * widget, GtkWidget * wid,
			      gchar * tip_text, gchar * tip_private, GdkEventButton * event, C_signal * cs)
{
   C_widget *cwid = _list_get_cwidget(cs->cw->cmachine, wid);

   PREPARECV(cs, cv);
   if (!cwid)
      cwid = _register_widget(cs->cw->cmachine, wid, NULL);
   if (cwid)
      _clip_madd(cs->cw->cmachine, &cv, HASH_WIDGET, &cwid->obj);
   LOCALE_FROM_UTF(tip_text);
   LOCALE_FROM_UTF(tip_private);
   _clip_mputc(cs->cw->cmachine, &cv, HASH_TIPTEXT, tip_text, strlen(tip_text));
   _clip_mputc(cs->cw->cmachine, &cv, HASH_TIPPRIVATE, tip_private, strlen(tip_private));
   _clip_mputn(cs->cw->cmachine, &cv, HASH_BUTTON, event->button);
   _clip_mputn(cs->cw->cmachine, &cv, HASH_X, event->x);
   _clip_mputn(cs->cw->cmachine, &cv, HASH_Y, event->y);
   _clip_mputn(cs->cw->cmachine, &cv, HASH_XROOT, event->x_root);
   _clip_mputn(cs->cw->cmachine, &cv, HASH_YROOT, event->y_root);
   _clip_mputn(cs->cw->cmachine, &cv, HASH_STATE, event->state);
   FREE_TEXT(tip_text);
   FREE_TEXT(tip_private);
   INVOKESIGHANDLER(widget, cs, cv);
}
示例#8
0
static gint handler_scroll_child_signal (GtkScrolledWindow *swin, GtkScrollType type, gboolean arg2, C_signal *cs)
{
    PREPARECV(cs,cv);
    _clip_mputn(cs->cw->cmachine, &cv, HASH_SCROLLTYPE, type);
    _clip_mputl(cs->cw->cmachine, &cv, HASH_ARG2, arg2);
    INVOKESIGHANDLER(GTK_WIDGET(swin),cs,cv);
}
示例#9
0
文件: tree.c 项目: amery/clip-itk
/* Signal handlers */
static gint
handle_sel_child_signal (GtkWidget *widget, GtkWidget *child, C_signal *cs)
{
	C_widget *cchild = _get_cwidget(cs->cw->cmachine,child);
	PREPARECV(cs,cv);
	if (cchild) _clip_madd(cs->cw->cmachine, &cv, HASH_CHILD, &cchild->obj);
        INVOKESIGHANDLER(child,cs,cv);
}
示例#10
0
文件: listitem.c 项目: amery/clip-itk
/* Signal handlers */
static gint handle_extend_selection_signal (GtkWidget *widget, GtkScrollType scroll_type, gfloat position, gboolean auto_start_selection, C_signal *cs)
{
	PREPARECV(cs,cv);
  	_clip_mputn(cs->cw->cmachine, &cv, HASH_SCROLLTYPE, scroll_type);
  	_clip_mputn(cs->cw->cmachine, &cv, HASH_POSITION, position);
  	_clip_mputl(cs->cw->cmachine, &cv, HASH_AUTOSTARTSELECTION, auto_start_selection);
        INVOKESIGHANDLER(widget,cs,cv);
}
示例#11
0
static    gint
handle_changed_signal(GtkWidget * widget, gint row, gint col, C_signal * cs)
{
   PREPARECV(cs, cv);
   _clip_mputn(cs->cw->cmachine, &cv, HASH_ROW, row + 1);
   _clip_mputn(cs->cw->cmachine, &cv, HASH_COL, col + 1);
   INVOKESIGHANDLER(widget, cs, cv);
}
示例#12
0
文件: ctree.c 项目: amery/clip-itk
gint handle_tree_collapse_signal (GtkWidget *widget, GtkCTreeNode *node, C_signal *cs)
{
	C_object *cnode = (C_object*)_list_get_cobject(cs->cw->cmachine,node);
	PREPARECV(cs,cv);
	if (!cnode) cnode = _register_object(cs->cw->cmachine,node,GTK_TYPE_CTREE_NODE,NULL,NULL);
	if (cnode) _clip_madd(cs->cw->cmachine, &cv, HASH_NODE, &cnode->obj);
	INVOKESIGHANDLER(widget,cs,cv);
}
示例#13
0
文件: window.c 项目: amery/clip-itk
/*********************** SIGNALS **************************/
static gint handle_set_focus_signal (GtkWindow *window, GtkWidget *widget, C_signal *cs)
  {
	C_widget *cwid;
	PREPARECV(cs,cv);
	cwid = _list_get_cwidget(cs->cw->cmachine,widget);
	if (!cwid) cwid = _register_widget(cs->cw->cmachine,widget,NULL);
	if (cwid) _clip_madd(cs->cw->cmachine, &cv, HASH_WIDGET, &cwid->obj);
	INVOKESIGHANDLER(widget,cs,cv);
  }
示例#14
0
文件: widget.c 项目: amery/clip-itk
static gint handle_size_allocate_signal (GtkWidget *widget, GtkAllocation *allocation, C_signal *cs)
	{
	PREPARECV(cs,cv);
	_clip_mputn(cs->cw->cmachine, &cv, HASH_X, allocation->x);
	_clip_mputn(cs->cw->cmachine, &cv, HASH_Y, allocation->y);
	_clip_mputn(cs->cw->cmachine, &cv, HASH_WIDTH, allocation->width);
	_clip_mputn(cs->cw->cmachine, &cv, HASH_HEIGHT, allocation->height);
	INVOKESIGHANDLER(widget,cs,cv);
	}
示例#15
0
/*********************** SIGNALS **************************/
static gint container_handle_signal (GtkContainer *container,GtkWidget *widget, C_signal *cs)
{
	C_widget *cwid;
	PREPARECV(cs,cv);
	cwid = _list_get_cwidget(cs->cw->cmachine,widget);
	if (!cwid) cwid = _register_widget(cs->cw->cmachine,widget,NULL);
	if (cwid) _clip_madd(cs->cw->cmachine, &cv, HASH_WIDGET, &cwid->obj);
	INVOKESIGHANDLER(GTK_WIDGET(container),cs,cv);
}
示例#16
0
文件: widget.c 项目: amery/clip-itk
static gint
handle_focus_in_out_event (GtkWidget *widget, GdkEventFocus *event, C_signal *cs)
{
	PREPARECV(cs,cv);
	_clip_mputn(cs->cw->cmachine, &cv, HASH_TYPE, event->type);
	_clip_mputn(cs->cw->cmachine, &cv, HASH_SENDEVENT, event->send_event);
	_clip_mputn(cs->cw->cmachine, &cv, HASH_IN, event->in);
	INVOKESIGHANDLER(widget,cs,cv);
}
示例#17
0
文件: viewport.c 项目: amery/clip-itk
static gint
handler_set_scroll_adjustments (GtkViewport *viewport, GtkAdjustment *hadj, GtkAdjustment *vadj, C_signal *cs)
  {
	C_widget *cwid;
	PREPARECV(cs,cv);
	cwid = _list_get_cwidget(cs->cw->cmachine,GTK_WIDGET(hadj));
	if (!cwid) cwid = _register_widget(cs->cw->cmachine,GTK_WIDGET(hadj),NULL);
	if (cwid) _clip_madd(cs->cw->cmachine, &cv, HASH_HADJ, &cwid->obj);
	cwid = _list_get_cwidget(cs->cw->cmachine,GTK_WIDGET(vadj));
	if (!cwid) cwid = _register_widget(cs->cw->cmachine,GTK_WIDGET(vadj),NULL);
	if (cwid) _clip_madd(cs->cw->cmachine, &cv, HASH_VADJ, &cwid->obj);
	INVOKESIGHANDLER(GTK_WIDGET(viewport),cs,cv);
  }
示例#18
0
文件: list.c 项目: amery/clip-angelo
static    gint
handle_unselect_child_signal(GtkWidget * widget, GtkWidget * wid, C_signal * cs)
{
   C_widget *cwid;

   PREPARECV(cs, cv);
   cwid = _list_get_cwidget(cs->cw->cmachine, wid);
   if (!cwid)
      cwid = _register_widget(cs->cw->cmachine, wid, NULL);
   if (cwid)
      _clip_madd(cs->cw->cmachine, &cv, HASH_CHILD, &cwid->obj);
   INVOKESIGHANDLER(widget, cs, cv);
}
示例#19
0
文件: ctree.c 项目: amery/clip-itk
gint handle_tree_move_signal (GtkWidget *widget, GtkCTreeNode *node, GtkCTreeNode *new_parent, GtkCTreeNode *new_sibling, C_signal *cs)
{
	C_object *cnode = (C_object*)_list_get_cobject(cs->cw->cmachine,node);
	C_object *cnewparent = (C_object*)_list_get_cobject(cs->cw->cmachine,new_parent);
	C_object *cnewsibling = (C_object*)_list_get_cobject(cs->cw->cmachine,new_sibling);
	PREPARECV(cs,cv);
	if (!cnode) cnode = _register_object(cs->cw->cmachine,node,GTK_TYPE_CTREE_NODE,NULL,NULL);
	if (!cnewparent) cnode = _register_object(cs->cw->cmachine,new_parent,GTK_TYPE_CTREE_NODE,NULL,NULL);
	if (!cnewsibling) cnode = _register_object(cs->cw->cmachine,new_sibling,GTK_TYPE_CTREE_NODE,NULL,NULL);
	if (cnode) _clip_madd(cs->cw->cmachine, &cv, HASH_NODE, &cnode->obj);
	if (cnewparent) _clip_madd(cs->cw->cmachine, &cv, HASH_NEWPARENT, &cnewparent->obj);
	if (cnewsibling) _clip_madd(cs->cw->cmachine, &cv, HASH_NEWSIBLING, &cnewsibling->obj);
	INVOKESIGHANDLER(widget,cs,cv);
}
示例#20
0
/* Signal handlers */
static gint
handle_widget_entered_signal (GtkWidget *widget, GtkWidget *wid, gchar *tip_text, gchar *tip_private, C_signal *cs)
{
	C_widget *cwid = _list_get_cwidget(cs->cw->cmachine,wid);
	PREPARECV(cs,cv);
        if (!cwid) cwid = _register_widget(cs->cw->cmachine,wid,NULL);
	if (cwid) _clip_madd(cs->cw->cmachine, &cv, HASH_WIDGET, &cwid->obj);
	LOCALE_FROM_UTF(tip_text);
	LOCALE_FROM_UTF(tip_private);
	_clip_mputc(cs->cw->cmachine, &cv, HASH_TIPTEXT, tip_text, strlen(tip_text));
	_clip_mputc(cs->cw->cmachine, &cv, HASH_TIPPRIVATE, tip_private, strlen(tip_private));
       	FREE_TEXT(tip_text);
       	FREE_TEXT(tip_private);
        INVOKESIGHANDLER(widget,cs,cv);
}
示例#21
0
文件: paned.c 项目: amery/clip-itk
static int
move_handle_signal_handler(GtkPaned *paned, GtkScrollType arg1, C_signal *cs)
{
	gint arg=0;
	PREPARECV(cs,cv);
	switch (arg1)
        {
        	case GTK_SCROLL_NONE:
                	arg = CLIP_GTK_SCROLL_NONE; break;
        	case GTK_SCROLL_JUMP:
                	arg = CLIP_GTK_SCROLL_JUMP; break;
        	case GTK_SCROLL_STEP_BACKWARD:
                	arg = CLIP_GTK_SCROLL_STEP_BACKWARD; break;
        	case GTK_SCROLL_STEP_FORWARD:
                	arg = CLIP_GTK_SCROLL_STEP_FORWARD; break;
        	case GTK_SCROLL_PAGE_BACKWARD:
                	arg = CLIP_GTK_SCROLL_PAGE_BACKWARD; break;
        	case GTK_SCROLL_PAGE_FORWARD:
                	arg = CLIP_GTK_SCROLL_PAGE_FORWARD; break;
        	case GTK_SCROLL_STEP_UP:
                	arg = CLIP_GTK_SCROLL_STEP_UP; break;
        	case GTK_SCROLL_STEP_DOWN:
                	arg = CLIP_GTK_SCROLL_STEP_DOWN; break;
        	case GTK_SCROLL_PAGE_UP:
                	arg = CLIP_GTK_SCROLL_PAGE_UP; break;
        	case GTK_SCROLL_PAGE_DOWN:
                	arg = CLIP_GTK_SCROLL_PAGE_DOWN; break;
        	case GTK_SCROLL_STEP_LEFT:
                	arg = CLIP_GTK_SCROLL_STEP_LEFT; break;
        	case GTK_SCROLL_STEP_RIGHT:
                	arg = CLIP_GTK_SCROLL_STEP_RIGHT; break;
        	case GTK_SCROLL_PAGE_LEFT:
                	arg = CLIP_GTK_SCROLL_PAGE_LEFT; break;
        	case GTK_SCROLL_PAGE_RIGHT:
                	arg = CLIP_GTK_SCROLL_PAGE_RIGHT; break;
        	case GTK_SCROLL_START:
                	arg = CLIP_GTK_SCROLL_START; break;
        	case GTK_SCROLL_END:
                	arg = CLIP_GTK_SCROLL_END; break;
        }
	_clip_mputn(cs->cw->cmachine, &cv, HASH_ARG1, arg);
	INVOKESIGHANDLER(GTK_WIDGET(paned), cs,cv);
}
示例#22
0
static gint handle_activate_current_signal (GtkWidget *widget, gboolean force_hide, C_signal *cs)
{
	PREPARECV(cs,cv);
        _clip_mputl(cs->cw->cmachine, &cv, HASH_FORCEHIDE, force_hide);
        INVOKESIGHANDLER(widget,cs,cv);
}
示例#23
0
/*********************** SIGNALS **************************/
static gint handler_move_focus_out_signal (GtkScrolledWindow *swin, GtkDirectionType type, C_signal *cs)
{
    PREPARECV(cs,cv);
    _clip_mputn(cs->cw->cmachine, &cv, HASH_DIRECTIONTYPE, type);
    INVOKESIGHANDLER(GTK_WIDGET(swin),cs,cv);
}
示例#24
0
文件: ctree.c 项目: amery/clip-itk
gint handle_change_focus_row_expansion_signal (GtkWidget *widget, GtkCTreeExpansionType action, C_signal *cs)
{
	PREPARECV(cs,cv);
	_clip_mputn(cs->cw->cmachine, &cv, HASH_ACTION, action);
	INVOKESIGHANDLER(widget,cs,cv);
}
示例#25
0
static    gint
handle_size_request_signal(GtkMenuItem * menuitem, gpointer data, C_signal * cs)
{
   PREPARECV(cs, cv);
   INVOKESIGHANDLER(GTK_WIDGET(menuitem), cs, cv);
}
示例#26
0
文件: notebook.c 项目: amery/clip-itk
gint handle_select_page_signal (GtkNotebook *notebook, gboolean select,C_signal *cs)
{
	PREPARECV(cs,cv);
	_clip_mputl(cs->cw->cmachine, &cv, HASH_SELECT, select);
	INVOKESIGHANDLER(GTK_WIDGET(notebook),cs,cv);
}
示例#27
0
文件: notebook.c 项目: amery/clip-itk
gint handle_move_focus_out_signal (GtkNotebook *notebook, GtkDirectionType type,C_signal *cs)
{
	PREPARECV(cs,cv);
	_clip_mputn(cs->cw->cmachine, &cv, HASH_DIRECTIONTYPE, type);
	INVOKESIGHANDLER(GTK_WIDGET(notebook),cs,cv);
}
示例#28
0
文件: notebook.c 项目: amery/clip-itk
/*********************** SIGNALS **************************/
gint handle_change_current_page_signal (GtkNotebook *notebook, gint page_num,C_signal *cs)
{
	PREPARECV(cs,cv);
	_clip_mputn(cs->cw->cmachine, &cv, HASH_PAGE_NUM, page_num);
	INVOKESIGHANDLER(GTK_WIDGET(notebook),cs,cv);
}
示例#29
0
static gint handle_cycle_focus_signal (GtkWidget *widget, GtkDirectionType direction, C_signal *cs)
{
	PREPARECV(cs,cv);
        _clip_mputn(cs->cw->cmachine, &cv, HASH_DIRECTION, direction);
        INVOKESIGHANDLER(widget,cs,cv);
}