What has happened to Dialog.SaveFile ??

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

What has happened to Dialog.SaveFile ??

Jussi Lahtinen
Hi!
See the attached project. Go to menu; File --> Backup / Restore Alarms and
select Backup alarms.
If the file exist already I will get strange translation (not the one I
made!). And when I try to over write the existing file I will get "too many
arguments".

This used to work, but not with some of the latest revisions. Not sure when
it broke / changed..?


Jussi


[System]
Gambas=3.9.90 r8089
OperatingSystem=Linux
Kernel=3.19.0-32-generic
Architecture=x86_64
Distribution=Linux Mint 17.3 Rosa
Desktop=CINNAMON
Theme=Gtk
Language=en_US.UTF-8
Memory=7984M

[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+2=libgtk-x11-2.0.so.0.2400.23
GTK+3=libgtk-3.so.0.1000.8
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
QT4=libQtCore.so.4.8.6
QT5=libQt5Core.so.5.2.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
CLUTTER_BACKEND=x11
CLUTTER_IM_MODULE=xim
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-7pABt6Xr9V,guid=b36d88bd8a27ba4901be0e2958a07d67
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
DESKTOP_SESSION=cinnamon
DISPLAY=:0.0
GB_GUI=gb.qt4
GB_PROFILE_MAX=1000
GDMSESSION=cinnamon
GDM_XSERVER_LOCATION=local
GIO_LAUNCHED_DESKTOP_FILE=<home>/Desktop/Gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=4813
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-rpEEXv
GPG_AGENT_INFO=/run/user/1000/keyring-rpEEXv/gpg:0:1
GTK_IM_MODULE=xim
HOME=<home>
INSIDE_NEMO_PYTHON=
LANG=en_US.UTF-8
LC_ADDRESS=fi_FI.UTF-8
LC_IDENTIFICATION=fi_FI.UTF-8
LC_MEASUREMENT=fi_FI.UTF-8
LC_MONETARY=fi_FI.UTF-8
LC_NAME=fi_FI.UTF-8
LC_NUMERIC=fi_FI.UTF-8
LC_PAPER=fi_FI.UTF-8
LC_TELEPHONE=fi_FI.UTF-8
LC_TIME=en_US.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
MDMSESSION=cinnamon
MDM_LANG=en_US.UTF-8
MDM_XSERVER_LOCATION=local
PAPERSIZE=letter
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=<home>
QT4_IM_MODULE=xim
QT_STYLE_OVERRIDE=gtk
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1569,unix/<hostname>:/tmp/.ICE-unix/1569
SHELL=/bin/bash
SSH_AGENT_PID=1701
SSH_AUTH_SOCK=/run/user/1000/keyring-rpEEXv/ssh
TEXTDOMAIN=im-config
TEXTDOMAINDIR=/usr/share/locale/
TZ=:/etc/localtime
USER=<user>
USERNAME=<user>
WINDOWPATH=8
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_CURRENT_DESKTOP=X-Cinnamon
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=5a45fa29109f0ee2389b1b0355283726-1486912871.89276-1888404302
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_ID=c1
XDG_VTNR=8
XMODIFIERS=@im=none

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user

GAlarm-0.2.17.tar.gz (93K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: What has happened to Dialog.SaveFile ??

Benoît Minisini
Le 12/02/2017 à 21:16, Jussi Lahtinen a écrit :

> Hi!
> See the attached project. Go to menu; File --> Backup / Restore Alarms and
> select Backup alarms.
> If the file exist already I will get strange translation (not the one I
> made!). And when I try to over write the existing file I will get "too many
> arguments".
>
> This used to work, but not with some of the latest revisions. Not sure when
> it broke / changed..?
>
>
> Jussi
>

Message.Info() only takes 2 arguments. So how could you run it with 3
arguments and have no error?

--
Benoît Minisini

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

Re: What has happened to Dialog.SaveFile ??

Jussi Lahtinen
What the hell... I have changed it from Message.Question() in some
mysterious way! How did I do that..!
But apparently that part of code is now obsolete anyway, since the dialog
does the question for me.

So, problem solved. Thanks!


Jussi


On Sun, Feb 12, 2017 at 10:39 PM, Benoît Minisini <
[hidden email]> wrote:

> Le 12/02/2017 à 21:16, Jussi Lahtinen a écrit :
> > Hi!
> > See the attached project. Go to menu; File --> Backup / Restore Alarms
> and
> > select Backup alarms.
> > If the file exist already I will get strange translation (not the one I
> > made!). And when I try to over write the existing file I will get "too
> many
> > arguments".
> >
> > This used to work, but not with some of the latest revisions. Not sure
> when
> > it broke / changed..?
> >
> >
> > Jussi
> >
>
> Message.Info() only takes 2 arguments. So how could you run it with 3
> arguments and have no error?
>
> --
> Benoît Minisini
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user