app: add gimp_widget_track_monitor()

Which installs a callback that behaves as if GtkWidget had a
"monitor-changed" signal. Additionally, moving widgets around between
windows is handled automatically.
This commit is contained in:
Michael Natterer
2016-06-01 20:39:03 +02:00
parent dfc8488dca
commit 71384a4115
3 changed files with 122 additions and 0 deletions

View File

@ -46,6 +46,10 @@ void gimp_label_set_attributes (GtkLabel *label,
gint gimp_widget_get_monitor (GtkWidget *widget);
gint gimp_get_monitor_at_pointer (GdkScreen **screen);
void gimp_widget_track_monitor (GtkWidget *widget,
GCallback monitor_changed_callback,
gpointer user_data);
GimpColorProfile * gimp_widget_get_color_profile (GtkWidget *widget);
GimpColorTransform * gimp_widget_get_color_transform (GtkWidget *widget,