mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-20 12:40:18 +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:
@@ -2846,11 +2846,19 @@ mg_create_center (session *sess, session_gui *gui, GtkWidget *box)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* sep between left and xtext */
|
/* sep between left and xtext */
|
||||||
|
#if HAVE_GTK3
|
||||||
|
gui->hpane_left = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
|
||||||
|
#elif !HAVE_GTK3
|
||||||
gui->hpane_left = gtk_hpaned_new ();
|
gui->hpane_left = gtk_hpaned_new ();
|
||||||
|
#endif
|
||||||
gtk_paned_set_position (GTK_PANED (gui->hpane_left), prefs.hex_gui_pane_left_size);
|
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 */
|
||||||
|
#if HAVE_GTK3
|
||||||
|
gui->hpane_right = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
|
||||||
|
#elif !HAVE_GTK3
|
||||||
gui->hpane_right = gtk_hpaned_new ();
|
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