Commit Graph

5452 Commits

Author SHA1 Message Date
4eb50f8a64 app: fix gimp_highlight_widget() to not draw multiple highlights 2018-05-23 19:45:03 +02:00
38ef1054d1 app: handle GIMP_ZOOM_SMOOTH in gimp_palette_editor_zoom() 2018-05-23 12:41:46 +02:00
69bff16555 app: undeprecate GimpMeter 2018-05-23 10:07:59 +02:00
dba00b031b app: remove insane sizing hacks and boxes from GimpThumbBox
and set the widget's width the right way.
2018-05-23 02:21:38 +02:00
e92419707f app: fix GimpMessageBox size negotiation
Also remove obsolete get_path_for_child() impl. and set a max width of
80 chars on the labels.
2018-05-23 01:44:09 +02:00
d86dc8a5b4 app: undeprecation in GimpOverlayBox
and some size negotiation changes that have no effect at all, just
some hacking in the direction of making it a general-purpose
container, for whatever reason.
2018-05-23 00:42:41 +02:00
9647afc7e0 app: fix size negotiation of GimpOverlayDialog
so its contents are not cut off any longer.
2018-05-23 00:41:57 +02:00
db1cc4afc3 app: use gtk_widget_get_preferred_size() not get_requisition() in GimpView 2018-05-22 16:46:55 +02:00
2152bdc588 app: remove almost all code from GimpOverlayFrame
Let the parent GtkBin handle size request and allocation, and steal
the CDD style from GtkPopover.
2018-05-22 00:35:04 +02:00
7381bb1660 app: make GimpFgBgView draw within the focus rectangle
At least the code seems to have that effect, I have no clue what I'm
doing...
2018-05-21 23:07:22 +02:00
eb7d59d327 app: gtk_icon_info_free() deprecated since GTK+3.8. 2018-05-21 22:31:34 +02:00
15ec52eab4 app: undeprecate GimpThumbBox
and cheat around to trick CSS into believing it's a treeview with
a header that says "Preview". Setting its width so it won't jump
around is still broken.
2018-05-21 19:59:38 +02:00
6f6ec64fa9 app: the return value of gdk_device_get_has_cursor() has become meaningless
so for now assume that all devices except floating ones move the
pointer, and figure out the details once multiple masters actually
exits.
2018-05-20 21:06:35 +02:00
9d4d68aa91 app: remove GimpScaleButton, it has not been used in ages 2018-05-20 21:06:35 +02:00
ecb99ab445 app: add the new distance, rotation and slider axes to GimpCoords
and add code to get them from events and devices.
2018-05-20 21:06:35 +02:00
4703a195bb app: remove GimpHighlightableButton
and use gimp_button_set_suggested() and _set_destructive() instead.
2018-05-20 21:06:35 +02:00
f102ceb63f app: add gimp_button_set_suggested,destructive() to gimpwidgets-utils
which set/unset the "suggested-action" and "destructive-action" style
classes and make sure the button relief is right.
2018-05-20 21:06:35 +02:00
602dfb9a38 app: the last s/GdkDeviceManager/GdkSeat/ 2018-05-20 21:06:35 +02:00
d2edafbf16 app: use GdkDeviceTool properties to GimpDeviceInfo
and display the current tool's info in GimpDeviceInfoEditor.
2018-05-20 21:06:35 +02:00
9a4c9b6650 app: add "source", "vendor-id" and "product-id" to GimpDeviceInfo
and display them in GimpDeviceInfoEditor.
2018-05-20 21:06:35 +02:00
89a4ea85ef app: port GimpDeviceManager and GimpDeviceInfo to GdkSeat
and also be smarter about what devices we enable by default: enable
all tablet devices and disable all things mouse, they can still be
enabled in the device dialog.
2018-05-20 21:06:35 +02:00
24d0886f57 app: extended device concept does not seem to exist in GTK+3.
We were keeping around a flag telling us if coordinates are extended or
not. In GTK+2, a device indeed had to be enabled. In GTK+3, I can see
that device with extended inputs are enabled by default (they always
have pressure, etc.). This flag is made useless.
2018-05-20 21:06:35 +02:00
19caf4add8 app: undeprecate GimpDeviceStatus. don't use gtk_widget_set_state()
Use the same code as GimpPrefsBox to make the active device look like
a selected list item.
2018-05-20 21:06:35 +02:00
e0b3e893d2 app: GTK+3 has more GdkAxisUse values.
This fixes a crash when we were looping until GDK_AXIS_LAST, but our
existing code was expecting less values.

Also I note that GTK+3 has an additional GDK_AXIS_ROTATION since version
3.22, even though we were told that some pens with rotation support
would report rotation values with same valuator as for the wheel (at
least, the Wacom Art Pen would apparently use the same 6th valuator).
For proper support, it would be really worth testing such pens.
2018-05-20 21:06:35 +02:00
f3f61379f7 app: remove the option to enable tearoff menus 2018-05-20 21:06:35 +02:00
00c6047108 app: undeprecate gimp_highlight_widget_draw()
by stealing the few lines of code from gtk-inspector. Looks better, too :)
2018-05-20 21:06:35 +02:00
71523b20cb app: add the help button the proper way in GimpFileDialog
Removes deprecated API usage and brings back the button.
2018-05-20 21:06:34 +02:00
1fcebb5a73 app: don't use gtk_widget_modify_text() in GimpContainerEntry
Instead, show an EEK wilber icon if an object with the entered name
doesn't exist.
2018-05-20 21:06:34 +02:00
465300f0ae app: undeprecate GimpDashEditor 2018-05-20 21:06:34 +02:00
d7e7020a32 app: undeprecate GimpDessionInfo and fix remembering size and position
Don't mix GtkWindow/GdkWindow/GdkEventConfigure values, always use
GtkWindow API. This seems to fix everything, probably because it
properly takes client-side window decorations into account.
2018-05-20 21:06:34 +02:00
2dd2f1509b Enable and fix smooth scrolling and zooming
- Fix gimp_scroll_adjustment_values() for smooth scroll events
- Set GDK_SMOOTH_SCROLL_MASK on all widgets where we set GDK_SCROLL_MASK
- Add GIMP_ZOOM_SMOOTH to enum GimpZoomType
- Add "gdouble delta" to gimp_zoom_model_step()
- Change the meaning of the "scale" parameter to "scale or delta" in
  all functions that take GimpZoomType and a scale factor.
2018-05-20 21:06:34 +02:00
e4d05a4758 app: use gimp_scroll_adjustment_values() in GimpNavigationEditor
and change signature of GimpNavigationView::scroll() to have
a GdkEventScroll instead of a GdkScrollDirection.
2018-05-20 21:06:34 +02:00
fa3abc957b app: set GDK_SCROLL_MASK on widgets that need scroll events 2018-05-20 21:06:34 +02:00
a072a5b789 app: get rid of gdk_keymap_get_default(), use get_for_display() instead 2018-05-20 21:06:34 +02:00
7d151002b0 app: fix button order in GimpColorDialog 2018-05-20 21:06:34 +02:00
cb9651cf73 app: use the passed parent's toplevel in gimp_color_dialog_new() 2018-05-20 21:06:34 +02:00
389e86fff8 app: use GTK_ICON_SIZE_MENU for GimpColorEditor's page switching icons 2018-05-20 21:06:34 +02:00
bdbec7941c Use the new macros from the last commit in all files
...and gone are the annoying warnings.
2018-05-20 21:06:34 +02:00
dfb4d26611 Use gtk_show_uri_on_window(), gtk_show_uri() is deprecated 2018-05-20 21:06:34 +02:00
4e7eead7e3 app: set all GtkPaned widgets to have wide handles
the narrow handles' event areas did overlap with our own widgets close
to the handle.
2018-05-20 21:06:34 +02:00
407603326f app: follow preferences changes/improvements in GimpDeviceEditor 2018-05-20 21:06:34 +02:00
126c9347e6 app: behold unseen fancy shit in preferences 2018-05-20 21:06:34 +02:00
1d8696cd80 Get rid of gdk_flush() globally, use gdk_display_flush() 2018-05-20 21:06:34 +02:00
b5d78ee98a app: fix themeing of GimpHistogramView and GimpCurveView
by simply getting rid of all earlier added style properties
and instead using the style of the "view" CSS class.
2018-05-20 21:06:33 +02:00
bb2a9d119f libgimpconfig: move all GimpColorConfig members to private 2018-05-20 21:06:33 +02:00
73af1873a7 app: gdk_screen_get_monitor_workarea() -> gdk_monitor_get_workarea() 2018-05-20 21:06:33 +02:00
885f66158a app: kill all except one GtkAlignment, the tag popup one is a bit tricky 2018-05-20 21:06:33 +02:00
369b273157 libgimpwidgets: move GimpEnumStore.enum_class to private 2018-05-20 21:06:33 +02:00
9cb67fa992 app: kill the last GtkTables. 2018-05-20 21:06:33 +02:00
8e900d1867 app/widgets: port the toolbox indicator area to GtkGrid 2018-05-20 21:06:33 +02:00