From ed217600232f3cf93efe1d93da0eb70068195831 Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Tue, 5 Oct 2010 06:05:38 +0200 Subject: [PATCH] only center network close dialog if using tabs on bottom --- xchat-wdk.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xchat-wdk.patch b/xchat-wdk.patch index 164e278e..001b07fe 100644 --- a/xchat-wdk.patch +++ b/xchat-wdk.patch @@ -1187,7 +1187,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/joind.c xchat-wdk/src/fe diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/maingui.c xchat-wdk/src/fe-gtk/maingui.c --- xchat-wdk.orig/src/fe-gtk/maingui.c 2010-05-16 05:20:22 +0200 -+++ xchat-wdk/src/fe-gtk/maingui.c 2010-10-05 03:55:28 +0200 ++++ xchat-wdk/src/fe-gtk/maingui.c 2010-10-05 06:00:24 +0200 @@ -214,60 +214,10 @@ away_list = mg_attr_list_create (&colors[COL_AWAY], FALSE); } @@ -1274,13 +1274,13 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/maingui.c xchat-wdk/src/ g_signal_connect (G_OBJECT (dialog), "response", G_CALLBACK (mg_tab_close_cb), sess); - gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE); -+ if (prefs.tab_layout) ++ if (!prefs.tab_layout && prefs.tab_pos == 6) + { -+ gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE); ++ gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ON_PARENT); + } + else + { -+ gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ON_PARENT); ++ gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE); + } gtk_widget_show (dialog); }