summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2008-04-27 23:04:41 -0400
committerSøren Sandmann <sandmann@redhat.com>2008-04-27 23:04:41 -0400
commitce6695cbd2620b9bfe3594ddec4d017f3399548c (patch)
treea12c1e795df24c61e4aa4e646e6a9741babfc787 /window.c
parent4e7afd8977a2fd658857fbc2efa4a252e952ec82 (diff)
About box; encode file names
Diffstat (limited to 'window.c')
-rw-r--r--window.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/window.c b/window.c
index d0764a6..7401042 100644
--- a/window.c
+++ b/window.c
@@ -543,6 +543,19 @@ retry:
}
static void
+on_about (GtkWidget *widget, gpointer data)
+{
+#define OSLASH "\303\270"
+ Window *window = data;
+
+ gtk_show_about_dialog (get_widget (window, "main_window"),
+ "program-name", APPLICATION_NAME,
+ "copyright", "Copyright 2008, S"OSLASH"ren Sandmann",
+ "version", PACKAGE_VERSION,
+ NULL);
+}
+
+static void
connect_signals (Window *window)
{
int i;
@@ -575,6 +588,7 @@ connect_signals (Window *window)
{ "drawing_area", "scroll_event", G_CALLBACK (on_scroll) },
{ "drawing_area", "size_allocate", G_CALLBACK (on_size_allocate) },
{ "menu_open", "activate", G_CALLBACK (on_open) },
+ { "menu_about", "activate", G_CALLBACK (on_about) },
};
for (i = 0; i < G_N_ELEMENTS (connections); ++i)
@@ -730,8 +744,6 @@ window_load_file (Window *window, const char *filename, GError **err)
{
GtkCheckMenuItem *item;
- g_print ("moving to %d %d\n", data->window_x, data->window_y);
-
gtk_window_move (get_widget (window, "main_window"),
data->window_x, data->window_y);