| 2178 GAIM_CALLBACK(repopulate_autocomplete), cb_data); |
2178 GAIM_CALLBACK(repopulate_autocomplete), cb_data); |
| 2179 |
2179 |
| 2180 g_signal_connect(G_OBJECT(entry), "destroy", G_CALLBACK(screenname_autocomplete_destroyed_cb), NULL); |
2180 g_signal_connect(G_OBJECT(entry), "destroy", G_CALLBACK(screenname_autocomplete_destroyed_cb), NULL); |
| 2181 } |
2181 } |
| 2182 |
2182 |
| |
2183 void gaim_gtk_set_cursor(GtkWidget *widget, GdkCursorType cursor_type) |
| |
2184 { |
| |
2185 GdkCursor *cursor; |
| |
2186 |
| |
2187 if (widget == NULL) |
| |
2188 return; |
| |
2189 |
| |
2190 cursor = gdk_cursor_new(GDK_WATCH); |
| |
2191 gdk_window_set_cursor(widget->window, cursor); |
| |
2192 gdk_cursor_unref(cursor); |
| |
2193 |
| |
2194 #if GTK_CHECK_VERSION(2,4,0) |
| |
2195 gdk_display_flush(gdk_drawable_get_display(GDK_DRAWABLE(widget->window))); |
| |
2196 #else |
| |
2197 gdk_flush(); |
| |
2198 #endif |
| |
2199 } |
| |
2200 |
| |
2201 void gaim_gtk_clear_cursor(GtkWidget *widget) |
| |
2202 { |
| |
2203 if (widget == NULL) |
| |
2204 return; |
| |
2205 |
| |
2206 gdk_window_set_cursor(widget->window, NULL); |
| |
2207 } |
| |
2208 |