comparison src/bar_exif.c @ 1810:c416d099a3dc

GTK marks several functions as deprecated The following functions has been replaced and deprecated by version 2.20: - GTK_WIDGET_CAN_FOCUS - GTK_WIDGET_DRAWABLE - GTK_WIDGET_HAS_FOCUS - GTK_WIDGET_HAS_GRAB - GTK_WIDGET_IS_SENSITIVE - GTK_WIDGET_NO_WINDOW - GTK_WIDGET_REALIZED - GTK_WIDGET_SENSITIVE - GTK_WIDGET_STATE - GTK_WIDGET_TOPLEVEL - GTK_WIDGET_VISIBLE
author mow
date Mon, 10 May 2010 11:32:56 +0000
parents 956aab097ea7
children
comparison
equal deleted inserted replaced
1809:e1c18f81e637 1810:c416d099a3dc
299 { 299 {
300 GtkWidget *entry = work->data; 300 GtkWidget *entry = work->data;
301 ExifEntry *ee = g_object_get_data(G_OBJECT(entry), "entry_data"); 301 ExifEntry *ee = g_object_get_data(G_OBJECT(entry), "entry_data");
302 work = work->next; 302 work = work->next;
303 303
304 #if GTK_CHECK_VERSION(2,20,0)
305 if (ee->editable && gtk_widget_has_focus(ee->value_widget)) ret = gtk_widget_event(ee->value_widget, event);
306 #else
304 if (ee->editable && GTK_WIDGET_HAS_FOCUS(ee->value_widget)) ret = gtk_widget_event(ee->value_widget, event); 307 if (ee->editable && GTK_WIDGET_HAS_FOCUS(ee->value_widget)) ret = gtk_widget_event(ee->value_widget, event);
308 #endif
305 } 309 }
306 g_list_free(list); 310 g_list_free(list);
307 return ret; 311 return ret;
308 } 312 }
309 313
394 GtkWidget *entry = work->data; 398 GtkWidget *entry = work->data;
395 work = work->next; 399 work = work->next;
396 400
397 if (entry == new_entry) continue; 401 if (entry == new_entry) continue;
398 402
403 #if GTK_CHECK_VERSION(2,20,0)
404 if (gtk_widget_is_drawable(entry) &&
405 #else
399 if (GTK_WIDGET_DRAWABLE(entry) && 406 if (GTK_WIDGET_DRAWABLE(entry) &&
407 #endif
400 gtk_widget_translate_coordinates(pane, entry, x, y, &nx, &ny) && 408 gtk_widget_translate_coordinates(pane, entry, x, y, &nx, &ny) &&
401 ny < entry->allocation.height / 2) break; 409 ny < entry->allocation.height / 2) break;
402 pos++; 410 pos++;
403 } 411 }
404 g_list_free(list); 412 g_list_free(list);