[glade--]Bug fix for file selection



Here is a bug fix for whether to show file ops or not.

Mark

? 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()");
+    }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]