# HG changeset patch # User Rob Flynn # Date 965193989 0 # Node ID 7409d7ae66218baaef85ef65b06caf6dc07b706e # Parent c72e5ee07d0a2c12412ab011f8d2260f2524947e [gaim-migrate @ 592] I think this looks a little better. It looks a lot more like the windows version. Just click the smiley face again to make the dialog go away. Tootles, Rob committer: Tailor Script diff -r c72e5ee07d0a -r 7409d7ae6621 src/aim.c --- a/src/aim.c Wed Aug 02 05:15:57 2000 +0000 +++ b/src/aim.c Wed Aug 02 05:26:29 2000 +0000 @@ -589,6 +589,7 @@ show_login(); + new_conversation("Nobody"); gtk_main(); #endif /* USE_APPLET */ diff -r c72e5ee07d0a -r 7409d7ae6621 src/dialogs.c --- a/src/dialogs.c Wed Aug 02 05:15:57 2000 +0000 +++ b/src/dialogs.c Wed Aug 02 05:26:29 2000 +0000 @@ -3611,7 +3611,7 @@ GtkWidget *cancel_p; GdkBitmap *mask; GtkWidget *win; - GtkWidget *frame; + GtkWidget *bbox; if (c->smiley_dialog) return; @@ -3621,10 +3621,10 @@ dialog = gtk_window_new(GTK_WINDOW_DIALOG); gtk_window_set_policy(GTK_WINDOW(dialog), 0, 0, 1); - frame = gtk_frame_new(_("Smile!")); - /* setup boxes */ - vbox = gtk_vbox_new(TRUE, 0); + vbox = gtk_vbox_new(TRUE, 5); + bbox = gtk_hbox_new(FALSE, 5); + smiley_box_1 = gtk_toolbar_new(GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_ICONS); smiley_box_2 = gtk_toolbar_new(GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_ICONS); smiley_box_3 = gtk_toolbar_new(GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_ICONS); @@ -3632,29 +3632,6 @@ /* setup buttons */ - /* Build Cancel Button */ - - cancel_button = gtk_button_new(); - - cancel_button_box = gtk_hbox_new(FALSE, 5); - cancel_i = gdk_pixmap_create_from_xpm_d (win->window, &mask, NULL, cancel_xpm); - - cancel_p = gtk_pixmap_new(cancel_i, mask); - - cancel_label = gtk_label_new(_("Cancel")); - - gtk_box_pack_start(GTK_BOX(cancel_button_box), cancel_p, FALSE, FALSE, 2); - gtk_box_pack_end(GTK_BOX(cancel_button_box), cancel_label, FALSE, FALSE, 2); - - gtk_widget_show(cancel_label); - gtk_widget_show(cancel_p); - - gtk_widget_show(cancel_button_box); - - gtk_container_add(GTK_CONTAINER(cancel_button), cancel_button_box); - - /* End of Cancel Button */ - /* pack buttons */ toolbar_add_smiley(c, smiley_box_1, angel_xpm, win, FACE_ANGEL); toolbar_add_smiley(c, smiley_box_1, bigsmile_xpm, win, FACE_BIGSMILE); @@ -3681,13 +3658,10 @@ gtk_box_pack_start(GTK_BOX(vbox), smiley_box_2, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), smiley_box_3, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vbox), smiley_box_4, TRUE, TRUE, 0); - gtk_box_pack_start(GTK_BOX(vbox), cancel_button, FALSE, FALSE, 0); - gtk_container_add(GTK_CONTAINER(frame), vbox); - gtk_container_add(GTK_CONTAINER(dialog), frame); + + gtk_container_add(GTK_CONTAINER(dialog), vbox); gtk_container_set_border_width(GTK_CONTAINER(dialog), 5); - /* connect signals */ - gtk_signal_connect(GTK_OBJECT(cancel_button), "clicked", GTK_SIGNAL_FUNC(close_smiley_dialog), c); /* show everything */ if (display_options & OPT_DISP_COOL_LOOK) gtk_button_set_relief(GTK_BUTTON(cancel_button), GTK_RELIEF_NONE);