[anjuta] Fix compile errors regarding undeclared functions.
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] Fix compile errors regarding undeclared functions.
- Date: Tue, 6 Nov 2012 21:11:47 +0000 (UTC)
commit e69304fed46b26a31fac614683aab79f2a8f6925
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Mon Nov 5 17:09:33 2012 +0100
Fix compile errors regarding undeclared functions.
GNOME_COMPILE_WARNINGS include a lot more warnings/errors since
http://git.gnome.org/browse/gnome-common/commit/?id=e42ca9bec9d83aa53d7f79c480daf4b7c4d95fe1
https://bugzilla.gnome.org/show_bug.cgi?id=687664
libanjuta/anjuta-token.c | 2 +-
plugins/am-project/amp-group.c | 2 +-
plugins/project-manager/dialogs.c | 60 ++++++++++++++++++------------------
3 files changed, 32 insertions(+), 32 deletions(-)
---
diff --git a/libanjuta/anjuta-token.c b/libanjuta/anjuta-token.c
index 4cca2af..8786c9d 100644
--- a/libanjuta/anjuta-token.c
+++ b/libanjuta/anjuta-token.c
@@ -1383,7 +1383,7 @@ anjuta_token_foreach_content (AnjutaToken *token, AnjutaTokenForeachFunc func, g
return;
}
-void
+static void
anjuta_token_foreach_container (AnjutaToken *token, AnjutaTokenForeachFunc func, gpointer user_data)
{
if (token != NULL)
diff --git a/plugins/am-project/amp-group.c b/plugins/am-project/amp-group.c
index 028061d..97d3363 100644
--- a/plugins/am-project/amp-group.c
+++ b/plugins/am-project/amp-group.c
@@ -346,7 +346,7 @@ on_group_monitor_changed (GFileMonitor *monitor,
}
}
-void
+static void
amp_group_node_update_preset_variable (AmpGroupNode *group)
{
gchar *path;
diff --git a/plugins/project-manager/dialogs.c b/plugins/project-manager/dialogs.c
index 0f582b4..50eafe4 100644
--- a/plugins/project-manager/dialogs.c
+++ b/plugins/project-manager/dialogs.c
@@ -539,6 +539,36 @@ add_label (const gchar *display_name, const gchar *value, GtkWidget *table, gint
}
static void
+pm_project_resize_properties_dialog (PropertiesTable *table)
+{
+ gint border_width, maximum_width, maximum_height;
+ GtkRequisition dialog, head, viewport, scrolledwindow_minimum, vscrollbar_minimum;
+ GtkWidget *vscrollbar = gtk_scrolled_window_get_vscrollbar (table->scrolledwindow);
+
+ gtk_widget_get_preferred_size (table->dialog, NULL, &dialog);
+ gtk_widget_get_preferred_size (table->head, NULL, &head);
+ gtk_widget_get_preferred_size (table->viewport, NULL, &viewport);
+ gtk_widget_get_preferred_size (table->scrolledwindow, &scrolledwindow_minimum, NULL);
+ gtk_widget_get_preferred_size (vscrollbar, &vscrollbar_minimum, NULL);
+
+ //auxiliary variables
+ border_width = dialog.width - head.width;
+ maximum_width = gdk_screen_width() * 3/4;
+ maximum_height = gdk_screen_height() * 3/4;
+
+ gint height = dialog.height - scrolledwindow_minimum.height + viewport.height;
+ gint width = (head.width > viewport.width) ? dialog.width : viewport.width + vscrollbar_minimum.width + border_width;
+
+ if (height > maximum_height)
+ height = maximum_height;
+
+ if (width > maximum_width)
+ width = maximum_width;
+
+ gtk_window_resize (GTK_WINDOW (table->dialog), width, height);
+}
+
+static void
update_properties (PropertiesTable *table)
{
GFile *file;
@@ -890,36 +920,6 @@ pm_project_create_properties_dialog (AnjutaPmProject *project, GtkWindow *parent
return table->dialog;
}
-void
-pm_project_resize_properties_dialog (PropertiesTable *table)
-{
- gint border_width, maximum_width, maximum_height;
- GtkRequisition dialog, head, viewport, scrolledwindow_minimum, vscrollbar_minimum;
- GtkWidget *vscrollbar = gtk_scrolled_window_get_vscrollbar (table->scrolledwindow);
-
- gtk_widget_get_preferred_size (table->dialog, NULL, &dialog);
- gtk_widget_get_preferred_size (table->head, NULL, &head);
- gtk_widget_get_preferred_size (table->viewport, NULL, &viewport);
- gtk_widget_get_preferred_size (table->scrolledwindow, &scrolledwindow_minimum, NULL);
- gtk_widget_get_preferred_size (vscrollbar, &vscrollbar_minimum, NULL);
-
- //auxiliary variables
- border_width = dialog.width - head.width;
- maximum_width = gdk_screen_width() * 3/4;
- maximum_height = gdk_screen_height() * 3/4;
-
- gint height = dialog.height - scrolledwindow_minimum.height + viewport.height;
- gint width = (head.width > viewport.width) ? dialog.width : viewport.width + vscrollbar_minimum.width + border_width;
-
- if (height > maximum_height)
- height = maximum_height;
-
- if (width > maximum_width)
- width = maximum_width;
-
- gtk_window_resize (GTK_WINDOW (table->dialog), width, height);
-}
-
/* Properties dialog
*---------------------------------------------------------------------------*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]