projects
/
tweakr
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9136260
)
Fix strings and add Huge grid to Desktop.
author
Salvatore Iovene
<salvatore@iovene.com>
Wed, 9 Dec 2009 20:13:02 +0000
(22:13 +0200)
committer
Salvatore Iovene
<salvatore@iovene.com>
Wed, 9 Dec 2009 20:13:02 +0000
(22:13 +0200)
modules/maemo-tweaks-desktop.c
patch
|
blob
|
history
diff --git
a/modules/maemo-tweaks-desktop.c
b/modules/maemo-tweaks-desktop.c
index
12e1fc7
..
b7b124a
100644
(file)
--- a/
modules/maemo-tweaks-desktop.c
+++ b/
modules/maemo-tweaks-desktop.c
@@
-31,20
+31,23
@@
enum
{
SNAP_NONE,
SNAP_SMALL,
{
SNAP_NONE,
SNAP_SMALL,
- SNAP_LARGE
+ SNAP_LARGE,
+ SNAP_HUGE
};
enum
{
SNAP_NONE_VALUE,
SNAP_SMALL_VALUE = 8,
};
enum
{
SNAP_NONE_VALUE,
SNAP_SMALL_VALUE = 8,
- SNAP_LARGE_VALUE = 16
+ SNAP_LARGE_VALUE = 16,
+ SNAP_HUGE_VALUE = 32
};
static gint snap_values [] = {
SNAP_NONE_VALUE,
SNAP_SMALL_VALUE,
};
static gint snap_values [] = {
SNAP_NONE_VALUE,
SNAP_SMALL_VALUE,
- SNAP_LARGE_VALUE
+ SNAP_LARGE_VALUE,
+ SNAP_HUGE_VALUE
};
typedef struct _MaemoTweaksDesktopSection MaemoTweaksDesktopSection;
};
typedef struct _MaemoTweaksDesktopSection MaemoTweaksDesktopSection;
@@
-137,7
+140,7
@@
maemo_tweaks_desktop_section_class_init
GtkWidget * _build_snap_to_grid (void)
{
GtkWidget * _build_snap_to_grid (void)
{
- const gchar *options[] = {"None", "Small grid", "Large grid", NULL};
+ const gchar *options[] = {"No", "Small", "Large", "Huge", NULL};
gint i = 0;
GtkWidget *button, *selector;
gint i = 0;
GtkWidget *button, *selector;
@@
-152,7
+155,7
@@
GtkWidget * _build_snap_to_grid (void)
HILDON_BUTTON_ARRANGEMENT_VERTICAL);
hildon_button_set_title (HILDON_BUTTON (button),
HILDON_BUTTON_ARRANGEMENT_VERTICAL);
hildon_button_set_title (HILDON_BUTTON (button),
- "Snap desktop icons to grid");
+ "Snap icons to grid");
gtk_button_set_alignment (GTK_BUTTON (button), 0.0f, 0.5f);
hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (button),
HILDON_TOUCH_SELECTOR (selector));
gtk_button_set_alignment (GTK_BUTTON (button), 0.0f, 0.5f);
hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (button),
HILDON_TOUCH_SELECTOR (selector));
@@
-192,11
+195,17
@@
maemo_tweaks_desktop_section_init (MaemoTweaksDesktopSection *section)
hildon_picker_button_set_active
(HILDON_PICKER_BUTTON (section->snap_button), SNAP_SMALL);
}
hildon_picker_button_set_active
(HILDON_PICKER_BUTTON (section->snap_button), SNAP_SMALL);
}
- else
+ else if (snap_value < SNAP_HUGE_VALUE)
{
hildon_picker_button_set_active
(HILDON_PICKER_BUTTON (section->snap_button), SNAP_LARGE);
}
{
hildon_picker_button_set_active
(HILDON_PICKER_BUTTON (section->snap_button), SNAP_LARGE);
}
+ else
+ {
+ hildon_picker_button_set_active
+ (HILDON_PICKER_BUTTON (section->snap_button), SNAP_HUGE);
+ }
+
iface = MAEMO_TWEAKS_SECTION (section);
iface = MAEMO_TWEAKS_SECTION (section);