Esempio n. 1
0
static void
gdaui_entry_string_start_editing (GtkCellEditable *iface, GdkEvent *event)
{
	GdauiEntryString *mgstr;

	g_return_if_fail (GDAUI_IS_ENTRY_STRING (iface));
	mgstr = GDAUI_ENTRY_STRING (iface);
	GdauiEntryStringPrivate *priv = gdaui_entry_string_get_instance_private (mgstr);

	priv->editing_canceled = FALSE;
	g_object_set (G_OBJECT (priv->entry), "has-frame", FALSE, "xalign", 0., NULL);
	gtk_text_view_set_border_window_size (GTK_TEXT_VIEW (priv->view), GTK_TEXT_WINDOW_LEFT, 0);
	gtk_text_view_set_border_window_size (GTK_TEXT_VIEW (priv->view), GTK_TEXT_WINDOW_RIGHT, 0);
	gtk_text_view_set_border_window_size (GTK_TEXT_VIEW (priv->view), GTK_TEXT_WINDOW_TOP, 0);
	gtk_text_view_set_border_window_size (GTK_TEXT_VIEW (priv->view), GTK_TEXT_WINDOW_BOTTOM, 0);
	gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (priv->sw), GTK_SHADOW_NONE);
	gtk_container_set_border_width (GTK_CONTAINER (priv->sw), 0);

	gtk_cell_editable_start_editing (GTK_CELL_EDITABLE (priv->entry), event);
	g_signal_connect (priv->entry, "editing-done",
			  G_CALLBACK (gtk_cell_editable_entry_editing_done_cb), mgstr);
	g_signal_connect (priv->entry, "remove-widget",
			  G_CALLBACK (gtk_cell_editable_entry_remove_widget_cb), mgstr);
	
	gtk_widget_grab_focus (priv->entry);
	gtk_widget_queue_draw (GTK_WIDGET (mgstr));
}
Esempio n. 2
0
static VALUE
rg_start_editing(VALUE self, VALUE event)
{
    gtk_cell_editable_start_editing(_SELF(self), 
                                    NIL_P(event) ? NULL : RVAL2GEV(event));
    return self;
}
Esempio n. 3
0
JNIEXPORT void JNICALL
Java_org_gnome_gtk_GtkCellEditable_gtk_1cell_1editable_1start_1editing
(
	JNIEnv* env,
	jclass cls,
	jlong _self,
	jlong _event
)
{
	GtkCellEditable* self;
	GdkEvent* event;

	// convert parameter self
	self = (GtkCellEditable*) _self;

	// convert parameter event
	event = (GdkEvent*) _event;

	// call function
	gtk_cell_editable_start_editing(self, event);

	// cleanup parameter self

	// cleanup parameter event
}