Gtk_entry_set_text
- From: Sébastien NoName <crazyseb gmail com>
- To: gtk-list gnome org
- Subject: Gtk_entry_set_text
- Date: Thu, 28 Apr 2005 12:01:47 +0200
I have got a problem whit gtk_entry_set_text
Here is a part of my code
void OnBackPath(GtkWidget *elemt, gpointer data)
{
t_globales* temp = (t_globales*)data;
const gchar *pCharTempSrc;
const gchar *pCharTempDst;
// Récupération. Fonctionne bien
// gtk_window_set_title (GTK_WINDOW(temp->pGtk.pMainPanel), pCharTempDst);
// Indique bien le bon texte
pCharTempSrc =
gtk_entry_get_text(GTK_ENTRY(temp->pGtk.pEntryStationSource));
pCharTempDst =
gtk_entry_get_text(GTK_ENTRY(temp->pGtk.pEntryStationDestination));
// Le deuxieme set_text ne fonctionne pas!
gtk_entry_set_text(GTK_ENTRY(temp->pGtk.pEntryStationDestination),
pCharTempSrc);
gtk_entry_set_text(GTK_ENTRY(temp->pGtk.pEntryStationSource),
pCharTempDst );
}
The problem is located here :
gtk_entry_set_text(GTK_ENTRY(temp->pGtk.pEntryStationDestination),
pCharTempSrc);
gtk_entry_set_text(GTK_ENTRY(temp->pGtk.pEntryStationSource), pCharTempDst);
The first gtk_entry_set_text is working but not the second one!
Stranger. When I put an g_locale_to_utf8, both of the
gtk_entry_set_text work but i have got a problem with special char!
Do you know why? Could you help me!
thx
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]