summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-09-02 01:06:25 +0200
committerGünther Deschner <gd@samba.org>2008-09-05 13:06:16 +0200
commit685f7e3419b27cd0e274b7a768d9fa23b7de5f85 (patch)
treef2f114a475394bff93a535c71e57a922d8ddcf42 /source3
parentb0ab216cd53acf119aaba88a3d07f01810a5dfa9 (diff)
downloadsamba-685f7e3419b27cd0e274b7a768d9fa23b7de5f85.tar.gz
samba-685f7e3419b27cd0e274b7a768d9fa23b7de5f85.tar.bz2
samba-685f7e3419b27cd0e274b7a768d9fa23b7de5f85.zip
netdomjoin-gui: always center new windows.
Guenther (This used to be commit af25bd95d24de8e9fac8f86b18e03a09902b0b78)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
index d5b60f1878..bf41ee430d 100644
--- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
+++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
@@ -500,6 +500,7 @@ static void callback_creds_prompt(GtkWidget *widget,
gtk_widget_set_size_request(GTK_WIDGET(window), 380, 280);
gtk_window_set_icon_from_file(GTK_WINDOW(window), SAMBA_ICON_PATH, NULL);
gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(state->window_do_change));
+ gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ALWAYS);
g_signal_connect(G_OBJECT(window), "delete_event",
G_CALLBACK(callback_do_close), window);
@@ -1102,6 +1103,7 @@ static void callback_do_change(GtkWidget *widget,
gtk_widget_set_size_request(GTK_WIDGET(window), 480, 650);
gtk_window_set_icon_from_file(GTK_WINDOW(window), SAMBA_ICON_PATH, NULL);
gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(state->window_main));
+ gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ALWAYS);
g_signal_connect(G_OBJECT(window), "delete_event",
G_CALLBACK(callback_do_close), window);
@@ -1374,6 +1376,7 @@ static int draw_main_window(struct join_state *state)
gtk_widget_set_size_request(GTK_WIDGET(window), 600, 600);
gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
gtk_window_set_icon_from_file(GTK_WINDOW(window), SAMBA_ICON_PATH, NULL);
+ gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER_ALWAYS);
g_signal_connect(G_OBJECT(window), "delete_event",
G_CALLBACK(callback_delete_event), NULL);