mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-17 03:00:19 +00:00
Wrapped horizontal paned creation in GTK3/GTK2 conditionals and use gtk_paned_new(GTK_ORIENTATION_HORIZONTAL) for GTK3 while preserving existing layout logic.
This commit is contained in:
@@ -2845,12 +2845,20 @@ mg_create_center (session *sess, session_gui *gui, GtkWidget *box)
|
|||||||
gui->vpane_right = gtk_vpaned_new ();
|
gui->vpane_right = gtk_vpaned_new ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* sep between left and xtext */
|
/* sep between left and xtext */
|
||||||
gui->hpane_left = gtk_hpaned_new ();
|
#if HAVE_GTK3
|
||||||
gtk_paned_set_position (GTK_PANED (gui->hpane_left), prefs.hex_gui_pane_left_size);
|
gui->hpane_left = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
|
||||||
|
#elif !HAVE_GTK3
|
||||||
|
gui->hpane_left = gtk_hpaned_new ();
|
||||||
|
#endif
|
||||||
|
gtk_paned_set_position (GTK_PANED (gui->hpane_left), prefs.hex_gui_pane_left_size);
|
||||||
|
|
||||||
/* sep between xtext and right side */
|
/* sep between xtext and right side */
|
||||||
gui->hpane_right = gtk_hpaned_new ();
|
#if HAVE_GTK3
|
||||||
|
gui->hpane_right = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
|
||||||
|
#elif !HAVE_GTK3
|
||||||
|
gui->hpane_right = gtk_hpaned_new ();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (prefs.hex_gui_win_swap)
|
if (prefs.hex_gui_win_swap)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user