unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3043: 23.0.92; GtkFileSelection is deprecated
@ 2009-04-18  6:48 ` Sven Joachim
  2009-04-18 16:30   ` Jan Djärv
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ 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] 6+ 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; 6+ 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] 6+ 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; 6+ 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] 6+ messages in thread

* bug#3043: 23.0.92; GtkFileSelection is deprecated
  2009-04-18  6:48 ` bug#3043: 23.0.92; GtkFileSelection is deprecated Sven Joachim
@ 2009-04-18 16:30   ` Jan Djärv
  2009-04-19 10:57   ` Jan Djärv
  2009-04-19 13:30   ` bug#3043: marked as done (23.0.92; GtkFileSelection is deprecated) Emacs bug Tracking System
  2 siblings, 0 replies; 6+ 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] 6+ messages in thread

* bug#3043: 23.0.92; GtkFileSelection is deprecated
  2009-04-18  6:48 ` bug#3043: 23.0.92; GtkFileSelection is deprecated Sven Joachim
  2009-04-18 16:30   ` Jan Djärv
@ 2009-04-19 10:57   ` Jan Djärv
  2009-04-19 13:30   ` bug#3043: marked as done (23.0.92; GtkFileSelection is deprecated) Emacs bug Tracking System
  2 siblings, 0 replies; 6+ 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] 6+ messages in thread

* bug#3043: marked as done (23.0.92; GtkFileSelection is deprecated)
  2009-04-18  6:48 ` bug#3043: 23.0.92; GtkFileSelection is deprecated Sven Joachim
  2009-04-18 16:30   ` Jan Djärv
  2009-04-19 10:57   ` Jan Djärv
@ 2009-04-19 13:30   ` Emacs bug Tracking System
  2 siblings, 0 replies; 6+ messages in thread
From: Emacs bug Tracking System @ 2009-04-19 13:30 UTC (permalink / raw)
  To: Jan Djärv

[-- Attachment #1: Type: text/plain, Size: 826 bytes --]


Your message dated Sun, 19 Apr 2009 15:23:38 +0200
with message-id <49EB25DA.4040004@swipnet.se>
and subject line Done
has caused the Emacs bug report #3043,
regarding 23.0.92; GtkFileSelection is deprecated
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
3043: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3043
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 2541 bytes --]

From: Sven Joachim <svenjoac@gmx.de>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.92; GtkFileSelection is deprecated
Date: Sat, 18 Apr 2009 08:48:17 +0200
Message-ID: <87hc0mpidq.fsf@turtle.gmx.de>

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.



[-- Attachment #3: Type: message/rfc822, Size: 1769 bytes --]

From: "Jan Djärv" <jan.h.d@swipnet.se>
To: 3043-done@emacsbugs.donarmstrong.com
Subject: Done
Date: Sun, 19 Apr 2009 15:23:38 +0200
Message-ID: <49EB25DA.4040004@swipnet.se>

Done.

	Jan D.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-19 13:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <49EB25DA.4040004@swipnet.se>
2009-04-18  6:48 ` bug#3043: 23.0.92; GtkFileSelection is deprecated Sven Joachim
2009-04-18 16:30   ` Jan Djärv
2009-04-19 10:57   ` Jan Djärv
2009-04-19 13:30   ` bug#3043: marked as done (23.0.92; GtkFileSelection is deprecated) Emacs bug Tracking System
2009-04-18 13:48 bug#3043: 23.0.92; GtkFileSelection is deprecated Chong Yidong
2009-04-18 14:29 ` Sven Joachim

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).