summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/utils.cc
AgeCommit message (Collapse)Author
2019-10-31Highlight the currently selected item in ArdourDropdown & coJulien "_FrnchFrgg_" RIVAUD
2019-10-31Workaround a GTKMenu bug in ArdourDropdown & co.Julien "_FrnchFrgg_" RIVAUD
2019-10-31Work around an initialization bug of GTK menusJulien "_FrnchFrgg_" RIVAUD
2019-10-31Update |offset| instead of changing the formulaJulien "_FrnchFrgg_" RIVAUD
So that the test to see if it fits also takes the new offset into account.
2019-10-31Align vertical centers of widget and active menuitemJulien "_FrnchFrgg_" RIVAUD
2019-10-31Fix a thinko in x position of menu popupsJulien "_FrnchFrgg_" RIVAUD
This has lasted without being noticed because menus that big are not common.
2019-10-31NO-OP: whitespaceRobin Gareus
2019-10-31Declare helper function static (don't export)Robin Gareus
2019-10-30Try harder to put the active item under the mouse (ArdourDropdown)Julien "_FrnchFrgg_" RIVAUD
2019-08-03Update canvas/UI lib GPL boilerplate and (C) from git logRobin Gareus
2019-04-11Add API to render a reflectionRobin Gareus
This is to be used sparingly because the pattern is dynamically created every time. Mainly for the benefit of some Mixbus widgets -- compared to ArdourButton::convex_pattern
2018-10-26Glib throws a const FileError exceptionRobin Gareus
2018-10-09Ignore small (or negative) radii.Robin Gareus
Some calls use e.g. (corner_radius - 1.5). With small radii or boxy layout the radius can become negative.
2018-10-09Constant radian/degree factorRobin Gareus
2018-09-21Fix --no-nls (2/5), prefer #if in libsRobin Gareus
This is for consistency with system-wide gettext.h which is used by some 3rd party libs. system-wide gettext uses `#if ENABLE_NLS`, not #ifdef
2017-04-19Add missing <iostream> header includeTim Mayberry
This will be required for subsequent commits that remove inclusion of <iostream> from some shared headers.
2017-04-17NO-OP: whitespaceRobin Gareus
2017-04-17Send unmap event when removing a widgetRobin Gareus
This fixes a crash when hiding an ArdourCanvas Item VCA which is about to display a tooltip.
2016-08-19For MSVC, 'using namespace whatever' doesn't help us to differentiate ↵John Emmas
between ambiguous type names so... given that 'Rectangle' is a type name that's commonly found in several different namespaces, we'll need to specify explicitly which one we want.
2016-08-17Fix anchored popups with separators in themJulien "_FrnchFrgg_" RIVAUD
The code computing the position of the popup menu used to compare the given string to each MenuItem::get_label() result, but that method actually replaces the content (child) of the MenuItem if that child is not already a Gtk::Label. In particular, this breaks menu separators. Avoid the issue by checking by hand if the only child of the MenuItem is a Label, and directly compare the label text.
2016-08-17Replace positioning function with popup helperJulien "_FrnchFrgg_" RIVAUD
Because all uses of the function positioning menus anchored to a widget were as callback argument to Gtk::Menu::popup() where the caller needed to correctly bind arguments, this led to repeated and a bit obscure code. Wrap the logic into an helper function that takes care of all that, and update the callers.
2016-08-08Move anchored menu placement strategy to Gtkmm2ext utilsJulien "_FrnchFrgg_" RIVAUD
So that it can be used by others.
2016-07-18move show_gdk_event_state() utility function from gtk2_ardour to libs/gtkmm2extPaul Davis
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2016-05-31move new fractional pane utility functions into libs/gtkmm2extPaul Davis
2016-04-27also hide persistent tooltipsRobin Gareus
debatable, since most of them are not "help/tool info" but rather "current value display". Then again tooltip is tooltip and can be annoying or not wanted.
2016-02-22allow pixbuf_from_string() to return the full size pixbuf, with optional paddingPaul Davis
2016-02-22remove Gtkmm2ext::possibly_translate_mod_to_make_legal_accelerator().Paul Davis
This is no longer needed because we can set the modifier to the actual bits that GTK uses for Command (META+MOD2)
2015-10-16API to add system-specific file chooser shortcutsRobin Gareus
2015-10-15prepare better solution of Glib's << operatorRobin Gareus
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-10-04globally remove all trailing whitespace from ardour code base.Paul Davis
Paul Davis was responsible for introducing almost all of this.
2015-09-17associate label more closely with VST path button. the plugin tab needs a ↵Ben Loftis
complete layout rethink, someday
2015-09-06consistent pango-text layout size - fixes #6490Robin Gareus
Use gdk_pango_layout() for all text-size calculations. In Canvas::Text always use the same context (local image surface) for layouting (prior to this, local and window-context mix resulted in different sizes).
2015-08-11add API to get combobox option count.Robin Gareus
The data model needs to be checked to count available options. Directly using ComboBoxText::children()::size() counts widgets.
2015-06-29add new Gtkmm2ext::pixel_size() to conveniently get width&height for a given ↵Paul Davis
font + string
2015-03-16add API to query Gtk::ComboBoxText entriesRobin Gareus
..the overly complex C++ style variant. iterate twice.. hell yeah.
2015-01-14Fix setting command key bindings on OSX.David Robillard
2014-11-02add Gtkmm2ext::event_inside_widget_window()Paul Davis
2014-07-30Use text to specify combo box padding for better font/display tolerance.David Robillard
Consistent mixer strip button height. The latter works by setting all the button size request heights to the calculated height of the alphabet. Thus, all buttons of the same class will be the same height regardless of their actual text.
2014-07-09add std::string variant of set_size_request_to_display_given_string()Paul Davis
2014-05-10Bug fix imported from Mixbus2 (SVN r11025)John Emmas
Fix a crashing bug when trying to launch in a non-English locale (possibly only affects Windows)
2014-01-16add Gtkmm2ext::event_type_string()Paul Davis
2014-01-10fix merge errors with masterPaul Davis
2014-01-09add [missing] left_half_rectangle utilRobin Gareus
2014-01-02tweak design of time axis view item name text handlingPaul Davis
2013-05-08merge with masterPaul Davis
2013-05-07various changes to window visibility mgmt, including use of the mixbus2 code ↵Paul Davis
for toggling editor + mixer windows. no longer attempt to track changes made outside of ardour, which is a lost cause
2013-04-04initial commit of hand merging, plus getting "ancient" waf script to work ↵Paul Davis
correctly
2013-01-23more i18n fixes, this time removing a hack that broke i18n in bundles, and ↵Paul Davis
also only initializing NLS stuff if ENABLE_NLS is in effect. note that if translations are disabled by the user, we set the localedir used to look for message catalogs to a dir that is assumed to not exist (/this/cannot/exist) which should block all translation from happening. git-svn-id: svn://localhost/ardour2/branches/3.0@13975 d708f5d6-7413-0410-9779-e7cbd77b26cf