gimp r27991 - in trunk: . app/actions
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27991 - in trunk: . app/actions
- Date: Fri, 6 Feb 2009 10:09:33 +0000 (UTC)
Author: neo
Date: Fri Feb 6 10:09:33 2009
New Revision: 27991
URL: http://svn.gnome.org/viewvc/gimp?rev=27991&view=rev
Log:
2009-02-06 Sven Neumann <sven gimp org>
* app/actions/actions.c: prototype action_message() with format
function attribute and move it to the bottom of the file.
Modified:
trunk/ChangeLog
trunk/app/actions/actions.c
Modified: trunk/app/actions/actions.c
==============================================================================
--- trunk/app/actions/actions.c (original)
+++ trunk/app/actions/actions.c Fri Feb 6 10:09:33 2009
@@ -93,6 +93,12 @@
#include "gimp-intl.h"
+static void action_message (GimpDisplay *display,
+ GObject *object,
+ const gchar *format,
+ ...) G_GNUC_PRINTF(3,4);
+
+
/* global variables */
GimpActionFactory *global_action_factory = NULL;
@@ -382,30 +388,6 @@
return dialogs_get_toolbox ();
}
-static void
-action_message (GimpDisplay *display,
- GObject *object,
- gchar *format,
- ...)
-{
- GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (display->shell);
- const gchar *stock_id = NULL;
- va_list args;
-
- if (GIMP_IS_TOOL_OPTIONS (object))
- {
- GimpToolInfo *tool_info = GIMP_TOOL_OPTIONS (object)->tool_info;
-
- stock_id = gimp_viewable_get_stock_id (GIMP_VIEWABLE (tool_info));
- }
-
- va_start (args, format);
- gimp_statusbar_push_temp_valist (GIMP_STATUSBAR (shell->statusbar),
- GIMP_MESSAGE_INFO, stock_id,
- format, args);
- va_end (args);
-}
-
gdouble
action_select_value (GimpActionSelectType select_type,
gdouble value,
@@ -618,3 +600,30 @@
return gimp_container_get_child_by_index (container, select_index);
}
+
+
+/* private functions */
+
+static void
+action_message (GimpDisplay *display,
+ GObject *object,
+ const gchar *format,
+ ...)
+{
+ GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (display->shell);
+ const gchar *stock_id = NULL;
+ va_list args;
+
+ if (GIMP_IS_TOOL_OPTIONS (object))
+ {
+ GimpToolInfo *tool_info = GIMP_TOOL_OPTIONS (object)->tool_info;
+
+ stock_id = gimp_viewable_get_stock_id (GIMP_VIEWABLE (tool_info));
+ }
+
+ va_start (args, format);
+ gimp_statusbar_push_temp_valist (GIMP_STATUSBAR (shell->statusbar),
+ GIMP_MESSAGE_INFO, stock_id,
+ format, args);
+ va_end (args);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]