Hi Guys,
Pretty straight foward question, I have a GtkEntry widget that i want to set to be editable. I know the function i should use is:
gtk_editable_set_editable
But i dont know how to make it take a GtkEntry widget as an arguement
Can anyone help me?
Regards
Paul
UPDATE:
Ok, so here is the code im using:
GtkWidget *TextEntry;
TextEntry = gtk_entry_new();
gtk_entry_set_visibility(GTK_ENTRY(TextEntry), TRUE);
gtk_entry_set_editable(GTK_ENTRY(TextEntry), TRUE);
gtk_entry_set_overwrite_mode(GTK_ENTRY(TextEntry), TRUE);
gtk_widget_set_can_focus(GTK_WIDGET(TextEntry), TRUE);
gtk_widget_grab_focus(TextEntry);
panel_applet_request_focus(applet, 10);
gtk_container_add (GTK_CONTAINER (applet), TextEntry);
gtk_widget_show_all (GTK_WIDGET (applet));
So far as getting keyboard focus, i think i need the panel_applet_request_focus function. It requires that i pass it the applet in question and the timestamp of the event triggering the window focus
Im not sure what to put in for the timestamp. I compiled the code as above and i still cant get keyboard focus when i click the applet.