mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-20 20:45:02 -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 */
|
GtkWidget *label; /* for dlg_label_change */
|
||||||
GtkAdjustment *adj; /* for the scrollbar in a list box */
|
GtkAdjustment *adj; /* for the scrollbar in a list box */
|
||||||
struct selparam *sp; /* which switchable pane of the box we're in */
|
struct selparam *sp; /* which switchable pane of the box we're in */
|
||||||
guint entrysig;
|
|
||||||
guint textsig;
|
guint textsig;
|
||||||
int nclicks;
|
int nclicks;
|
||||||
const char *textvalue; /* temporary, for button-only file selectors */
|
const char *textvalue; /* temporary, for button-only file selectors */
|
||||||
@ -2055,7 +2054,6 @@ GtkWidget *layout_ctrls(
|
|||||||
uc->entry = w;
|
uc->entry = w;
|
||||||
signalobject = w;
|
signalobject = w;
|
||||||
}
|
}
|
||||||
uc->entrysig =
|
|
||||||
g_signal_connect(G_OBJECT(signalobject), "changed",
|
g_signal_connect(G_OBJECT(signalobject), "changed",
|
||||||
G_CALLBACK(editbox_changed), dp);
|
G_CALLBACK(editbox_changed), dp);
|
||||||
g_signal_connect(G_OBJECT(signalobject), "key_press_event",
|
g_signal_connect(G_OBJECT(signalobject), "key_press_event",
|
||||||
@ -2167,7 +2165,6 @@ GtkWidget *layout_ctrls(
|
|||||||
|
|
||||||
g_signal_connect(G_OBJECT(uc->entry), "key_press_event",
|
g_signal_connect(G_OBJECT(uc->entry), "key_press_event",
|
||||||
G_CALLBACK(editbox_key), dp);
|
G_CALLBACK(editbox_key), dp);
|
||||||
uc->entrysig =
|
|
||||||
g_signal_connect(G_OBJECT(uc->entry), "changed",
|
g_signal_connect(G_OBJECT(uc->entry), "changed",
|
||||||
G_CALLBACK(editbox_changed), dp);
|
G_CALLBACK(editbox_changed), dp);
|
||||||
g_signal_connect(G_OBJECT(uc->entry), "focus_in_event",
|
g_signal_connect(G_OBJECT(uc->entry), "focus_in_event",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user