[dia] Make internal LayerDialog functions static
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dia] Make internal LayerDialog functions static
- Date: Sat, 19 Sep 2009 16:47:52 +0000 (UTC)
commit 5cc8701bb95efb95d0bcad28803a0db96b7ad1d4
Author: Hans Breuer <hans breuer org>
Date: Sat Sep 19 18:38:28 2009 +0200
Make internal LayerDialog functions static
app/layer_dialog.c | 10 +++++++---
app/layer_dialog.h | 4 ----
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/app/layer_dialog.c b/app/layer_dialog.c
index 5af4cbe..ca90e29 100644
--- a/app/layer_dialog.c
+++ b/app/layer_dialog.c
@@ -149,6 +149,10 @@ static void
layer_visibility_change_apply(struct LayerVisibilityChange *change,
Diagram *dia);
+static GtkWidget* dia_layer_widget_new(Diagram *dia, Layer *layer);
+static void dia_layer_set_layer(DiaLayerWidget *widget, Diagram *dia, Layer *layer);
+static void dia_layer_update_from_layer(DiaLayerWidget *widget);
+
static void layer_dialog_new_callback(GtkWidget *widget, gpointer gdata);
static void layer_dialog_raise_callback(GtkWidget *widget, gpointer gdata);
static void layer_dialog_lower_callback(GtkWidget *widget, gpointer gdata);
@@ -1043,7 +1047,7 @@ dia_layer_widget_get_type(void)
return dlw_type;
}
-GtkWidget *
+static GtkWidget *
dia_layer_widget_new(Diagram *dia, Layer *layer)
{
GtkWidget *widget;
@@ -1060,7 +1064,7 @@ dia_layer_widget_new(Diagram *dia, Layer *layer)
}
/** Layer has either been selected or created */
-void
+static void
dia_layer_set_layer(DiaLayerWidget *widget, Diagram *dia, Layer *layer)
{
widget->dia = dia;
@@ -1069,7 +1073,7 @@ dia_layer_set_layer(DiaLayerWidget *widget, Diagram *dia, Layer *layer)
dia_layer_update_from_layer(widget);
}
-void
+static void
dia_layer_update_from_layer (DiaLayerWidget *widget)
{
internal_call = TRUE;
diff --git a/app/layer_dialog.h b/app/layer_dialog.h
index 3dd18ff..c9769b2 100644
--- a/app/layer_dialog.h
+++ b/app/layer_dialog.h
@@ -32,10 +32,6 @@ GtkWidget * create_layer_view_widget (void);
typedef struct _DiaLayerWidget DiaLayerWidget;
-GtkWidget* dia_layer_widget_new(Diagram *dia, Layer *layer);
-void dia_layer_set_layer(DiaLayerWidget *widget, Diagram *dia, Layer *layer);
-void dia_layer_update_from_layer(DiaLayerWidget *widget);
-
void diagram_edit_layer(Diagram *dia, Layer *layer);
#endif /* LAYER_DIALOG_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]