Commit graph

59 commits

Author SHA1 Message Date
bilaliscarioth
b5dfbd485f FreeBSD / NetBSD / OpenBSD build fixes, contributed by bilaliscarioth <bilal@iscarioth.org>
see https://github.com/TTimo/GtkRadiant/pull/686 for details
2024-01-14 17:09:00 -07:00
Thomas Debesse
a3773852a4 preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
Christophe Mateos
45dd743f81 Move "All supported types" to top
Like usual browse menu. Migrated "as-is" (just for the model browser for
now)
2017-05-24 21:23:47 +02:00
Pan7
d1ace58ceb Image loading fallback 2017-05-02 22:18:43 +02:00
Pan7
38dab47117 Replace deprecated gtk_image_new_from_stock 2017-04-28 21:22:44 +02:00
Pan7
66a2b5f03c Fix more missing sentinel warnings 2017-04-27 23:35:50 +02:00
Timothee Besset
12b5a1c766 Merge branch 'openurl' of https://github.com/Pan7/GtkRadiant into Pan7-openurl 2017-04-22 13:05:52 -05:00
Timothee Besset
0a03a455c3 fix win32 msvc build - this should be tested more often, really 2017-04-16 21:28:07 -05:00
Timothee Besset
7cd6a22c52 Merge branch 'deprchild' of git://github.com/Pan7/GtkRadiant into Pan7-deprchild 2017-04-16 21:11:31 -05:00
Pan7
c29e8da324 Use GTK to open URLs 2017-04-14 19:52:25 +02:00
Pan7
ddbf0ec597 Replace deprecated GtkSignalFunc, gtk_container_children 2017-04-03 19:26:13 +02:00
Pan7
aeaa370f09 Left align for the text of Labels 2017-03-28 09:29:11 +02:00
Pan7
c2e44c532a Dialog improvements 2017-03-23 09:37:50 +01:00
Timothee "TTimo" Besset
41f6c7d2c5 Merge pull request #438 from Pan7/gtkrealize
Remove gtk_widget_realize calls
2017-03-19 09:27:39 -05:00
Timothee "TTimo" Besset
81256e7f8a Merge pull request #440 from Pan7/gtkref
Replacing deprecated gtk_widget_ref/unref
2017-03-19 09:25:58 -05:00
Pan7
dc6faca5b0 Replacing deprecated gtk_widget_ref/unref 2017-03-19 11:30:01 +01:00
Pan7
82398621e1 Remove gtk_widget_realize calls 2017-03-17 17:09:26 +01:00
Pan7
626c2ef7cd More gtk i81n 2017-03-16 12:40:56 +01:00
Pan7
bdb1c3abaa Replacing deprecated GTK functions 2017-03-15 11:58:36 +01:00
Timothee "TTimo" Besset
55f4a45c6a Merge pull request #433 from Pan7/gtkimage
Update for the gtk image loading
2017-03-13 10:37:21 -05:00
Pan7
9a010854de Updating gtk image loading 2017-03-13 11:25:45 +01:00
Timothee "TTimo" Besset
cb1e21565b Merge pull request #429 from Pan7/gtkimpro
gtk improvements
2017-03-12 12:41:24 -05:00
Pan7
9f22a81a64 gtk improvements 2017-03-10 22:44:05 +01:00
Pan7
afca61523a Use GTK2 events 2017-03-04 18:36:21 +01:00
Jay Dolan
636b1010b3 Suppress a warning. 2015-02-10 10:08:05 -05:00
Timothee "TTimo" Besset
61aa13c1f9 fix another edge case in the floating texture window management 2013-08-24 08:17:05 -05:00
jdolan
576823a4e3 Fix another char cast in gtkmisc.cpp. 2013-07-07 09:16:00 -04:00
jdolan
2bd349d6c6 Fix char cast compiler warning and print more descriptive error message when loading of pixmap fails. 2013-07-07 09:11:42 -04:00
Timothee "TTimo" Besset
6b62952832 control 32/64 bit version of q3map2 for the Windows build. requires a restart of the editor (and regen of the project file) 2013-06-15 21:03:14 -05:00
jdolan
a269593afe Low hanging fruit: bring the number of compiler warnings down from 264 to 33. 2013-05-03 02:57:29 -04:00
Radegast
d00a881b24 Fixed url opening on linux and Mac. 2013-03-25 17:23:08 +01:00
freemancw
1b1a7ed108 changed bmps to pngs 2012-12-19 01:37:36 -05:00
freemancw
7b38b02742 changed splash screen, swapped from bmp toolbar icons to png 2012-12-18 21:42:33 -05:00
Ondřej Hošek
0cea177ead port directory choosing to GtkFileChooserDialog 2012-07-17 00:45:49 +02:00
Clinton Freeman
7b95e1bd6f minor changes 2012-05-10 07:46:20 -04:00
Clinton Freeman
9a8d530b09 Added convenience fcn to cut down on repeated code 2012-05-10 03:50:05 -04:00
Clinton Freeman
a590514178 Added saving to quit dialog prompt 2012-05-09 21:36:03 -04:00
Clinton Freeman
24b3efb6ec Reworked gtk_MessageDialog to have icons, center
the window, etc.
2012-05-09 20:51:27 -04:00
Clinton Freeman
e99c0e5370 added a "all types" file filter when loading
misc_models... works for win32 native dialog
but i need to make sure it works for the gtk
file chooser
2012-04-02 00:08:43 -04:00
Timothee TTimo Besset
830125fad0 uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
rambetter
36a1c4bbad Cleaning up some file dialog tidbits in Rambetter-temp-fixes branch.
Just some code maintenence.  Like removing unused local vars.

PLS MERGE TO TRUNK.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/Rambetter-temp-fixes@356 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-19 04:12:29 +00:00
rambetter
b292b8db59 This is a big big GTK file dialog change in Rambetter-temp-fixes branch.
Thank you to Markus Fischer who	provided some example code on how to
use the	"new" method of	GTK file dialogs.  I then did a	lot of research	into
how to shape his code into exactly what	I wanted.

This is	an incomplete change in	that I have not	cleaned	up the code such
as removing unused local variables and unused functions	yet.  However, I
wanted to commit this now because it really works beautifully (the GTK file
dialog that is).

- In CFileType,	m_pstrGTKMasks now contains string like
"quake3 maps (*.map)" instead of like "quake3 maps <*.map>".  Nobody else
is using this code except in gtkmisc.cpp so it's a safe	change.

- Removing all FILEDLG_DBG blocks in gtkmisc.cpp.  It really clutters up the
code and since it's completely overhauled, it's	OK to remove.

- Instead of the "old" way of gtk_file_selection_new(),	now using
gtk_file_chooser_dialog_new() instead. 	Thx to Markus Fischer for examples.

- Actually adding GTK file dialog filters.  It works really nice!  :-)

- Now using the	same file extension logic on Windows file dialogs and GTK
file dialogs.

- Improved file	extension logic.  "No file extension specified in file to       
be saved.  Attempt to save anyways?"

Tested on Win7 and Linux.
More related changes on the way.

THIS SHOULD BE MERGED INTO TRUNK.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/Rambetter-temp-fixes@355 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-19 03:44:26 +00:00
rambetter
2c799718d7 Slight fix to r353 in Rambetter-fixes temp: the file suffix in
save operation is case sensitive now w.r.t. to checking a registered
suffix.  The problem was that saving a file foo.MAP does not work.

PLEASE MERGE THIS TO TRUNK.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/Rambetter-temp-fixes@354 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-19 01:31:52 +00:00
rambetter
6412c5ca77 Another Windows file dialog change in Rambetter-temp-fixes branch.
Handling file extensions better	during save operations.	 This is more
Windows-compliant.  For	example, when saving map:
- If ".xmap" filter is selected	and user types "foo.map", map will be
saved as "foo.map" (previous behavior was "foo.xmap").
- If an	unrecognized file extension is typed, GtkRadiant will now honor	that
but issue a warning popup window: "Unknown file extension for this save         
operation.  Attempt to save anyways?". 	All known extensions for the type
are checked.  Previous behavior	was that the extension is always changed
based on selected filter.

I will continue	making lots of incremental fixes to Rambetter-temp-fixes.

THIS PATCH SHOULD BE MERGED INTO TRUNK.


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/Rambetter-temp-fixes@353 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-19 01:08:29 +00:00
rambetter
b1b208f12e Improving native Windows file dialog in Rambetter-temp-fixes branch some
more.  This adds new code and improves code committed in revision 351.

- Calling GetOpenFileName() and GetSaveFileName() from a new thread, thus
allowing the main thread to continue refreshing GtkRadiant while the native
Windows file dialog is open.  Prevents the ugly "hall of mirrors" effect.
A similar approach is used in the open source Inkscape, so I'm not doing
anything too dangerous here.  However, this _is_ hacky in my opinion.

- Using memset() to zero out the memory of the OPENFILENAME structure.
This is safer than selectively setting fields on this structure.  We no
longer need to explicity set certain field to NULL now.

- "all files" filter now lowercase to be consistent with other code.

These changes have been tested on Windows XP and Windows 7.

THIS COMMIT SHOULD BE MERGED INTO TRUNK AT SOME POINT!!!


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/Rambetter-temp-fixes@352 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-18 03:03:55 +00:00
rambetter
f482df40a1 Fixing the native Windows file dialog in Rametter-temp-fixes branch
of GtkRadiant. 	The previous code was Plain Old	Wrong (TM) in the way that
it handled determining which "Save as type" was	selected in the	file save
dialog.  This change affects the function file_dialog() in gtkmisc.cpp.
Fix has	been tested on Windows 7 when the pattern input	parameter is something
such as	"map" and when it's null.  Will	test Windows XP	shortly	and follow
up with	another	commit if it's not working correctly there.

THIS COMMIT SHOULD BE MERGED INTO TRUNK	AT SOME	POINT!!!


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/Rambetter-temp-fixes@351 8a3a26a2-13c4-0310-b231-cf6edde360e5
2010-12-16 07:08:00 +00:00
TTimo
cc4e44e31a merge branch work back into trunk
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@319 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-09-01 17:34:10 +00:00
Forest Hale
88cea027e6 ported over the 1.5 branch version of q3map2 which is newer
made Visual Studio files work in VS2005 Express
fixed a ton of warnings in VS2005 Express
fixed some compile problems on OpenSUSE 11.0


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@302 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-07-25 07:31:37 +00:00
mattn
c974ae628c * more translateable strings
* fixed warning about unused variable


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@292 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-07-04 22:11:30 +00:00
mattn
04c7eb042d * reactivated WXY_Print function to generate screenshots from the xy window
* removed all the references to the old bugzilla links (deadlinks - no longer useful)

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@289 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-06-27 15:09:36 +00:00