Bug #2194 » 0069-gtk4-x-Unparent-popups-from-the-citydlg-info-labels.patch
| client/gui-gtk-4.0/citydlg.c | ||
|---|---|---|
|
return FALSE;
|
||
|
}
|
||
|
/**********************************************************************//**
|
||
|
Information popup destruction requested
|
||
|
**************************************************************************/
|
||
|
static void info_popdown_callback(GtkWidget *w, gpointer data)
|
||
|
{
|
||
|
gtk_widget_unparent(w);
|
||
|
}
|
||
|
/***********************************************************************//**
|
||
|
Popup info dialog
|
||
|
***************************************************************************/
|
||
| ... | ... | |
|
gtk_popover_set_child(GTK_POPOVER(p), label);
|
||
|
g_signal_connect(p, "closed",
|
||
|
G_CALLBACK(info_popdown_callback), NULL);
|
||
|
gtk_popover_popup(GTK_POPOVER(p));
|
||
|
return TRUE;
|
||
| client/gui-gtk-5.0/citydlg.c | ||
|---|---|---|
|
return FALSE;
|
||
|
}
|
||
|
/**********************************************************************//**
|
||
|
Information popup destruction requested
|
||
|
**************************************************************************/
|
||
|
static void info_popdown_callback(GtkWidget *w, gpointer data)
|
||
|
{
|
||
|
gtk_widget_unparent(w);
|
||
|
}
|
||
|
/***********************************************************************//**
|
||
|
Popup info dialog
|
||
|
***************************************************************************/
|
||
| ... | ... | |
|
gtk_popover_set_child(GTK_POPOVER(p), label);
|
||
|
g_signal_connect(p, "closed",
|
||
|
G_CALLBACK(info_popdown_callback), NULL);
|
||
|
gtk_popover_popup(GTK_POPOVER(p));
|
||
|
return TRUE;
|
||