summary refs log tree commit diff stats
path: root/src/fe-gtk/notifygui.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-05-12 01:43:27 -0400
committerTingPing <tingping@tingping.se>2013-09-20 17:24:39 -0400
commitae04663aa91f864250fd109fe6433c8dea7c4a93 (patch)
treed02b14b3ef494c0f82fcf17ce8c8b4fffe9bcf3c /src/fe-gtk/notifygui.c
parent9f8073ab7705e0b5d9b83cb046741bd5c5f78f05 (diff)
First round of using GTK accessor functions
This is the first step to build with GSEAL_ENABLE
setup.c uses a deprecated fontchooser,
chanview-tabs.c didn't like the conversion, and
I am waiting to do some work on xtext.c before
converting it.
Diffstat (limited to 'src/fe-gtk/notifygui.c')
-rw-r--r--src/fe-gtk/notifygui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-gtk/notifygui.c b/src/fe-gtk/notifygui.c
index c0282ade..e50661d5 100644
--- a/src/fe-gtk/notifygui.c
+++ b/src/fe-gtk/notifygui.c
@@ -311,10 +311,10 @@ notifygui_add_cb (GtkDialog *dialog, gint response, gpointer entry)
 	char *networks;
 	char *text;
 
-	text = GTK_ENTRY (entry)->text;
+	text = (char *)gtk_entry_get_text (GTK_ENTRY (entry));
 	if (text[0] && response == GTK_RESPONSE_ACCEPT)
 	{
-		networks = GTK_ENTRY (g_object_get_data (G_OBJECT (entry), "net"))->text;
+		networks = gtk_entry_get_text (GTK_ENTRY (g_object_get_data (G_OBJECT (entry), "net")));
 		if (g_ascii_strcasecmp (networks, "ALL") == 0 || networks[0] == 0)
 			notify_adduser (text, NULL);
 		else
@@ -353,7 +353,7 @@ fe_notify_ask (char *nick, char *networks)
 	gtk_container_set_border_width (GTK_CONTAINER (table), 12);
 	gtk_table_set_row_spacings (GTK_TABLE (table), 3);
 	gtk_table_set_col_spacings (GTK_TABLE (table), 8);
-	gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), table);
+	gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), table);
 
 	label = gtk_label_new (msg);
 	gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 1, 0, 1);