* bug#3043: 23.0.92; GtkFileSelection is deprecated
@ 2009-04-18 6:48 Sven Joachim
2009-04-18 16:30 ` Jan Djärv
2009-04-19 10:57 ` Jan Djärv
0 siblings, 2 replies; 5+ messages in thread
From: Sven Joachim @ 2009-04-18 6:48 UTC (permalink / raw)
To: emacs-pretest-bug
Emacs uses GtkFileSelection in gtkutil.c which has been deprecated in
GTK+ 2.12. That means that it will not build with a future GTK+ 3.0,
or with -DGTK_DISABLE_DEPRECATED in a current GTK+ 2.x.
This problem is not urgent, but it would be good if gtkutil.c could use
the GtkFileChooser interface instead.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3043: 23.0.92; GtkFileSelection is deprecated
@ 2009-04-18 13:48 Chong Yidong
2009-04-18 14:29 ` Sven Joachim
0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2009-04-18 13:48 UTC (permalink / raw)
To: Sven Joachim; +Cc: 3043
> Emacs uses GtkFileSelection in gtkutil.c which has been deprecated in
> GTK+ 2.12. That means that it will not build with a future GTK+ 3.0,
> or with -DGTK_DISABLE_DEPRECATED in a current GTK+ 2.x.
Actually, Emacs does support the new GTK file chooser. It's used if
HAVE_GTK_FILE_CHOOSER_DIALOG_NEW is defined, which is set by configure
upon checking the existence of the function gtk_file_chooser_dialog_new.
Is it not available on your system?
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3043: 23.0.92; GtkFileSelection is deprecated
2009-04-18 13:48 bug#3043: 23.0.92; GtkFileSelection is deprecated Chong Yidong
@ 2009-04-18 14:29 ` Sven Joachim
0 siblings, 0 replies; 5+ messages in thread
From: Sven Joachim @ 2009-04-18 14:29 UTC (permalink / raw)
To: Chong Yidong; +Cc: 3043
On 2009-04-18 15:48 +0200, Chong Yidong wrote:
>> Emacs uses GtkFileSelection in gtkutil.c which has been deprecated in
>> GTK+ 2.12. That means that it will not build with a future GTK+ 3.0,
>> or with -DGTK_DISABLE_DEPRECATED in a current GTK+ 2.x.
>
> Actually, Emacs does support the new GTK file chooser. It's used if
> HAVE_GTK_FILE_CHOOSER_DIALOG_NEW is defined, which is set by configure
> upon checking the existence of the function gtk_file_chooser_dialog_new.
> Is it not available on your system?
It is, and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW is defined. However,
HAVE_GTK_FILE_BOTH and HAVE_GTK_FILE_SELECTION_NEW are also defined
which might explain the problem.
I built with
,----
| make distclean
| CFLAGS=-DGTK_DISABLE_DEPRECATED -g -O2 ./configure
| make -k
`----
and ran into
,----
| gtkutil.c: In function 'xg_get_file_name_from_selector':
| gtkutil.c:1479: error: 'GtkFileSelection' undeclared (first use in this function)
| gtkutil.c:1479: error: (Each undeclared identifier is reported only once
| gtkutil.c:1479: error: for each function it appears in.)
| gtkutil.c:1479: error: 'filesel' undeclared (first use in this function)
| gtkutil.c: In function 'xg_get_file_with_selection':
| gtkutil.c:1503: error: 'GtkFileSelection' undeclared (first use in this function)
| gtkutil.c:1503: error: 'filesel' undeclared (first use in this function)
`----
Sven
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3043: 23.0.92; GtkFileSelection is deprecated
2009-04-18 6:48 Sven Joachim
@ 2009-04-18 16:30 ` Jan Djärv
2009-04-19 10:57 ` Jan Djärv
1 sibling, 0 replies; 5+ messages in thread
From: Jan Djärv @ 2009-04-18 16:30 UTC (permalink / raw)
To: Sven Joachim, 3043; +Cc: emacs-pretest-bug
Sven Joachim skrev:
> Emacs uses GtkFileSelection in gtkutil.c which has been deprecated in
> GTK+ 2.12. That means that it will not build with a future GTK+ 3.0,
> or with -DGTK_DISABLE_DEPRECATED in a current GTK+ 2.x.
>
> This problem is not urgent, but it would be good if gtkutil.c could use
> the GtkFileChooser interface instead.
>
Actually Emacs has used GtkFileChooser by default for a long time now, more or
less since it became available in a stable Gtk+ release. But if both are
available, GtkFileSelection can be used (I don't remember the customize
variable for it right now). There is a configure test for both file dialogs,
so if one is removed in 3.0, Emacs will compile just fine. However, as
configure just looks at link time symbols, we might not do the right thing
when compiled with -DGTK_DISABLE_DEPRECATED. I'll check this.
Jan D.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#3043: 23.0.92; GtkFileSelection is deprecated
2009-04-18 6:48 Sven Joachim
2009-04-18 16:30 ` Jan Djärv
@ 2009-04-19 10:57 ` Jan Djärv
1 sibling, 0 replies; 5+ messages in thread
From: Jan Djärv @ 2009-04-19 10:57 UTC (permalink / raw)
To: Sven Joachim, 3043_done; +Cc: emacs-pretest-bug
Sven Joachim skrev:
> Emacs uses GtkFileSelection in gtkutil.c which has been deprecated in
> GTK+ 2.12. That means that it will not build with a future GTK+ 3.0,
> or with -DGTK_DISABLE_DEPRECATED in a current GTK+ 2.x.
>
> This problem is not urgent, but it would be good if gtkutil.c could use
> the GtkFileChooser interface instead.
>
I have checked in a better configure test and some other minor changes so
Emacs compiles with -DGTK_DISABLE_DEPRECATED.
Jan D.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-04-19 10:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-18 13:48 bug#3043: 23.0.92; GtkFileSelection is deprecated Chong Yidong
2009-04-18 14:29 ` Sven Joachim
-- strict thread matches above, loose matches on Subject: below --
2009-04-18 6:48 Sven Joachim
2009-04-18 16:30 ` Jan Djärv
2009-04-19 10:57 ` Jan Djärv
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).