"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gladeui/glade-utils.c" between
glade-3.38.0.tar.xz and glade-3.38.1.tar.xz

About: Glade is a User Interface Designer for the GTK+ toolkit and the Gnome desktop environment.

glade-utils.c  (glade-3.38.0.tar.xz):glade-utils.c  (glade-3.38.1.tar.xz)
skipping to change at line 1162 skipping to change at line 1162
/** /**
* glade_util_get_placeholder_from_pointer: * glade_util_get_placeholder_from_pointer:
* @container: a #GtkContainer * @container: a #GtkContainer
* *
* Returns: (transfer none): a #GtkWidget * Returns: (transfer none): a #GtkWidget
*/ */
GtkWidget * GtkWidget *
glade_util_get_placeholder_from_pointer (GtkContainer *container) glade_util_get_placeholder_from_pointer (GtkContainer *container)
{ {
GdkDeviceManager *manager;
GdkDisplay *display; GdkDisplay *display;
GdkDevice *device; GdkDevice *device;
GdkWindow *window; GdkWindow *window;
GdkSeat *seat;
if (((display = gtk_widget_get_display (GTK_WIDGET (container))) || if (((display = gtk_widget_get_display (GTK_WIDGET (container))) ||
(display = gdk_display_get_default ())) && (display = gdk_display_get_default ())) &&
(manager = gdk_display_get_device_manager (display)) && (seat = gdk_display_get_default_seat (display)) &&
(device = gdk_device_manager_get_client_pointer (manager)) && (device = gdk_seat_get_pointer (seat)) &&
(window = gdk_device_get_window_at_position (device, NULL, NULL))) (window = gdk_device_get_window_at_position (device, NULL, NULL)))
{ {
gpointer widget; gpointer widget;
gdk_window_get_user_data (window, &widget); gdk_window_get_user_data (window, &widget);
return GLADE_IS_PLACEHOLDER (widget) ? GTK_WIDGET (widget) : NULL; return GLADE_IS_PLACEHOLDER (widget) ? GTK_WIDGET (widget) : NULL;
} }
return NULL; return NULL;
} }
skipping to change at line 2055 skipping to change at line 2055
gint *y) gint *y)
{ {
gint device_x = 0, device_y = 0; gint device_x = 0, device_y = 0;
gint final_x = 0, final_y = 0; gint final_x = 0, final_y = 0;
GtkWidget *event_widget = NULL; GtkWidget *event_widget = NULL;
g_return_if_fail (GTK_IS_WIDGET (widget)); g_return_if_fail (GTK_IS_WIDGET (widget));
if (!device) if (!device)
{ {
GdkEvent *event = gtk_get_current_event (); GdkDisplay *dsp;
GdkSeat *seat;
device = gdk_event_get_device (event); if (((dsp = gtk_widget_get_display (widget)) ||
gdk_event_free (event); (dsp = gdk_display_get_default ())) &&
(seat = gdk_display_get_default_seat (dsp)) &&
(device = gdk_seat_get_pointer (seat)))
window = gdk_device_get_window_at_position (device, NULL, NULL);
} }
g_return_if_fail (GDK_IS_DEVICE (device)); g_return_if_fail (GDK_IS_DEVICE (device));
if (!window) if (!window)
window = gtk_widget_get_window (widget); window = gtk_widget_get_window (widget);
g_return_if_fail (GDK_IS_WINDOW (window)); g_return_if_fail (GDK_IS_WINDOW (window));
gdk_window_get_device_position (window, device, &device_x, &device_y, NULL); gdk_window_get_device_position (window, device, &device_x, &device_y, NULL);
 End of changes. 5 change blocks. 
6 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)