gegl r2154 - in trunk: . bin



Author: neo
Date: Wed Apr  9 11:59:23 2008
New Revision: 2154
URL: http://svn.gnome.org/viewvc/gegl?rev=2154&view=rev

Log:
2008-04-09  Sven Neumann  <sven gimp org>

	* bin/gegl-tree-editor.c: made internal functions static.

	* bin/gegl-tree-editor-action.c: include its own header file.

	* bin/gegl-view.[ch]: added missing prototype.


Modified:
   trunk/ChangeLog
   trunk/bin/gegl-tree-editor-action.c
   trunk/bin/gegl-tree-editor.c
   trunk/bin/gegl-view.c
   trunk/bin/gegl-view.h

Modified: trunk/bin/gegl-tree-editor-action.c
==============================================================================
--- trunk/bin/gegl-tree-editor-action.c	(original)
+++ trunk/bin/gegl-tree-editor-action.c	Wed Apr  9 11:59:23 2008
@@ -28,6 +28,7 @@
 #include "editor.h"
 #include "gegl-store.h"
 #include "gegl-tree-editor.h"
+#include "gegl-tree-editor-action.h"
 #include "gegl-view.h"
 
 

Modified: trunk/bin/gegl-tree-editor.c
==============================================================================
--- trunk/bin/gegl-tree-editor.c	(original)
+++ trunk/bin/gegl-tree-editor.c	Wed Apr  9 11:59:23 2008
@@ -72,11 +72,11 @@
                 gpointer   userdata);
                 */
 
-gboolean
- view_onButtonPressed (GtkWidget *treeview, GdkEventButton *event,
-                       gpointer userdata);
+static gboolean view_onButtonPressed (GtkWidget      *treeview,
+                                      GdkEventButton *event,
+                                      gpointer        userdata);
 
-void
+static void
 cell_edited_callback (GtkCellRendererText * cell,
                       gchar *path_string, gchar *new_text, gpointer user_data)
 {
@@ -246,8 +246,9 @@
     }
   }
 
-  g_signal_connect (G_OBJECT (treeview), "button-press-event",
-                    (GCallback) view_onButtonPressed, NULL);
+  g_signal_connect (treeview, "button-press-event",
+                    G_CALLBACK (view_onButtonPressed),
+                    NULL);
 
   tree_scroll = gtk_scrolled_window_new (NULL, NULL);
   gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (tree_scroll),
@@ -319,7 +320,7 @@
   "  </popup>"
   "</ui>";
 
-void
+static void
 view_popup_menu (GtkWidget *treeview, GdkEventButton *event,
                  gpointer userdata)
 {
@@ -377,9 +378,10 @@
   return;
 }
 
-gboolean
-view_onButtonPressed (GtkWidget *treeview, GdkEventButton *event,
-                      gpointer userdata)
+static gboolean
+view_onButtonPressed (GtkWidget      *treeview,
+                      GdkEventButton *event,
+                      gpointer        userdata)
 {
   /* single click with the right mouse button? */
   if (event->type == GDK_BUTTON_PRESS && event->button == 3)

Modified: trunk/bin/gegl-view.c
==============================================================================
--- trunk/bin/gegl-view.c	(original)
+++ trunk/bin/gegl-view.c	Wed Apr  9 11:59:23 2008
@@ -450,11 +450,11 @@
 void
 gegl_view_repaint (GeglView *view)
 {
-  GtkWidget     *widget = GTK_WIDGET (view);
-  GeglViewPrivate *priv = GEGL_VIEW_GET_PRIVATE (view);
-  GeglRectangle  roi    = { priv->x / priv->scale, priv->y / priv->scale,
-                            ceil(widget->allocation.width / priv->scale+1),
-                            ceil(widget->allocation.height / priv->scale+1) };
+  GtkWidget       *widget = GTK_WIDGET (view);
+  GeglViewPrivate *priv   = GEGL_VIEW_GET_PRIVATE (view);
+  GeglRectangle    roi    = { priv->x / priv->scale, priv->y / priv->scale,
+                              ceil(widget->allocation.width / priv->scale+1),
+                              ceil(widget->allocation.height / priv->scale+1) };
 
 #if 0
   /* forget all already queued repaints */
@@ -480,7 +480,8 @@
     gegl_processor_set_rectangle (priv->processor, &roi);
 }
 
-GeglProcessor *gegl_view_get_processor (GeglView *self)
+GeglProcessor *
+gegl_view_get_processor (GeglView *self)
 {
   GeglViewPrivate *priv = GEGL_VIEW_GET_PRIVATE (self);
   return priv->processor;

Modified: trunk/bin/gegl-view.h
==============================================================================
--- trunk/bin/gegl-view.h	(original)
+++ trunk/bin/gegl-view.h	Wed Apr  9 11:59:23 2008
@@ -41,8 +41,9 @@
   GtkDrawingAreaClass parent_class;
 };
 
-GType          gegl_view_get_type      (void) G_GNUC_CONST;
-void           gegl_view_repaint       (GeglView *view);
+GType           gegl_view_get_type      (void) G_GNUC_CONST;
+void            gegl_view_repaint       (GeglView *view);
+GeglProcessor * gegl_view_get_processor (GeglView *view);
 
 G_END_DECLS
 



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