summaryrefslogtreecommitdiff
path: root/mate-panel/panel-test-applets.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-test-applets.c')
-rw-r--r--mate-panel/panel-test-applets.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mate-panel/panel-test-applets.c b/mate-panel/panel-test-applets.c
index 79b48d36..f14c3888 100644
--- a/mate-panel/panel-test-applets.c
+++ b/mate-panel/panel-test-applets.c
@@ -178,12 +178,13 @@ static void
load_applet_from_command_line (void)
{
guint size = 24, orient = PANEL_ORIENTATION_TOP;
+ gsize i;
g_assert (cli_iid != NULL);
if (cli_size || cli_orient) {
if (cli_size) {
- for (gsize i = 0; i < G_N_ELEMENTS (size_items); i++) {
+ for (i = 0; i < G_N_ELEMENTS (size_items); i++) {
if (strcmp (g_dpgettext2 (NULL, "Size", size_items[i].name), cli_size) == 0) {
size = size_items[i].value;
break;
@@ -192,7 +193,7 @@ load_applet_from_command_line (void)
}
if (cli_orient) {
- for (gsize i = 0; i < G_N_ELEMENTS (orient_items); i++) {
+ for (i = 0; i < G_N_ELEMENTS (orient_items); i++) {
if (strcmp (g_dpgettext2 (NULL, "Orientation", orient_items[i].name), cli_orient) == 0) {
orient = orient_items[i].value;
break;