| 39 static void |
39 static void |
| 40 create_send_button_pidgin(PidginConversation *gtkconv) |
40 create_send_button_pidgin(PidginConversation *gtkconv) |
| 41 { |
41 { |
| 42 GtkWidget *send_button; |
42 GtkWidget *send_button; |
| 43 |
43 |
| |
44 send_button = g_object_get_data(G_OBJECT(gtkconv->lower_hbox), |
| |
45 "send_button"); |
| |
46 |
| |
47 if (send_button != NULL) |
| |
48 return; |
| |
49 |
| 44 send_button = gtk_button_new_with_mnemonic(_("_Send")); |
50 send_button = gtk_button_new_with_mnemonic(_("_Send")); |
| 45 g_signal_connect(G_OBJECT(send_button), "clicked", |
51 g_signal_connect(G_OBJECT(send_button), "clicked", |
| 46 G_CALLBACK(send_button_cb), gtkconv); |
52 G_CALLBACK(send_button_cb), gtkconv); |
| 47 gtk_box_pack_end(GTK_BOX(gtkconv->lower_hbox), send_button, FALSE, |
53 gtk_box_pack_end(GTK_BOX(gtkconv->lower_hbox), send_button, FALSE, |
| 48 FALSE, 0); |
54 FALSE, 0); |
| 59 |
65 |
| 60 send_button = g_object_get_data(G_OBJECT(gtkconv->lower_hbox), |
66 send_button = g_object_get_data(G_OBJECT(gtkconv->lower_hbox), |
| 61 "send_button"); |
67 "send_button"); |
| 62 if (send_button != NULL) { |
68 if (send_button != NULL) { |
| 63 gtk_widget_destroy(send_button); |
69 gtk_widget_destroy(send_button); |
| |
70 g_object_set_data(G_OBJECT(gtkconv->lower_hbox), |
| |
71 "send_button", NULL); |
| 64 } |
72 } |
| 65 } |
73 } |
| 66 |
74 |
| 67 static void |
75 static void |
| 68 conversation_displayed_cb(PidginConversation *gtkconv) |
76 conversation_displayed_cb(PidginConversation *gtkconv) |