[nautilus] [eel] remove eel_gtk_adjustment* functions
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] [eel] remove eel_gtk_adjustment* functions
- Date: Mon, 1 Nov 2010 16:41:30 +0000 (UTC)
commit 2b99456d621c08bd097b87726704e671c76be1a1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 1 17:41:10 2010 +0100
[eel] remove eel_gtk_adjustment* functions
They should not be needed now.
eel/eel-gtk-extensions.c | 31 -------------------------------
eel/eel-gtk-extensions.h | 5 -----
2 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c
index 4cb25d6..bfe96e4 100644
--- a/eel/eel-gtk-extensions.c
+++ b/eel/eel-gtk-extensions.c
@@ -343,37 +343,6 @@ eel_gtk_menu_tool_button_get_button (GtkMenuToolButton *tool_button)
return button;
}
-/* The standard gtk_adjustment_set_value ignores page size, which
- * disagrees with the logic used by scroll bars, for example.
- */
-void
-eel_gtk_adjustment_set_value (GtkAdjustment *adjustment,
- float value)
-{
- float upper_page_start, clamped_value;
-
- g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
-
- upper_page_start = MAX (gtk_adjustment_get_upper (adjustment) -
- gtk_adjustment_get_page_size (adjustment),
- gtk_adjustment_get_lower (adjustment));
- clamped_value = CLAMP (value, gtk_adjustment_get_lower (adjustment), upper_page_start);
- if (clamped_value != gtk_adjustment_get_value (adjustment)) {
- gtk_adjustment_set_value (adjustment, clamped_value);
- gtk_adjustment_value_changed (adjustment);
- }
-}
-
-/* Clamp a value if the minimum or maximum has changed. */
-void
-eel_gtk_adjustment_clamp_value (GtkAdjustment *adjustment)
-{
- g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
-
- eel_gtk_adjustment_set_value (adjustment,
- gtk_adjustment_get_value (adjustment));
-}
-
/**
* eel_gtk_label_make_bold.
*
diff --git a/eel/eel-gtk-extensions.h b/eel/eel-gtk-extensions.h
index 1caeca3..f30d0c6 100644
--- a/eel/eel-gtk-extensions.h
+++ b/eel/eel-gtk-extensions.h
@@ -65,11 +65,6 @@ GtkWidget * eel_gtk_menu_tool_button_get_button (GtkMenuTo
/* GtkLabel */
void eel_gtk_label_make_bold (GtkLabel *label);
-/* GtkAdjustment */
-void eel_gtk_adjustment_set_value (GtkAdjustment *adjustment,
- float value);
-void eel_gtk_adjustment_clamp_value (GtkAdjustment *adjustment);
-
/* GtkTreeView */
void eel_gtk_tree_view_set_activate_on_single_click (GtkTreeView *tree_view,
gboolean should_activate);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]