Commit Graph

411 Commits

Author SHA1 Message Date
Clement Lefebvre
54e695b056 Fix RecentHelper spam in logs
When recent plugin is disabled, recentAppBox is None,
resulting in errors in the logs:

org.mate.panel.applet.MintMenuAppletFactory[1038]: File “/usr/lib/linuxmint/mintMenu/plugins/recentHelper.py”, line 130, in applicationButtonClicked
org.mate.panel.applet.MintMenuAppletFactory[1038]: doRecentApps()
org.mate.panel.applet.MintMenuAppletFactory[1038]: File “/usr/lib/linuxmint/mintMenu/plugins/recentHelper.py”, line 112, in doRecentApps
org.mate.panel.applet.MintMenuAppletFactory[1038]: for i in recentAppBox.get_children():
org.mate.panel.applet.MintMenuAppletFactory[1038]: AttributeError: ‘NoneType’ object has no attribute ‘get_children’
2018-06-08 12:19:59 +01: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
Clement Lefebvre
d64ffb9a94 Favorites: Remove pidgin, add pix, fix gnome-calculator.. 2018-05-15 15:13:06 +01:00
Clement Lefebvre
469eaf57e5 mint-remove-application: Don't use gksu
mint-common now uses pkexec internally
2018-03-13 15:05:17 +00:00
Vincent Vermeulen
5f190ceac9 Highlight previous search so typing overwrites it (#191)
* Highlight previous search so typing overwrites it

When set to remember the last search, on next opening the menu it would display the last search and put the cursor at the end of it. If you wanted to do a new search you would first have to delete your previous search. More convenient if you starting typing it overwrites the last search and only if you place the cursor with arrow keys or mouse it switches to insert / append text to the last search.

There was existing code that did in fact do that but it was in the wrong place. This patch puts it in the right place. Fixes #86.

* Remove code to set position at end

Because it doesn't do anything when you select all the text.
2018-03-09 15:45:25 +00:00
Vincent Vermeulen
448299efb2 safe apt search with shell escapes (#190)
This fixes #178.

add_apt_filter_results ran a command with keywords from the menu's Search entry without shell escaping. This made it possible to have it run shell commands by using command substitution. E.g. searching for `$(xeyes)` would run xeyes.

When/if mintmenu gets ported to Python3 pipes.quote should be replaced by shlex.quote.
2018-03-07 09:43:04 +00:00
Clement Lefebvre
73a412acea Don't run mintinstall as root
It now runs in user mode.
2017-11-12 14:33:42 +00:00
Hrotkó Gábor
de3aed33f8 Show recently used apps (#167)
Show recently used apps
2017-11-11 08:59:49 +00:00
wesdawg
8f00708252 Search updates (#185)
* Update search URLs to use HTTPS

* Update Wikipedia icon
2017-09-25 15:54:35 +02:00
Leigh Scott
ce675497d1 fix indent (#183) 2017-08-26 17:35:45 +02:00
Clement Lefebvre
824efd26a9 Recent: Expand plugin to fill empty space 2017-06-27 09:01:18 +01: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
1d739da691 applications: don't spam system log with system tools names (#177) 2017-05-25 15:04:48 +01:00
Clement Lefebvre
e7931f2956 Places: Explicitly import GLib
Not actually needed, but for clarity and consistency with other plugins.
2017-05-06 14:10:07 +01:00
Alexei Sorokin
bd2e150e6e Use the Gtk3 bookmarks location (#174) 2017-05-06 14:07:02 +01:00
Victor Kareh
76ba6daf64 Fix windows-key global keybinding. (#172)
This fixes #98 where setting the windows-key as the menu hotkey blocks
all other windows-key-based shortcuts.
2017-05-05 16:09:26 +01:00
monsta
89c5ea08ae easybuttons: fix runtime warning about missing MateDesktop version 2017-05-04 10:57:28 +01:00
monsta
2c8a68633e fix menu crash when placed on left vertical panel 2017-05-04 10:57:28 +01:00
Clement Lefebvre
298f565998 Merge pull request #170 from JosephMcc/custom-borders
Remove the ability to set a custom border
2017-05-02 13:10:10 +01:00
Clement Lefebvre
2373274304 Fix launching apps which use su-to-root
This was removed by mistake during the port to GTK3.
2017-05-02 13:07:29 +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
JosephMcc
0653dcdf7a Don't ignore icons from /usr/share/pixmaps
This fixes some apps like Slack and WMail not showing the proper icon
2017-04-29 03:00:45 -07: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
272a9079e4 [Alexei Sorokin] Recent: Fix Gtk warnings 2017-04-28 16:18:43 +01:00
Clement Lefebvre
419136c89a Removed obsolete opacity support in config window 2017-04-28 16:12:21 +01:00
Clement Lefebvre
c7a2d83dde Fix empty trash popup 2017-04-28 16:04:01 +01:00
Clement Lefebvre
65fb842a81 Fix add to desktop 2017-04-28 16:00:31 +01:00
Clement Lefebvre
916ad7b731 Fix DND in favorites 2017-04-28 15:50:25 +01:00
Clement Lefebvre
ccf9573581 Fix popup menus 2017-04-28 13:44:09 +01:00
Clement Lefebvre
bf34d718cc Fix unknown variable name 2017-04-28 13:30:28 +01:00
Clement Lefebvre
240c5cbc26 Fix keybinding in LMDE 2017-04-28 13:24:38 +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
4e46d9b128 fix merge 2016-11-25 22:38:28 +00:00
Clement Lefebvre
b1331807cf Favorites: Add rhythmbox 2016-11-23 22:49:31 +00:00
Clement Lefebvre
3f5895145b Search engines: Point to local version of Wikipedia
Look at the locale and point at the appropriate version of Wikipedia.

Before this commit, mintmenu always pointed at the English Wikipedia.

Note: This commit might introduce regressions when a particular locale isn't supported by Wikipedia.
If this becomes a problem, we can fix this based on feedback.
2016-11-23 15:33:34 +00:00
Clement Lefebvre
1810b6b3ee l10n: Capitalize "Internet" 2016-11-23 15:22:37 +00:00
Clement Lefebvre
d1ee760670 Search engines: Fix community links when Internet search is disabled 2016-11-23 15:20:35 +00:00
Clement Lefebvre
f37700f5a0 Search engines: Re-enable search engines by default.
This was disabled in a previous commit due to the presence of Google CSE.
2016-11-23 15:15:05 +00:00
Clement Lefebvre
60461c5a0b Search engines: Replace Google CSE with DDG
In the absence of locale detection, DDG should be the default engine for everybody.
It's a Mint partner and a much better engine than CSE.
2016-11-23 15:13:29 +00:00
Clement Lefebvre
e18bcf5633 Merge pull request #160 from JKAbrams/optional-internet-search
Optional internet search
2016-11-23 13:59:40 +00:00