Move binary
[darcs-mirror-screen-message.debian.git] / sm.c
diff --git a/sm.c b/sm.c
index 924ec2c..7ab0402 100644 (file)
--- a/sm.c
+++ b/sm.c
@@ -30,7 +30,6 @@ static int min(int x, int y) {
 
 static gboolean quality = TRUE;
 static gboolean need_resize = TRUE;
-static gboolean need_quick = TRUE;
 
 static GtkWidget* window;
 static GtkWidget* draw;
@@ -134,6 +133,8 @@ int main(int argc, char **argv) {
        window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
        gtk_window_set_decorated(GTK_WINDOW(window), FALSE);
        gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
+       gtk_window_set_icon_name (GTK_WINDOW (window), "sm");
+
        GdkScreen *screen = gtk_window_get_screen(GTK_WINDOW(window));
        gtk_widget_set_size_request(window, gdk_screen_get_width(screen),
                                            gdk_screen_get_height(screen));
@@ -194,6 +195,9 @@ int main(int argc, char **argv) {
                input = g_string_new(":-)");
 
        gtk_text_buffer_set_text(tb, input->str, input->len);
+       GtkTextIter start, end;
+       gtk_text_buffer_get_bounds(tb, &start, &end);
+       gtk_text_buffer_select_range(tb, &start, &end);
 
        quit = gtk_button_new_from_stock(GTK_STOCK_QUIT);
        g_signal_connect(G_OBJECT(quit), "clicked", G_CALLBACK(gtk_main_quit), NULL);
@@ -235,4 +239,6 @@ int main(int argc, char **argv) {
        resize();
 
        gtk_main();
+
+       return 0;
 }