1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 12:58:08 +01:00
Commit Graph

3406 Commits

Author SHA1 Message Date
David Maciejak
050cae3bd2 wrlib: Added support for webp image
This patch is adding support for google webp image format, if you
don't know it a quick recap is to say that according to their tests
they claim it is better than png and jpeg.

Follow the link below for some more details:
https://developers.google.com/speed/webp/

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2014-04-24 10:56:51 +01:00
David Maciejak
de1421394c wrlib: Fixed and improved NETPBM examples
The tests examples were not compiling because of a missing X11 lib.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2014-04-24 10:56:51 +01:00
Christophe CURIS
8b73356c4f wrlib: Improved file format detection
- remove header not needed anymore
- revert change for XPM to stay in line with the standard
- changed PNG to stuck to the standard
- increased GIF to the complete signature

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2014-04-24 10:56:51 +01:00
David Maciejak
92b803bbdf wrlib: Improved file format detection
load.c is used to identify the file format, I rebased some checks on
what is defined in the spec of the format.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2014-04-24 10:56:51 +01:00
Christophe CURIS
34ca63c59f wrlib: Improved NETPBM support
- re-add PPM to the list of supported format, because legacy apps may
expect to find it from the list;

- add the copyright notice related to the code that have been borrowed
from Netpbm;

- fixed a small error in PPM format check in the loading procedure;

- and a few minor code improvements

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2014-04-24 10:56:50 +01:00
David Maciejak
051a30f550 wrlib: Improvements to Netpbm memory usage on errors
This is actually taken from patch:
  wrlib: Added support for webp image

in which it is out of place as it is unrelated

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2014-04-24 10:56:50 +01:00
David Maciejak
5c96c69cb5 wrlib: Improved NETPBM support, file format detection
1) according to that checks i was able to see that some netpbm support
   type are missing (exactly: ascii graymap (PGM files) and pixmap (PPM)
   and ascii/binary bitmap (PBM))

See the link below for more details.
http://en.wikipedia.org/wiki/Netpbm_format

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
2014-04-24 10:56:50 +01:00
David Maciejak
aed4d78e87 util: Make code a bit more secure
- add some checks on functions return values
- use snprintf to avoid buffer overflow
2014-04-24 10:56:25 +01:00
David Maciejak
01478146f9 Add call to WMReleaseApplication on application exit 2014-04-24 10:56:25 +01:00
David Maciejak
588e04dda7 WINGs: Add functions to release application memory 2014-04-24 10:56:25 +01:00
Christophe CURIS
36c3f7edf4 WUtil: Added missing const attribute to function arguments
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-04-24 10:47:45 +01:00
Christophe CURIS
e8feda5414 WUtil: Fixed incorrect header being included
WUtil's file misc.c was including the private header for WINGs, where it
should have been using WUtil's public header instead.

Took opportunity to include the appropriate copyright header.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-04-24 10:47:45 +01:00
David Maciejak
a3ce005980 WINGs: Add support for syslog messaging
This patch is used to add support for syslog messaging implemented in
WINGs lib directly, so available from the lib itself and wmaker too.
I believe it will in a first time help to get some logging info
centralized in one point, and in a second time maybe add some info
level messages like wmaker is starting, stopping, restarting and else.

For now, it's built by default when the syslog support is found, maybe
we could also disable it by default.
2014-04-24 10:47:45 +01:00
Yuri Karaban
ccd96d1563 autoPlaceWindow: try placing window at center first 2014-04-24 10:47:45 +01:00
Yuri Karaban
78be868972 autoPlaceWindow: rename mysterious parameter tryCount to ignore_sunken 2014-04-24 10:47:45 +01:00
Yuri Karaban
b1a67e4bc7 autoPlaceWindow: rewrite iteration to more comprehensible form 2014-04-24 10:47:45 +01:00
Yuri Karaban
a7471fd82a split autoPlaceWindow to smaller functions 2014-04-24 10:47:45 +01:00
Carlos R. Mafra
17c93f0947 wmgenmenu: Write paths according to options set at configure time
As reported by Shawn W Dunn, the configuration strings written by wmgenmenu
in $HOME/GNUstep/Defaults/WMRootMenu were not reflecting his installation
directories choices.

Fix this by writing strings composed with PKGDATADIR.
2014-04-24 10:47:45 +01:00
David Maciejak
c2e4f62777 RandR misc.
This patch is replacing XRandR naming to RandR,
as XRandR is the name of the tool used in X11 and RandR
is the technology WMaker wants to support.
I had to update the info panel too, when many features are
activated not all of them can be displayed properly.
2014-04-24 10:47:45 +01:00
Alwin
afc900a7c3 New translation into Dutch for Window Maker
Because the existing nl locale files are ancient and obsolete,
the user interface stays mainly in English with hardly Dutch text
showing up.

This is a complete translation in 6 parts from scratch, using the
current (pl)menus and Makefile generated .pot files. These files
provide a very good, and thoroughly checked user interface in the
Dutch language.

Adding me as a maintainer in related README files; removing previous
maintainer (e-mail bounced).

Removing unnecessary executable bit from pt.po on the fly.
2014-04-24 10:47:45 +01:00
Christophe CURIS
0e99f6ea3c doc: Ran spell-checker on most text files present in the top directory
Lang was set to en_US; fixes a number of typos

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-04-24 10:47:45 +01:00
Christophe CURIS
fd5c06c056 doc: Added info on git send-email in the 'perfect-patch' recommendation
As this is a feature that is quite handy, let's document it there so more
people can benefit from it, we'll probably gain from less patches that
mail software broke or that are hard to review, because not inlined.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-04-24 10:47:45 +01:00
Christophe CURIS
153f5250bc doc: Minor updates to the main README file
Including proper instructions for compiling with debug enabled;
removing offensive remark (even if true); removing deprecated docklib stuff.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-04-24 10:47:44 +01:00
Christophe CURIS
dcd08355ed test: Added a few comments to explain things
As this code may be used as an example, we'd better do things clear

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-04-24 10:47:44 +01:00
Christophe CURIS
c13236c2e6 WPrefs: Completely removed function 'makeTitledIcon' that did nothing
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-04-24 10:47:44 +01:00
David Maciejak
aa890c8868 WPrefs: Fixed compiler warnings
This patch is used to catch some return function value, to make the
compiler happy.
2014-04-24 10:47:44 +01:00
David Maciejak
278fdfa1db Updated copyright date 2014-04-24 09:29:11 +01:00
BALATON Zoltan
329bcca763 Updated Hungarian translation
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
2014-04-24 09:27:15 +01:00
BALATON Zoltan
3a24237a8d WPrefs: Make Dock preferences pane less busy and fix up some strings
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
2014-04-24 09:27:15 +01:00
Brad Jorsch
6d5ffca076 Set no_focusable for "notification" and "tooltip" windows
Notification popups, and tooltips for that matter, shouldn't be taking
focus away from apps the user is actually interacting with.
2014-04-24 09:27:15 +01:00
BALATON Zoltan
ae0cc1427f Updated Hungarian translations
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
2014-04-24 09:27:15 +01:00
BALATON Zoltan
7a10bcb51e Fix out of source build for i18n pot files
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
2014-04-24 09:27:15 +01:00
Christophe CURIS
4e70bdb5cd WPrefs: Removed \n from label as the widget does at better job at splitting lines
This explicit \n caused a bad line split in the displayed text; without it
the natural line splitting keeps the text on 2 lines instead of 3.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-02-13 09:02:38 +00:00
Christophe CURIS
ecfeb8bc1c WPrefs: Resized frames inside Mouse Settings panel to avoid label truncated
Some labels were truncated because the frame containing them was a bit
short; now the frames on the left have been shrunk (they had too much
margin) so the frames on the right can be expanded to have the labels fully
visible.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2014-02-13 09:02:38 +00:00
Christophe CURIS
101e24b0be Fixed xinerama detection
As reported by David Maciejak, when libXinerama was not found on the
system, the configure script still tried to search for associated
header and stopped all with unclear message.

The proper behaviour that was expected is to accept silently that
libXinerama may not be missing, and only stop compilation when the lib
is present but not its header.
2014-02-13 09:02:38 +00:00
Rodolfo García Peñas (kix)
1644eec5ec Fixed compiler warnings in dock.c
This patch removes unused variables as reported by the compiler in
the file dock.c
2014-02-13 08:58:25 +00:00
David Maciejak
6a7fcb98ef WPrefs: Fixed label display truncated for delays in ms for autocollapsing clips 2014-02-13 08:58:25 +00:00
David Maciejak
2c5dbae444 WINGs/Examples: Removed refs to connect and server examples 2014-02-13 08:58:25 +00:00
Brad Jorsch
288943c813 Add _NET_WM_WINDOW_TYPEs added in EWMH 1.3
EWMH 1.3 added various window types: dropdown_menu, popup_menu, tooltip,
notification, combo, and dnd. We may as well set appropriate defaults if
these types get set on a window that isn't override-redirect.

I'm not terribly attached to these defaults, except that the ones for
'notification' are what I set manually for xfce4-notifyd before deciding
to patch wmaker.
2014-02-13 08:55:47 +00:00
Brad Jorsch
2e0d2f3df9 Minimal support for _NET_WM_WINDOW_OPACITY
While we don't provide compositing ourselves, add-on compositors such as
xcompmgr need us to copy the _NET_WM_WINDOW_OPACITY property from the
client window to the frame window.

We can do this easily enough.
2014-02-13 08:55:47 +00:00
Rodolfo García Peñas (kix)
3b97d33d0a WINGS: removed compiler warnings.
This patch removes compiler warnings.
2014-02-13 08:55:47 +00:00
Rodolfo García Peñas (kix)
201ea95e9d remove wtest compiler warnings.
This patch removes the wtest compiler warnings.
2014-02-13 08:55:47 +00:00
Rodolfo García Peñas (kix)
0bb96cdfe7 Removed unused code in screen.c
This patch removes the unused code in screen.c.

The variable "dock_head", is defined, but not used. When we removes
the variable, then we can see that a lot of code is not used! so we
can remove it :-)

This patch also removes some extra curly brackets and join the variable
definition and the initialization in one line for some variables.
2014-02-13 08:55:47 +00:00
Rodolfo García Peñas (kix)
761f3c6e85 Remove compiler warnings in defaults.c
This patch removes these warnings:

defaults.c: In function ‘getFont’:
defaults.c:2011:84: warning: unused parameter ‘addr’ [-Wunused-parameter]
 static int getFont(WScreen * scr, WDefaultEntry * entry, WMPropList * value, void *addr, void **ret)
                                                                                    ^
defaults.c: In function ‘getColor’:
defaults.c:2036:85: warning: unused parameter ‘addr’ [-Wunused-parameter]
 static int getColor(WScreen * scr, WDefaultEntry * entry, WMPropList * value, void *addr, void **ret)
2014-02-09 22:53:15 +00:00
Rodolfo García Peñas (kix)
4989097049 GetWindow function, argument not used
The argument "panel" in the function GetWindow() is not used.
This patch removes this argument to avoid compiler warnings.
2014-01-31 19:38:18 +00:00
Rodolfo García Peñas (kix)
3919363aa3 Arguments not used in SetButtonAlphaImage
The arguments for SetButtonAlphaImage() are not used, so can be removed to
avoid compiler warnings.

This patch removes these arguments, so the code in SetButtonAlphaImage(), not
used, can be removed too.
2014-01-31 19:38:18 +00:00
Rodolfo García Peñas (kix)
0e01e69205 Removed unused code in makeTitledIcon
This patch removes the unused code in the function makeTitledIcon().

The arguments are not used, so are removed to avoid compiler warnings.
2014-01-31 19:38:18 +00:00
Christophe CURIS
d30b942b9e WPrefs: Moved widgets in Workspace panel so that label is not truncated
A label was truncated because the widget next to it was too close for
historical reasons; now that the frame is wide enough the Pop-up Button
widget at its left is pushed further apart so the label for the position
of the workspace name can be fully visible.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2013-12-30 18:13:33 +00:00
Christophe CURIS
5770e53c50 Fixed a few improper macro usages
Added compiler checks for some improper macro usage and fixed the problems
pointed by gcc.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2013-12-30 18:13:33 +00:00
Amadeusz Sławiński
0faff93cf7 move dock/icons size adjustments, to fix window placement
Functions placing windows (PlaceWindow - src/placement.c, wMaximizeWindow -
src/actions.c) need to calculate area differently than ones placing icons
(PlaceIcon - src/placement.c, wArrangeIcons - src/actions.c).
So this patch puts adjustment code in wGetUsableAreaForHead which is
used by all those functions but called with different 'bool noicons'
argument depending on if it's called in window or icon placement
function.

Reported-by: Carlos R. Mafra <crmafra@gmail.com>
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
2013-12-30 18:11:07 +00:00