[glade--]Bug fix for file selection

Mark Jones <[email protected]>
Newsgroups gmane.comp.gnome.glademm
Message-ID <[email protected]>
Here is a bug fix for whether to show file ops or not.

Mark
patch.diff (text/x-diff, 914 B)
? patch.diff
Index: src/writers/fileselection.cc
===================================================================
RCS file: /cvs/gnome/glade--/src/writers/fileselection.cc,v
retrieving revision 1.12
diff -u -r1.12 fileselection.cc
--- src/writers/fileselection.cc	30 Oct 2002 07:22:46 -0000	1.12
+++ src/writers/fileselection.cc	23 Dec 2002 02:14:44 -0000
@@ -74,5 +74,12 @@
 
 void Gtk_FileSelection::Configure(const Widget &w, CxxFile &f,const std::string &instance) const
 {  Parent::Configure(w,f,instance);
-   WriteBoolProp_2Fun(w,f,instance, "show_file_op_buttons", "hide_fileop_buttons()", "show_fileop_buttons()");
+    if ( !GTKMM2 )
+    {
+        WriteBoolProp_2Fun(w,f,instance, "show_file_op_buttons", "hide_fileop_buttons()", "show_fileop_buttons()");
+    }
+    else
+    {
+        WriteBoolProp_2Fun(w,f,instance, "show_fileops", "hide_fileop_buttons()", "show_fileop_buttons()");
+    }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.