summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2008-03-10 02:12:11 -0400
committerSøren Sandmann <sandmann@redhat.com>2008-03-10 02:12:11 -0400
commit354691051aeb569618f7a86afc5a3af204185bee (patch)
treed6f2212adb0d8ea064000a6e4cb73b394c146a3a
parentcaefd787d002a16a9041de26286df7c245dce3f0 (diff)
small fixes
-rw-r--r--TODO4
-rw-r--r--siv.c4
-rw-r--r--window.c4
3 files changed, 7 insertions, 5 deletions
diff --git a/TODO b/TODO
index 86e65bc..8b52637 100644
--- a/TODO
+++ b/TODO
@@ -1,5 +1,4 @@
- - Make sure filenames are escaped if they contains [ or ]
- - Save adjustment positions
+- Make sure filenames are escaped if they contains [ or ]
- Open
@@ -14,3 +13,4 @@ Done:
- Meta data
+- Save adjustment positions
diff --git a/siv.c b/siv.c
index 1efade4..ac60ff0 100644
--- a/siv.c
+++ b/siv.c
@@ -275,7 +275,7 @@ app_new (int argc, char **argv)
i = 0;
for (list = filenames; list != NULL; list = list->next)
{
- Window *window = window_new (app);
+ Window *window;
GError *err = NULL;
char *filename = list->data;
@@ -283,6 +283,8 @@ app_new (int argc, char **argv)
if (++i > 32)
break;
+ window = window_new (app);
+
if (!window_load_file (window, list->data, &err))
{
g_print ("Could not open %s: %s\n", filename, err->message);
diff --git a/window.c b/window.c
index fe36e53..31f6daf 100644
--- a/window.c
+++ b/window.c
@@ -104,8 +104,8 @@ on_expose (GtkWidget *drawing_area, GdkEventExpose *expose, Window *window)
}
else /* Checkerboard */
{
- color1 = 0x008080aa;
- color2 = 0x00ccccaa;
+ color1 = 0x00808080;
+ color2 = 0x00cccccc;
}
if (gtk_check_menu_item_get_active (get_widget (window, "menu_smooth_image")))