only center network close dialog if using tabs on bottom

This commit is contained in:
berkeviktor@aol.com 2010-10-05 06:05:38 +02:00
parent bb958766a0
commit ed21760023
1 changed files with 4 additions and 4 deletions

View File

@ -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 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.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 @@ @@ -214,60 +214,10 @@
away_list = mg_attr_list_create (&colors[COL_AWAY], FALSE); 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_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (mg_tab_close_cb), sess); G_CALLBACK (mg_tab_close_cb), sess);
- gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE); - 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 + 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); gtk_widget_show (dialog);
} }