gimp r26379 - in trunk: . app/display
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26379 - in trunk: . app/display
- Date: Tue, 5 Aug 2008 11:05:56 +0000 (UTC)
Author: mitch
Date: Tue Aug 5 11:05:56 2008
New Revision: 26379
URL: http://svn.gnome.org/viewvc/gimp?rev=26379&view=rev
Log:
2008-08-05 Michael Natterer <mitch gimp org>
* app/display/gimpdisplayshell-callbacks.c: move update_range
callbacks where they belong and make them static.
Modified:
trunk/ChangeLog
trunk/app/display/gimpdisplayshell-callbacks.c
Modified: trunk/app/display/gimpdisplayshell-callbacks.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-callbacks.c (original)
+++ trunk/app/display/gimpdisplayshell-callbacks.c Tue Aug 5 11:05:56 2008
@@ -340,52 +340,6 @@
}
}
-gboolean
-gimp_display_shell_hscrollbar_update_range (GtkRange *range,
- GtkScrollType scroll,
- gdouble value,
- GimpDisplayShell *shell)
-{
- g_return_val_if_fail (GIMP_IS_DISPLAY_SHELL (shell), TRUE);
-
- if (! shell->display)
- return TRUE;
-
- if ((scroll == GTK_SCROLL_JUMP) ||
- (scroll == GTK_SCROLL_PAGE_BACKWARD) ||
- (scroll == GTK_SCROLL_PAGE_FORWARD))
- return FALSE;
-
- gimp_display_shell_setup_hscrollbar_with_value (shell, value);
-
- gtk_adjustment_changed (shell->hsbdata);
-
- return FALSE;
-}
-
-gboolean
-gimp_display_shell_vscrollbar_update_range (GtkRange *range,
- GtkScrollType scroll,
- gdouble value,
- GimpDisplayShell *shell)
-{
- g_return_val_if_fail (GIMP_IS_DISPLAY_SHELL (shell), TRUE);
-
- if (! shell->display)
- return TRUE;
-
- if ((scroll == GTK_SCROLL_JUMP) ||
- (scroll == GTK_SCROLL_PAGE_BACKWARD) ||
- (scroll == GTK_SCROLL_PAGE_FORWARD))
- return FALSE;
-
- gimp_display_shell_setup_vscrollbar_with_value (shell, value);
-
- gtk_adjustment_changed (shell->vsbdata);
-
- return FALSE;
-}
-
static void
gimp_display_shell_check_device_cursor (GimpDisplayShell *shell)
{
@@ -1727,6 +1681,48 @@
0);
}
+static gboolean
+gimp_display_shell_hscrollbar_update_range (GtkRange *range,
+ GtkScrollType scroll,
+ gdouble value,
+ GimpDisplayShell *shell)
+{
+ if (! shell->display)
+ return TRUE;
+
+ if ((scroll == GTK_SCROLL_JUMP) ||
+ (scroll == GTK_SCROLL_PAGE_BACKWARD) ||
+ (scroll == GTK_SCROLL_PAGE_FORWARD))
+ return FALSE;
+
+ gimp_display_shell_setup_hscrollbar_with_value (shell, value);
+
+ gtk_adjustment_changed (shell->hsbdata);
+
+ return FALSE;
+}
+
+static gboolean
+gimp_display_shell_vscrollbar_update_range (GtkRange *range,
+ GtkScrollType scroll,
+ gdouble value,
+ GimpDisplayShell *shell)
+{
+ if (! shell->display)
+ return TRUE;
+
+ if ((scroll == GTK_SCROLL_JUMP) ||
+ (scroll == GTK_SCROLL_PAGE_BACKWARD) ||
+ (scroll == GTK_SCROLL_PAGE_FORWARD))
+ return FALSE;
+
+ gimp_display_shell_setup_vscrollbar_with_value (shell, value);
+
+ gtk_adjustment_changed (shell->vsbdata);
+
+ return FALSE;
+}
+
static GdkModifierType
gimp_display_shell_key_to_state (gint key)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]