[gnome-builder] cleanup: fix various declarations



commit ed59a000fdf528d0ad9cdfe5dbc41403ada64790
Author: Christian Hergert <chergert redhat com>
Date:   Sun Dec 17 01:08:22 2017 -0800

    cleanup: fix various declarations
    
    This just cleans up some warnings found when tweaking our GCC
    warning levels. It includes some missing declarations.

 src/gstyle/gstyle-color-component.h            |    2 ++
 src/gstyle/gstyle-eyedropper.c                 |    2 +-
 src/gstyle/gstyle-slidein.c                    |    1 -
 src/gstyle/gstyle-slidein.h                    |   10 ++++++++++
 src/gstyle/tests/test-gstyle-color.c           |    6 +++---
 src/libide/application/ide-application-tests.c |    2 +-
 src/libide/buildui/ide-build-panel.h           |    3 +++
 src/libide/buildui/ide-build-perspective.h     |    1 +
 src/plugins/beautifier/gb-beautifier-config.c  |    2 +-
 src/plugins/xml-pack/ide-xml-tree-builder.h    |    8 ++++----
 10 files changed, 26 insertions(+), 11 deletions(-)
---
diff --git a/src/gstyle/gstyle-color-component.h b/src/gstyle/gstyle-color-component.h
index 7d1083f..80a746f 100644
--- a/src/gstyle/gstyle-color-component.h
+++ b/src/gstyle/gstyle-color-component.h
@@ -38,4 +38,6 @@ typedef enum {
   GSTYLE_COLOR_COMPONENT_NONE
 } GstyleColorComponent;
 
+GType gstyle_color_component_get_type (void);
+
 G_END_DECLS
diff --git a/src/gstyle/gstyle-eyedropper.c b/src/gstyle/gstyle-eyedropper.c
index 53162eb..7c44d66 100644
--- a/src/gstyle/gstyle-eyedropper.c
+++ b/src/gstyle/gstyle-eyedropper.c
@@ -611,7 +611,7 @@ gstyle_eyedropper_zoom_area_draw_cb (GstyleEyedropper *self,
   return TRUE;
 }
 
-void
+static void
 gstyle_eyedropper_set_source_event (GstyleEyedropper *self,
                                     GdkEvent         *event)
 {
diff --git a/src/gstyle/gstyle-slidein.c b/src/gstyle/gstyle-slidein.c
index 4e0f728..015c99c 100644
--- a/src/gstyle/gstyle-slidein.c
+++ b/src/gstyle/gstyle-slidein.c
@@ -220,7 +220,6 @@ gstyle_slidein_get_slide_fraction (GstyleSlidein *self)
  * @slide_margin: margin.
  *
  * Set the margin left when the slide is opened, in pixels.
- *
  */
 void
 gstyle_slidein_set_slide_margin (GstyleSlidein *self,
diff --git a/src/gstyle/gstyle-slidein.h b/src/gstyle/gstyle-slidein.h
index 00194cd..4e3dc2b 100644
--- a/src/gstyle/gstyle-slidein.h
+++ b/src/gstyle/gstyle-slidein.h
@@ -41,6 +41,15 @@ G_DECLARE_FINAL_TYPE (GstyleSlidein, gstyle_slidein, GSTYLE, SLIDEIN, GtkEventBo
 GType                        gstyle_slidein_type_get_type                    (void);
 
 GtkWidget                   *gstyle_slidein_new                              (void);
+void                         gstyle_slidein_set_slide_margin                 (GstyleSlidein               
*self,
+                                                                              guint                        
slide_margin);
+guint                        gstyle_slidein_get_slide_margin                 (GstyleSlidein               
*self);
+void                         gstyle_slidein_set_duration                     (GstyleSlidein               
*self,
+                                                                              gdouble                      
duration);
+gdouble                      gstyle_slidein_get_duration                     (GstyleSlidein               
*self);
+void                         gstyle_slidein_reset_duration                   (GstyleSlidein               
*self);
+gboolean                     gstyle_slidein_get_animation_state              (GstyleSlidein               
*self,
+                                                                              gboolean                    
*direction);
 void                         gstyle_slidein_add_slide                        (GstyleSlidein               
*self,
                                                                               GtkWidget                   
*slide);
 void                         gstyle_slidein_remove_slide                     (GstyleSlidein               
*self);
@@ -58,4 +67,5 @@ void                         gstyle_slidein_set_interpolate_size             (Gs
                                                                               gboolean                     
interpolate_size);
 void                         gstyle_slidein_set_slide_fraction               (GstyleSlidein               
*self,
                                                                               gdouble                      
slide_fraction);
+
 G_END_DECLS
diff --git a/src/gstyle/tests/test-gstyle-color.c b/src/gstyle/tests/test-gstyle-color.c
index 18a294a..6542fe2 100644
--- a/src/gstyle/tests/test-gstyle-color.c
+++ b/src/gstyle/tests/test-gstyle-color.c
@@ -98,7 +98,7 @@ test_deltae (void)
 #define LAB_SAMPLES (100.0 * 256.0 * 256.0)
 
 static void
-delta_rgb ()
+delta_rgb (void)
 {
   GdkRGBA src_rgba = {0.0, 0.0, 0.0, 0.0};
   GdkRGBA dst_rgba = {0.0, 0.0, 0.0, 0.0};
@@ -208,7 +208,7 @@ delta_rgb ()
 }
 
 static void
-delta_hsv ()
+delta_hsv (void)
 {
   gdouble src_h, src_s, src_v;
   gdouble dst_h, dst_s, dst_v;
@@ -314,7 +314,7 @@ delta_hsv ()
 }
 
 static void
-delta_lab ()
+delta_lab (void)
 {
   GstyleXYZ xyz;
   GstyleCielab src_lab;
diff --git a/src/libide/application/ide-application-tests.c b/src/libide/application/ide-application-tests.c
index 7748562..150735e 100644
--- a/src/libide/application/ide-application-tests.c
+++ b/src/libide/application/ide-application-tests.c
@@ -37,7 +37,7 @@ typedef struct
 
 static void ide_application_run_next_test (IdeApplication *self);
 
-gboolean
+static gboolean
 fatal_log_handler (const gchar    *log_domain,
                    GLogLevelFlags  log_level,
                    const gchar    *message,
diff --git a/src/libide/buildui/ide-build-panel.h b/src/libide/buildui/ide-build-panel.h
index b990a10..e933fb9 100644
--- a/src/libide/buildui/ide-build-panel.h
+++ b/src/libide/buildui/ide-build-panel.h
@@ -27,4 +27,7 @@ G_BEGIN_DECLS
 
 G_DECLARE_FINAL_TYPE (IdeBuildPanel, ide_build_panel, IDE, BUILD_PANEL, DzlDockWidget)
 
+void ide_build_panel_set_pipeline (IdeBuildPanel    *self,
+                                   IdeBuildPipeline *pipeline);
+
 G_END_DECLS
diff --git a/src/libide/buildui/ide-build-perspective.h b/src/libide/buildui/ide-build-perspective.h
index c0600d5..a7ed22d 100644
--- a/src/libide/buildui/ide-build-perspective.h
+++ b/src/libide/buildui/ide-build-perspective.h
@@ -26,6 +26,7 @@ G_BEGIN_DECLS
 
 G_DECLARE_FINAL_TYPE (IdeBuildPerspective, ide_build_perspective, IDE, BUILD_PERSPECTIVE, GtkBin)
 
+GtkWidget        *ide_build_perspective_new               (void);
 IdeConfiguration *ide_build_perspective_get_configuration (IdeBuildPerspective *self);
 void              ide_build_perspective_set_configuration (IdeBuildPerspective *self,
                                                            IdeConfiguration    *configuration);
diff --git a/src/plugins/beautifier/gb-beautifier-config.c b/src/plugins/beautifier/gb-beautifier-config.c
index 8cdb382..4db490d 100644
--- a/src/plugins/beautifier/gb-beautifier-config.c
+++ b/src/plugins/beautifier/gb-beautifier-config.c
@@ -26,7 +26,7 @@
 #include "gb-beautifier-config.h"
 
 static const gchar *
-get_datadir ()
+get_datadir (void)
 {
   PeasEngine *engine;
   PeasPluginInfo *info;
diff --git a/src/plugins/xml-pack/ide-xml-tree-builder.h b/src/plugins/xml-pack/ide-xml-tree-builder.h
index 6d7da3a..812650e 100644
--- a/src/plugins/xml-pack/ide-xml-tree-builder.h
+++ b/src/plugins/xml-pack/ide-xml-tree-builder.h
@@ -18,19 +18,19 @@
 
 #pragma once
 
-#include "ide-xml-analysis.h"
-#include "ide-xml-symbol-node.h"
-
 #include <glib-object.h>
 #include <ide.h>
 
+#include "ide-xml-analysis.h"
+#include "ide-xml-symbol-node.h"
+
 G_BEGIN_DECLS
 
 #define IDE_TYPE_XML_TREE_BUILDER (ide_xml_tree_builder_get_type())
 
 G_DECLARE_FINAL_TYPE (IdeXmlTreeBuilder, ide_xml_tree_builder, IDE, XML_TREE_BUILDER, IdeObject)
 
-IdeXmlTreeBuilder   *ide_xml_tree_builder_new                    ();
+IdeXmlTreeBuilder   *ide_xml_tree_builder_new                    (DzlTaskCache          *schemas);
 void                 ide_xml_tree_builder_build_tree_async       (IdeXmlTreeBuilder     *self,
                                                                   GFile                 *file,
                                                                   GCancellable          *cancellable,


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