[gtk+/quartz-integration] Minor cleanup of some warnings



commit dd1988ebe2054863e1ee6d6f311f32d74818c214
Author: John Ralls <jralls ceridwen us>
Date:   Sat Apr 30 21:54:05 2011 -0700

    Minor cleanup of some warnings

 gtk/gtkdnd-quartz.c       |    2 +-
 gtk/gtkselection-quartz.c |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
index 9e1cc4a..ff86692 100644
--- a/gtk/gtkdnd-quartz.c
+++ b/gtk/gtkdnd-quartz.c
@@ -355,7 +355,7 @@ gtk_drag_highlight_draw (GtkWidget *widget,
 {
   int width = gtk_widget_get_allocated_width (widget);
   int height = gtk_widget_get_allocated_height (widget);
-  GtkStyleContext *context;
+  GtkStyleContext *context = NULL;
 
   gtk_style_context_save (context);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_DND);
diff --git a/gtk/gtkselection-quartz.c b/gtk/gtkselection-quartz.c
index 6f97693..e1abf42 100644
--- a/gtk/gtkselection-quartz.c
+++ b/gtk/gtkselection-quartz.c
@@ -65,7 +65,6 @@
 #include "gtkclipboard.h"
 
 #import <Cocoa/Cocoa.h>
-#include "gtkalias.h"
 
 #undef DEBUG_SELECTION
 /*
@@ -129,7 +128,6 @@ static void gtk_selection_clear_cb          (GtkClipboard     *clipboard,
 					     gpointer 	       widget);
 static void gtk_selection_default_handler   (GtkWidget        *widget,
 					     GtkSelectionData *data);
-static int  gtk_selection_bytes_per_item    (gint              format);
 static GtkSelectionInfo *gtk_selection_info_get (GdkAtom selection);
 static void gtk_selection_info_remove		(GdkAtom selection,
 						 GtkWidget *owner);
@@ -543,7 +541,7 @@ gtk_selection_info_get (GdkAtom selection)
     }
   return NULL;
 }
-
+ 
 static void
 gtk_selection_info_remove (GdkAtom selection, GtkWidget *owner)
 {



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