Commit Graph

126 Commits

Author SHA1 Message Date
Clement Lefebvre
01ae4b0f74 Applet: Fix handling of symbolic icons 2019-09-26 14:16:05 +01:00
Clement Lefebvre
298719a911 Fix blurry icon in HiDPI 2019-09-26 11:32:07 +01:00
Clement Lefebvre
69475bbb38 Don't depend on a menu editor
mintMenu also runs as fallback in Cinnamon,
we don't want to pull an editor there.
2019-07-29 12:23:37 +02:00
Clement Lefebvre
6f7a4bf3a6 Add support for menulibre 2019-07-23 12:33:52 +02:00
Clement Lefebvre
b7a1fa0b94 Remove support for custom colors
Since the move to GTK3 custom color support is extremely hacky and buggy:

- It relies on gtk_widget_override_color() which is deprecated
- Only one call to gtk_widget_override_color() is functional, successive
calls are ignored, leading to the menu not changing colors when the custom
colors are changed or enabled/disabled.
- RegenPlugins leads to a loss of color.
- Theme changes are broken due to overridden colors.

The feature is also very niche and quite unecessary. If a custom color is
better than the default one we should apply the change in the theme or
define a new theme which inherits ours and simply defines the menu
differently.

The way to do this, in line with GTK's design, is via CSS at theme level.
2019-07-22 13:30:59 +02:00
Clement Lefebvre
42ef09742a Switch to symbolic icons 2019-07-21 16:01:50 +02:00
Clement Lefebvre
7a3891647f Applet icon: Add support for icon names 2019-06-13 14:41:18 +01:00
Clement Lefebvre
66f76df4d3 Remove obsolete code 2019-05-20 15:44:26 +01:00
Clement Lefebvre
ca78764c13 Fix l10n
Move .ui to share folder
Fix makepot and translations
2019-05-20 14:50:32 +01:00
Clement Lefebvre
2a4267673d Revamp preferences
Use xapp widgets
Rewrite
2019-05-20 14:50:28 +01:00
Clement Lefebvre
1984d57525 Fix tooltips and make them optional, remove category tooltips in apps
Ported from https://github.com/linuxmint/mintmenu/pull/226
2019-05-14 16:49:40 +01:00
Clement Lefebvre
c293d485d9 Inject the app version during the build 2019-02-27 17:12:14 +00:00
Clement Lefebvre
cd43e2e9b9 About: Fix the path for mintcommon's version.py
It changed in mintcommon v2
2019-02-27 14:31:55 +00:00
gm10
3c6e384a1d Assorted cleanup, fixes and performance improvements (#206)
* initial cleanup with some debug messaging

* further cleanup, mostly coding style

* - more cleanup, and speed-up
- more fixes, including many icon and encoding related issues
- replace some icons and remove compile.py
- prepare for python3 port as much as possible

* remove some more unneeded files, few left-over cleanups

* move some external scripts to python3 already

* Fix and clean up add_search_suggestions and add_apt_filter_results logic

* more cleanup, thx Codacity

* fix issue with a path

* add a killall to the test script, fix a method declaration

* fix custom colour setting

* keybinding: re-add GdkX11

* re-add mint-common dep

* Use os.path.expanduser("~") instead of os.environ

* revert re-add GdkX11, but import Gtk first
2019-02-11 13:54:20 +00:00
Clement Lefebvre
9f22254425 Don't set window decorations
This works ootb with recent GTK versions now.
The workaround we used creates problems when run in HiDPI
(the window is misplaced and its size is twice larger).
2018-05-31 12:56:16 +01:00
Victor Kareh
45faa83e52 Fix menu positioning to account for multiple monitors (#24)
* Fix menu positioning to account for multiple monitors

It takes into account the orientation of the panel applet. It also
offsets its right/left positioning to avoid clipping.

Fixes #21

* Take into account possible clipping in the top/bottom of the monitor
2018-05-31 10:46:35 +01:00
Victor Kareh
ce03b1674d Support correct widget sizes for HiDPI displays 2018-05-31 10:42:30 +01:00
Leigh Scott
ce675497d1 fix indent (#183) 2017-08-26 17:35:45 +02:00
Clement Lefebvre
7e19123adc Add exception handling around keybinder
The keybinder isn't functional in guest sessions.
2017-06-12 15:44:24 +01:00
Clement Lefebvre
0d3702b716 Add exception handling around pointer monitor
The pointer monitor isn't functional in guest sessions.
2017-06-12 15:36:46 +01:00
monsta
2c8a68633e fix menu crash when placed on left vertical panel 2017-05-04 10:57:28 +01:00
JosephMcc
e86e11044d Remove the ability to set a custom border
This just doesn't work the way a user would expect under gtk3 so go ahead and
remove it.
2017-05-01 13:09:09 -07:00
Clement Lefebvre
f67292b048 Give the applet box a class name to allow easier themeing 2017-05-01 17:00:00 +01:00
Clement Lefebvre
63b9abce0e Fix #157 2017-04-28 16:34:26 +01:00
Clement Lefebvre
7dde0271ee Fix race condition with dconf on session start
gsettings is known to randomly spit changes signal by mistake at session start.

Only start listening to these after the menu elements are created.
2017-04-28 16:26:39 +01:00
Clement Lefebvre
0824cdf39d Fix get_origin calls in Betsy 2017-04-28 13:02:28 +01:00
Clement Lefebvre
ee8ae40cd0 Remove more ctypes 2017-04-28 12:45:07 +01:00
Clement Lefebvre
931ccd73c6 Merge pull request #162 from leigh123linux/master
Port to gtk3
2017-04-28 12:04:14 +01:00
Clement Lefebvre
4dc179d3ed Add Cinnamon support
We can use mintmenu in fallback mode
2016-12-07 01:43:01 +00:00
Clement Lefebvre
9747e2ec81 Use setproctitle to name the process 2016-12-06 22:37:02 +00:00
Clement Lefebvre
75b5c98894 Reorganize imports 2016-12-06 22:30:46 +00:00
leigh123linux
daac10823f fix border colour 2016-09-07 09:40:38 +01:00
leigh123linux
a1d5e35535 fix errors 2016-09-06 22:07:46 +01:00
leigh123linux
150e02c0a0 gtk3 2016-09-06 15:58:34 +01:00
Clement Lefebvre
79f2e2f4f0 Menu icon: Scale svg files to 22px to prevent them from getting too big 2016-06-22 15:51:03 +01:00
Clement Lefebvre
e2a0fabff7 Removed support for opacity
It was buggy and only worked with composition.

It might be reintroduced after the port to GTK3.
2016-06-21 17:13:45 +01:00
Clement Lefebvre
3f1e04c577 Clean up and add debugging info 2016-05-21 18:08:09 +01:00
Clement Lefebvre
877ce3640b Fixed indentation and trailing spaces 2016-05-21 17:11:36 +01:00
Clement Lefebvre
9941267dc5 Remove window titlebar (some metacity themes insist on showing a titlebar..) 2015-12-16 11:37:29 +00:00
Clement Lefebvre
2ea8e07a27 Fine-tuned border widths and padding 2015-11-04 01:23:00 +00:00
Clement Lefebvre
506ab67fa4 Add a frame around the menu 2015-11-04 00:55:31 +00:00
Chromatic Dragon
d0f2fb8fb0 Changes to support 64-bit pointers passing the C-python interface.
This fixes recent problems encountered on systems using python2
compiled with the PIE option set.
2015-09-09 16:17:47 -05:00
James Lu
d004409af9 Coerse shebangs to #!/usr/bin/python2
Arch Linux's default "python" install points to Python 3, and mintmenu is certainly not compatible with it!

Closes #134.
2015-06-25 17:44:30 -07:00
Clement Lefebvre
bc98ede28e Merge pull request #114 from monsta/patch-9
small fixes
2015-02-24 13:15:33 +00:00
monsta
51873b120d fixed wrong indentation 2015-01-16 15:16:25 +03:00
monsta
77e1177604 removed unused and confusing argument 2014-12-01 15:16:01 +03:00
Clement Lefebvre
b58e617446 Use /usr/bin/python always 2014-07-07 11:49:32 +02:00
Clement Lefebvre
a4694cc7c1 Revert "Simple fix for the flickering."
This reverts commit 5a7b246b7e.
2014-05-25 14:10:41 +01:00
hordepfo
5a7b246b7e Simple fix for the flickering. 2014-05-06 22:05:14 +01:00
Clement Lefebvre
2cc7f19546 Merge pull request #81 from monsta/better-focusout-blocking
Better logic in focus-out-event blocking/unblocking
2014-04-02 12:25:23 +01:00