Commit graph

22 commits

Author SHA1 Message Date
Peter Müller
3b34639916 Change old gtk-* icon names to new
Following the suggested new names from https://docs.gtk.org/gtk3/?q=STOCK_
2022-04-16 22:36:02 +02:00
0c8a0058bf use python3 in all #!python lines 2021-09-02 18:32:58 -05:00
Rene Hopf
f16963b9a7 fix merge errors 2021-05-23 02:38:04 +02:00
Rene Hopf
28b27e65e3 Merge branch 'master' into master-gtk3 2021-05-23 02:19:18 +02:00
Norbert Schechner
1cface73ee some corrections
- iconview
- gmoccapy
- notification

Signed-off-by: Norbert Schechner <nieson@web.de>
2021-05-23 01:19:23 +02:00
Norbert Schechner
f8f367328e iconview on btn selected corrected
Signed-off-by: Norbert Schechner <nieson@web.de>
2021-05-23 01:16:06 +02:00
Norbert Schechner
5f294d0be5 iconview corrected
Signed-off-by: Norbert Schechner <nieson@web.de>
2021-05-23 01:16:05 +02:00
Rene Hopf
083366aa97 fix Invalid icon size warning 2021-05-23 01:09:44 +02:00
Rene Hopf
dd95e08979 gtk3 wip 2021-05-23 00:51:14 +02:00
luz paz
ea08a53edd docs: fix source comment and doc typos in lib/python
Found via `codespell v2.0.dev`  
```
codespell -q 3  -L ans,doubleclick,halp,parms
```
2021-01-04 09:53:06 -05:00
Chris Morley
26429eaa10 gladevcp -fix a warning about icon size
It seems pygtk doesn't like 'image.set_from_stock' with a number
rather then a constant.
2018-03-19 15:14:54 -06:00
Lubomir Rintel
a63ec765cb all: update FSF address in GPL 2.0 notices
If you write to 59 Temple Place you're unlikely to get a response.
Let's realign the address with a more up-to-date one from [1].

  [1] https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

This is purely a cosmetic change, doesn't affect the meaning of the
license. Done to make rpmlint happy.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
2017-09-15 13:06:22 +02:00
Norbert Schechner
5bd18891a6 GladeVCP - IconView - Bug due to double click
If the user uses a double click on a place where no icon is
located, a python exception was thrown.

Solved that with a try except

Signed-off-by: Norbert Schechner <nieson@web.de>
2016-05-23 20:07:31 +02:00
Norbert Schechner
4108eb3321 GladeVCP - Iconview
If the user select a icon with the mouse, the select button did not get
sensitive. I added a "selection_changed" signal to set the
button in correct state.

Signed-off-by: Norbert Schechner <nieson@web.de>
2016-03-30 21:59:24 +02:00
Norbert Schechner
865f2bb10e gladevcp - iconview could create exception in some circumstances
- the widget did throw an exception if a the user did enter a enter a directory
  without read rights and then pushed the next or previous button, caused because
  we are not allowed to iter over the files. Now the widget checks if the user is
  allowed to read the files in a directory, if not the dir will be skiped and
  therefor it is not visible in the widget.

- the button will get not sensitive if it does not make sense to push them,
  i.e. button next, if no file is in the selected directory or home button,
  if we are in the home directory

- introduced a new signal "sensitive" emitting button state changes,
  so surrounding GUI can be sincroniized with the widget, see gmoccapy
  as example

- the button next will now jump to first, if we are on the last icon,
  the previous button jumps to last if we are on the first icon
  so it is faster to get from first to last and vice versa

- some typo errors has been corrected

thanks to balestrino to report the bugs and typos


Signed-off-by: Norbert Schechner <nieson@web.de>
2015-12-08 09:02:44 +01:00
Norbert Schechner
29aa884e1c gladevcp - iconview.py - bug filling store if filename has several dots
files containing two dots in there name was not shown in iconview.
i.e. Pocket 2.5 step(1).ngc has not been shown, now only the most right
dot is used to get the file extension

corrected that
2014-05-01 09:36:24 -05:00
Norbert Schechner
de2b809846 gladevcp - iconview icons now selected according to mime types
The icons of the files shown are now selected according theire mime types
making it much easier to distingish i.e. python and txt files
2014-03-04 18:11:41 +01:00
Norbert Schechner
081deacf48 gladevcp - IconFileSelection make react to dobble click 2014-03-03 11:01:28 +01:00
Norbert Schechner
eb6f410df5 gmoccapy_0_9_9_9_10 - iconview refresh added
ver. 0.9.9.9.10
- added a refresh command to iconview, otherwise adding a file
  and reopeninmg the view, would not refresh the view, so the
  added file could not be selected
2014-02-23 17:55:42 +01:00
Norbert Schechner
af387ddad8 gmoccapy_0_9_7_1 - reordered all files to follow the new gscreen structure
ver 0.9.7.1
- changed the structure of the files, so the user do not
  need to copy files after an update, he only needs
  to adapt his conig files.
  this follows the new gscreen structure and
  all files should be present after installing linuxcnc
- corrected some typos in code
- changed my way to show the entry dialog as integer only
  to the gscreen way
- added a file chooser to select the jump to dir in
  IconFileSelection
- file extensions are now taken from INI file and
  converted from raw data to correct format in an
  own function, taken in care in IconFileSelection and
  file to load chooser
- solved an error in IconFileSelection, crashing the GUI
  if button up was pressed being in the root dir

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
2013-09-08 12:56:12 -07:00
Norbert Schechner
dd855f1706 gmoccapy 0.9.7 - with icon file selection dialog and some minor bug fixes
ver 0.9.7
- added a file selection dialog, for touch screen use
- in MDI mode it is now possible to add more commands,
  even if the interpreter is running
- do not block any more the spindle buttons while the
  interpreter is running, so spindle can be switched
  on and of at any time
- added a selection for show keyboard on file selection
  at settings page
- changes button home_4 to show differnt icon,
  depending on INI settings of 4th axis
- moved some code "G95 related" from periodic to
  _update_vel
- corrected some align valuse in glade file
- removed units from max_vel_label (glade file)
- corrected hardware button behavior
- added again a sim hardware ini file
- uniform usage of "" instedt of sometime ''
  (just to clear python style)
- user can select on settings page, if he want the
  offsettab or the preview tab to be displayed as default,
  the tabs are shown, so changing is possible at any time
- prepared to get later our own error handling,
  introduced Notification Class, at the moment disabled
- corrected an error if setting the coordinate
  system after setting axis values in touch off dialog

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
2013-08-22 23:29:06 -07:00
Norbert Schechner
ac3d280d00 gmoccapy 0.9.7 - included iconview
Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
2013-08-22 23:29:06 -07:00