summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/utils.cc
AgeCommit message (Collapse)Author
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
2013-01-21start passing around the (possibly-bundle-modified) localedir so that we ↵Paul Davis
call bindtextdomain() correctly, and thus (hopefully) find message catalogs correctly inside a bundle git-svn-id: svn://localhost/ardour2/branches/3.0@13965 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-10remove rounded corners from non-mobile ends of pixfadersPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@13828 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-06several theme changes. changed drawing of rounded_rectangle to be more ↵Ben Loftis
correct. operation and feel should be more consistent. rec-mute-solo buttons are now dull until enabled. this might be debatable. otherwise if it looks weird, try loading Window->Theme Manager and clicking Restore Defaults git-svn-id: svn://localhost/ardour2/branches/3.0@13611 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-11-14provide the ability to enable + disable tooltipsPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@13505 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-11Factor out 'persistent' tooltip code from the pannerCarl Hetherington
interface and use it for processor box sliders (#4461). git-svn-id: svn://localhost/ardour2/branches/3.0@12661 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-05Marginal cleanup.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@12565 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-02-07remove additional "mid" color from ArdourButton; replace Active/Mid widget ↵Paul Davis
state with ExplicitActive/ImplicitActive; represent implicit-active state with colored border around ArdourButton; tune button colors; new rounded_foo() functions, some in use, some not in use right now git-svn-id: svn://localhost/ardour2/branches/3.0@11466 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-02-03add some more variants of the cairo rounded rectangle codePaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@11434 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-12-07switch to benjamin otte's implemention of fit_to_pixels() but leave ↵Paul Davis
uncommented because this prototype is not used; move 2 other non-ardour-specific utility functions into gtkmm2ext git-svn-id: svn://localhost/ardour2/branches/3.0@10931 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-23Pack toolbar combo boxes with expand=false and remove size kludges.David Robillard
Turns out gtk these days sizes combo boxes with precisely enough space if packed to not expand, none of this mess is necessary any more. git-svn-id: svn://localhost/ardour2/branches/3.0@10790 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-17all new implementation of audio clocks, with entirely new editing model. not ↵Paul Davis
entirely finished, but lookable, and usable git-svn-id: svn://localhost/ardour2/branches/3.0@10662 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-14Comment typo.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@10575 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-26provide C API for rounded rectangle cairo utilityPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@10310 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-20add (commented) new version of fit-to-pixels function, from Company on #gtk+Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@10248 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-06-07lots of clock tweaks, but still, STILL! not done, reallyPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@9678 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-06-02audio clock switchover part2: remove most egregious include-time dependency ↵Paul Davis
on audio_clock.h, and alter API for a few utilities along the way git-svn-id: svn://localhost/ardour2/branches/3.0@9673 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-02-08added Gtkmm2ext::rounded_rectangle() cairo pseudo-methodPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@8787 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-01-27merge 3.0-panexp (pan experiments) branch, revisions 8534-8585 into 3.0, ↵Paul Davis
thus ending 3.0-panexp. THIS COMMIT WILL BREAK ALL EXISTING 3.0 SESSIONS IN SOME WAY (possibly not fatally). git-svn-id: svn://localhost/ardour2/branches/3.0@8586 d708f5d6-7413-0410-9779-e7cbd77b26cf