RE: signal passing
- From: "R.Rajaram" <rajaram acmet com>
- To: <srinivas comodo com>
- Cc: gtk-app-devel-list gnome org
- Subject: RE: signal passing
- Date: Tue, 24 May 2005 15:00:53 +0530
g_signal_emit_by_name (entry, "activate", NULL);
Where you have defined entry ?
-----Original Message-----
From: gtk-app-devel-list-bounces gnome org
[mailto:gtk-app-devel-list-bounces gnome org] On Behalf Of srinivas
Sent: Tuesday, May 24, 2005 2:43 PM
To: Santhosh
Cc: gtk-app-devel-list gnome org
Subject: Re: signal passing
hi santhosh;
thanks for the reply, i am getting the warning like
GLib-GObject-WARNING **: invalid (NULL) pointer instance
GLib-GObject-CRITICAL **: g_signal_emit_by_name: assertion
`G_TYPE_CHECK_INSTANCE (instance)' failed
the code i have in "on_text_entry_activate" call back is
void
on_text_entry_activate (GtkEntry *entry,
gpointer user_data)
{
GtkWidget *sst_file_sel;
sst_file_sel = create_window_ssnew2 ();
const gchar *s = gtk_entry_get_text(GTK_ENTRY (entry));
if (strlen(s)>0)
{
printf ("Entry contents: %s \n", s);
gtk_entry_set_text(GTK_ENTRY (entry),"");
}
}
and in "on_button_next_clicked" callback i just added the one u given.
void
on_button_next_clicked (GtkButton *button,
gpointer user_data)
{
g_signal_emit_by_name (entry, "activate", NULL);
}
what else i have to add to get my functionality;
thanks;
vasu.
On Tue, 2005-05-24 at 12:20, Santhosh wrote:
Hi,
In the "on_button_next_clicked" callback, add the following code...
void on_button_next_clicked (GtkWidget* button, gpointer data) {
//GtkWidget* text_entry = (GtkWidget*) data; //(incase
text_entry is passed as
//user data
g_signal_emit_by_name (text_entry, "activate", NULL); }
Regards,
Santhosh.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]