mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-18 03:30:18 +00:00
Updated the GTK3 Help menu icon constant so _Contents now uses help-contents instead of help-browser, which fixes the oversized icon appearance on Linux and keeps it consistent with other menu icons.
Updated menu_setting_foreach() to safely handle sessions where menu_item[id] is still NULL by storing it in a local pointer and only toggling check state when it exists. This avoids GTK/GLib criticals during layout/menu synchronization paths while preserving normal behavior for initialized menu items. Fixed the a few dialog box layout so the scrolled keybindings list expands to fill available vertical space in the window. It now packs the scroller into the parent GtkBox with expand/fill enabled (gtk_box_pack_start(..., TRUE, TRUE, 0)) instead of adding it as a generic container child. This allows the window height to be fully utilized.
This commit is contained in:
@@ -98,13 +98,16 @@ static GtkWidget *
|
||||
url_treeview_new (GtkWidget *box)
|
||||
{
|
||||
GtkListStore *store;
|
||||
GtkWidget *view;
|
||||
GtkWidget *scroll, *view;
|
||||
|
||||
store = gtk_list_store_new (N_COLUMNS, G_TYPE_STRING);
|
||||
g_return_val_if_fail (store != NULL, NULL);
|
||||
|
||||
view = gtkutil_treeview_new (box, GTK_TREE_MODEL (store), NULL,
|
||||
URL_COLUMN, _("URL"), -1);
|
||||
scroll = gtk_widget_get_parent (view);
|
||||
gtk_widget_set_hexpand (scroll, TRUE);
|
||||
gtk_widget_set_vexpand (scroll, TRUE);
|
||||
g_signal_connect (G_OBJECT (view), "button_press_event",
|
||||
G_CALLBACK (url_treeview_url_clicked_cb), NULL);
|
||||
/* don't want column headers */
|
||||
|
||||
Reference in New Issue
Block a user