mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 07:38:06 -05:00
GTK: remove 'entrysig' in struct uctrl.
The only *use* of it was removed in commit 6a743399b03e3d6, where instead of blocking the GTK signal that caused a string to be overwritten, I switched to making a temporary copy of the string. But I didn't notice that the declaration and assignments could be cleaned up too.
This commit is contained in:
parent
3bef6b63f0
commit
e8a8c2535d
@ -71,7 +71,6 @@ struct uctrl {
|
||||
GtkWidget *label; /* for dlg_label_change */
|
||||
GtkAdjustment *adj; /* for the scrollbar in a list box */
|
||||
struct selparam *sp; /* which switchable pane of the box we're in */
|
||||
guint entrysig;
|
||||
guint textsig;
|
||||
int nclicks;
|
||||
const char *textvalue; /* temporary, for button-only file selectors */
|
||||
@ -2055,9 +2054,8 @@ GtkWidget *layout_ctrls(
|
||||
uc->entry = w;
|
||||
signalobject = w;
|
||||
}
|
||||
uc->entrysig =
|
||||
g_signal_connect(G_OBJECT(signalobject), "changed",
|
||||
G_CALLBACK(editbox_changed), dp);
|
||||
g_signal_connect(G_OBJECT(signalobject), "changed",
|
||||
G_CALLBACK(editbox_changed), dp);
|
||||
g_signal_connect(G_OBJECT(signalobject), "key_press_event",
|
||||
G_CALLBACK(editbox_key), dp);
|
||||
g_signal_connect(G_OBJECT(signalobject), "focus_in_event",
|
||||
@ -2167,9 +2165,8 @@ GtkWidget *layout_ctrls(
|
||||
|
||||
g_signal_connect(G_OBJECT(uc->entry), "key_press_event",
|
||||
G_CALLBACK(editbox_key), dp);
|
||||
uc->entrysig =
|
||||
g_signal_connect(G_OBJECT(uc->entry), "changed",
|
||||
G_CALLBACK(editbox_changed), dp);
|
||||
g_signal_connect(G_OBJECT(uc->entry), "changed",
|
||||
G_CALLBACK(editbox_changed), dp);
|
||||
g_signal_connect(G_OBJECT(uc->entry), "focus_in_event",
|
||||
G_CALLBACK(widget_focus), dp);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user