| 153 PurplePlugin *plugin = data; |
153 PurplePlugin *plugin = data; |
| 154 GtkWidget *frame = pidgin_plugin_get_config_frame(plugin), *dialog; |
154 GtkWidget *frame = pidgin_plugin_get_config_frame(plugin), *dialog; |
| 155 if (!frame) |
155 if (!frame) |
| 156 return; |
156 return; |
| 157 |
157 |
| |
158 /* GTK_DIALOG_NO_SEPARATOR seems to be gone in gtk+ 3.0... */ |
| 158 dialog = gtk_dialog_new_with_buttons(PIDGIN_ALERT_TITLE, NULL, |
159 dialog = gtk_dialog_new_with_buttons(PIDGIN_ALERT_TITLE, NULL, |
| 159 GTK_DIALOG_NO_SEPARATOR | GTK_DIALOG_DESTROY_WITH_PARENT, |
160 GTK_DIALOG_DESTROY_WITH_PARENT, |
| 160 GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, |
161 GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, |
| 161 NULL); |
162 NULL); |
| 162 g_signal_connect_after(G_OBJECT(dialog), "response", G_CALLBACK(gtk_widget_destroy), dialog); |
163 g_signal_connect_after(G_OBJECT(dialog), "response", G_CALLBACK(gtk_widget_destroy), dialog); |
| 163 #if GTK_CHECK_VERSION(2,14,0) |
164 #if GTK_CHECK_VERSION(2,14,0) |
| 164 gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), frame); |
165 gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), frame); |