~ubuntu-branches/ubuntu/lucid/pidgin-otr/lucid-security

« back to all changes in this revision

Viewing changes to gtk-dialog.c

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-09-28 21:21:55 UTC
  • Revision ID: james.westby@ubuntu.com-20090928212155-04bdht1u6aq3ozoj
Tags: 3.2.0-4ubuntu1
* otr-plugin.c: Fix: key generation doesn't use /dev/urandom with more recent
  libgcrypt versions (LP: #240640)
* gtk-dialog.c: Allow to copy the fingerprints from the authentication dialog
  (LP: #310769)

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
static int img_id_private = 0;
72
72
static int img_id_finished = 0;
73
73
 
 
74
static GtkLabel * fingerprint_label = 0;
 
75
 
74
76
 
75
77
typedef struct {
76
78
    ConnContext *context;       /* The context used to fire library code */
643
645
    label = gtk_label_new(NULL);
644
646
    
645
647
    gtk_label_set_markup(GTK_LABEL(label), label_text);
646
 
    gtk_label_set_selectable(GTK_LABEL(label), FALSE);
 
648
    gtk_label_set_selectable(GTK_LABEL(label), TRUE);
647
649
    g_free(label_text);
648
650
    gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
649
651
    gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
650
652
    gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
 
653
    fingerprint_label = label;
651
654
        
652
655
    add_vrfy_fingerprint(vbox, vfd);
653
656
    g_signal_connect(G_OBJECT(vbox), "destroy",
677
680
        auth_data->smppair->entry = NULL;
678
681
        gtk_notebook_set_current_page (GTK_NOTEBOOK(notebook), 2);
679
682
        auth_data->smppair->smp_type = -1;
 
683
        // workaround to prevent the text from always being selected
 
684
        gtk_label_select_region(GTK_LABEL(fingerprint_label), 0, 0);
680
685
    }
681
686
    
682
687
}