29 lines
824 B
Plaintext
29 lines
824 B
Plaintext
$OpenBSD: patch-src_dialogs_dialog-preferences_c,v 1.3 2010/11/26 09:43:02 ajacoutot Exp $
|
|
|
|
gcc3 doesn't like function names that end with a numeral right after
|
|
alphabetical characters.
|
|
|
|
--- src/dialogs/dialog-preferences.c.orig Sat Nov 6 00:06:46 2010
|
|
+++ src/dialogs/dialog-preferences.c Fri Nov 26 09:35:54 2010
|
|
@@ -377,7 +377,7 @@ int_pref_create_widget (GOConfNode *node, GtkWidget *t
|
|
}
|
|
|
|
static gboolean
|
|
-powerof2 (int i)
|
|
+powerof_2 (int i)
|
|
{
|
|
return i > 0 && (i & (i - 1)) == 0;
|
|
}
|
|
@@ -387,9 +387,9 @@ cb_power_of_2 (GtkAdjustment *adj)
|
|
{
|
|
int val = (int)gtk_adjustment_get_value (adj);
|
|
|
|
- if (powerof2 (val - 1))
|
|
+ if (powerof_2 (val - 1))
|
|
gtk_adjustment_set_value (adj, (val - 1) * 2);
|
|
- else if (powerof2 (val + 1))
|
|
+ else if (powerof_2 (val + 1))
|
|
gtk_adjustment_set_value (adj, (val + 1) / 2);
|
|
}
|
|
|