Commit Graph

467 Commits

Author SHA1 Message Date
Clement Lefebvre
7fa91f721e Configuration screen: Fix alignmnents and margins
Credits to:
https://github.com/linuxmint/mintmenu/pull/222
https://github.com/linuxmint/mintmenu/pull/224
2019-05-14 14:09:45 +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
8988476df2 Preferences: Normalize margins/alignment/layout between tabs (#220) 2019-02-20 14:12:07 +00:00
gm10
7b34063038 Preferences: Change "recent documents" to "recently used applications and documents" plugin (#215) 2019-02-20 10:25:00 +00:00
gm10
2e42cabf0a Applications: Replace the deprecated icon for adding packages (#216) 2019-02-20 10:24:34 +00:00
gm10
c2a0947dfd Applications: Replace deprecated xpad/ypad with margin-XYZ parameters (#218) 2019-02-20 10:24:19 +00:00
gm10
d5147caf9b Applications: Remove Search label (#217) 2019-02-20 10:24:04 +00:00
gm10
35fd4cce15 Preferences: Fix deprecated alignment parameters (#219) 2019-02-20 10:23:27 +00:00
gm10
7504a11bba remove unused variables from favoritesBuildLauncher 2019-02-12 16:31:46 +00:00
gm10
37cd852738 Applications.py: Clean up more whitespace and line lengths 2019-02-12 16:31:43 +00:00
Clement Lefebvre
4ee04c3869 Fix msgids and glade files 2019-02-12 13:52:47 +00:00
gm10
8844d89cec Clean up i18n, remove unnecessary duplication 2019-02-12 13:52:47 +00:00
gm10
33865c4dc9 keybinding: Remove left-over debug messages (#213) 2019-02-12 13:10:58 +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
Andrew
d3ce506d45 Fix broke running with "xdg-su" in exec field (#200) 2019-01-21 15:50:58 +00:00
gm10
2f1329de7d Applications: Fix keypress event handler (#205)
* Applications: Fix keypress event handler

* further fix and simplify the keypress handler

* disconnect the keyPress handler when destroying the plugin
2019-01-21 15:37:01 +00:00
gm10
6f34ff8538 Places: Don't hardcode file browser (#204) 2019-01-21 15:20:00 +00:00
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
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
Clement Lefebvre
eafbd9d7ef Fixed launching some Wine applications
Replaces "\\" ocurrences in appExec with "\".
2016-10-05 10:21:21 +01:00
leigh123linux
daac10823f fix border colour 2016-09-07 09:40:38 +01:00
leigh123linux
4d9de57f27 fix some glade typos 2016-09-07 00:40:16 +01:00
leigh123linux
a1d5e35535 fix errors 2016-09-06 22:07:46 +01:00
leigh123linux
acf692a95e glade part #3 2016-09-06 21:45:42 +01:00
leigh123linux
76b0ace41f glade part #2 2016-09-06 18:27:13 +01:00
leigh123linux
be31734ffb glade part #1 2016-09-06 17:52:12 +01:00
leigh123linux
150e02c0a0 gtk3 2016-09-06 15:58:34 +01:00
JKAbrams
b3f84781db Making internet searching from the start menu optional 2016-08-09 13:45:02 +02:00
JKAbrams
2bae237155 Revert "Added setting to disable internet searching"
This reverts commit a8f751a4aa.
2016-08-09 13:27:49 +02:00
JKAbrams
a8f751a4aa Added setting to disable internet searching 2016-08-09 13:04:37 +02: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
8adc16e7a7 System: Use pkexec for synaptic 2016-06-06 10:56:01 +01:00
Clement Lefebvre
bb36ce7151 Refresh the apps on icon-theme-changed
This shouldn't be necessary. The icons change by themselves when the theme changes, ithout the need to refresh the list of apps.

That said, at login, we're observing what looks like a race condition, which sometimes results in category and sometimes apps icons not being displayed.

The possible cause for this is a late initialization of the icon theme, so this commit might fix it.

If after this commit, this issue is still visible, then this commit should be reverted.
2016-05-21 18:33:00 +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
d31aa2616f Favorites: Replace gedit/pluma with xed 2016-05-18 10:25:52 +01:00
Benjamin L. Campbell
8ba93f9eef Fix space behavior. 2016-04-21 10:00:35 +01:00
Benjamin L. Campbell
e12dee7b01 applications plugin: Launch first application matching search on ENTER keypress. 2016-04-21 10:00:27 +01:00
Sorokin Alexei
4b876e7faa Fix crash on Gtk 2.24.29+ 2016-01-25 16:03:15 +00:00
Clement Lefebvre
755083406b Don't refer to /usr/lib/linuxmint/mintInstall/icon.svg 2016-01-21 16:32:58 +00: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
Clement Lefebvre
9c5b943fb1 Little improvements in system dir detection 2015-09-20 14:36:33 +01:00
Clement Lefebvre
1a97c41458 Merge pull request #140 from ChromaticDragon/master
Changes to support 64-bit pointers passing the C-python interface.
2015-09-20 13:00:20 +01: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
Maxime-J
1350f8072a Localized Desktop folder fix
XDG_DESKTOP_DIR contains environment variable which is not automatically expanded by Python
`XDG_DESKTOP_DIR="$HOME/Bureau"`
We have to use os.path.expandvars
2015-07-30 22:48:12 +02: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
de10e5bd84 Fixed ubiquity not launching from mintmenu 2015-06-14 13:37:04 +02:00
James Lu
4d4558cc4e Sort available themes in Menu preferences->Theme 2015-03-14 19:46:07 -07:00
Clement Lefebvre
da1b3f9d00 Added gnome-system-monitor to list of favorites 2015-02-26 19:35:08 +01:00