]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/utilsgtk.cpp
minor changes and bug corrections (interface unchanged)
[wxWidgets.git] / src / gtk / utilsgtk.cpp
index dedecb696e3b91cce1e7de0f13fd05f8495766f6..d829d20532dd501acfa09e4170e463e2015292f0 100644 (file)
@@ -51,6 +51,12 @@ int wxKill(long pid, int sig)
   return kill(pid, sig);
 };
 
+void wxDisplaySize( int *width, int *height )
+{
+  if (width) *width = gdk_screen_width();
+  if (height) *height = gdk_screen_height();
+}
+
 //------------------------------------------------------------------------
 // user and home routines
 //------------------------------------------------------------------------
@@ -343,7 +349,7 @@ typedef struct {
 } wxEndProcessData;
 
 static void GTK_EndProcessDetector(gpointer data, gint source,
-                                   GdkInputCondition condition)
+                                   GdkInputCondition WXUNUSED(condition) )
 {
   wxEndProcessData *proc_data = (wxEndProcessData *)data;
   int pid;
@@ -441,3 +447,4 @@ long wxExecute( const wxString& command, bool sync, wxProcess *process )
     return wxExecute(argv, sync, process);
 };
 
+