Mercurial > pidgin
comparison plugins/raw.c @ 5314:1f901484599d
[gaim-migrate @ 5686]
GTK_OBJECT -> G_OBJECT
Also fixed a few compiler warnings.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 06 May 2003 05:48:03 +0000 |
parents | 6d1707dc8c3d |
children | 9445d59d9db8 |
comparison
equal
deleted
inserted
replaced
5313:8d118c2b03c9 | 5314:1f901484599d |
---|---|
108 continue; | 108 continue; |
109 if (!gc) | 109 if (!gc) |
110 gc = c; | 110 gc = c; |
111 g_snprintf(buf, sizeof buf, "%s (%s)", c->username, c->prpl->name); | 111 g_snprintf(buf, sizeof buf, "%s (%s)", c->username, c->prpl->name); |
112 opt = gtk_menu_item_new_with_label(buf); | 112 opt = gtk_menu_item_new_with_label(buf); |
113 g_signal_connect(GTK_OBJECT(opt), "activate", G_CALLBACK(set_gc), c); | 113 g_signal_connect(G_OBJECT(opt), "activate", G_CALLBACK(set_gc), c); |
114 gtk_widget_show(opt); | 114 gtk_widget_show(opt); |
115 gtk_menu_shell_append(GTK_MENU_SHELL(menu), opt); | 115 gtk_menu_shell_append(GTK_MENU_SHELL(menu), opt); |
116 } | 116 } |
117 | 117 |
118 gtk_option_menu_remove_menu(GTK_OPTION_MENU(optmenu)); | 118 gtk_option_menu_remove_menu(GTK_OPTION_MENU(optmenu)); |
129 | 129 |
130 gaim_signal_connect(h, event_signon, redo_optmenu, NULL); | 130 gaim_signal_connect(h, event_signon, redo_optmenu, NULL); |
131 gaim_signal_connect(h, event_signoff, redo_optmenu, me); | 131 gaim_signal_connect(h, event_signoff, redo_optmenu, me); |
132 | 132 |
133 window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 133 window = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
134 g_signal_connect(GTK_OBJECT(window), "delete_event", G_CALLBACK(goodbye), NULL); | 134 g_signal_connect(G_OBJECT(window), "delete_event", G_CALLBACK(goodbye), NULL); |
135 | 135 |
136 hbox = gtk_hbox_new(FALSE, 0); | 136 hbox = gtk_hbox_new(FALSE, 0); |
137 gtk_container_add(GTK_CONTAINER(window), hbox); | 137 gtk_container_add(GTK_CONTAINER(window), hbox); |
138 | 138 |
139 optmenu = gtk_option_menu_new(); | 139 optmenu = gtk_option_menu_new(); |
141 | 141 |
142 redo_optmenu(NULL, NULL); | 142 redo_optmenu(NULL, NULL); |
143 | 143 |
144 entry = gtk_entry_new(); | 144 entry = gtk_entry_new(); |
145 gtk_box_pack_start(GTK_BOX(hbox), entry, FALSE, FALSE, 5); | 145 gtk_box_pack_start(GTK_BOX(hbox), entry, FALSE, FALSE, 5); |
146 g_signal_connect(GTK_OBJECT(entry), "activate", G_CALLBACK(send_it), NULL); | 146 g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(send_it), NULL); |
147 | 147 |
148 gtk_widget_show_all(window); | 148 gtk_widget_show_all(window); |
149 | 149 |
150 return NULL; | 150 return NULL; |
151 } | 151 } |