diff options
Diffstat (limited to 'source4/gtk/tools')
-rw-r--r-- | source4/gtk/tools/gepdump.c | 5 | ||||
-rw-r--r-- | source4/gtk/tools/gregedit.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/source4/gtk/tools/gepdump.c b/source4/gtk/tools/gepdump.c index d707f4a0f3..97ba90abfe 100644 --- a/source4/gtk/tools/gepdump.c +++ b/source4/gtk/tools/gepdump.c @@ -41,6 +41,7 @@ static GtkWidget *table_statistics; static GtkWidget *lbl_calls_in, *lbl_calls_out, *lbl_pkts_in, *lbl_pkts_out; static GtkWidget *lbl_iface_version, *lbl_iface_uuid, *lbl_iface_name; static GtkListStore *store_princ_names; +static GtkWidget *mnu_refresh; TALLOC_CTX *eps_ctx = NULL; TALLOC_CTX *conn_ctx = NULL; @@ -202,6 +203,8 @@ static void on_connect_clicked(GtkButton *btn, gpointer user_data) gtk_show_ntstatus(mainwin, "Error connecting to endpoint mapper", status); goto fail; } + + gtk_widget_set_sensitive( mnu_refresh, True ); refresh_eps(); @@ -300,7 +303,6 @@ static GtkWidget* create_mainwindow (void) GtkWidget *menuitem4; GtkWidget *menuitem4_menu; GtkWidget *mnu_connect; - GtkWidget *mnu_refresh; GtkWidget *treeview_princ_names; GtkWidget *about1; GtkWidget *hbox2; @@ -337,6 +339,7 @@ static GtkWidget* create_mainwindow (void) mnu_refresh = gtk_menu_item_new_with_mnemonic ("_Refresh"); gtk_container_add(GTK_CONTAINER(menuitem1_menu), mnu_refresh); + gtk_widget_set_sensitive( mnu_refresh, False ); quit1 = gtk_image_menu_item_new_from_stock ("gtk-quit", accel_group); gtk_container_add (GTK_CONTAINER (menuitem1_menu), quit1); diff --git a/source4/gtk/tools/gregedit.c b/source4/gtk/tools/gregedit.c index 28423040bf..472a5683ed 100644 --- a/source4/gtk/tools/gregedit.c +++ b/source4/gtk/tools/gregedit.c @@ -2,7 +2,7 @@ Unix SMB/CIFS implementation. GTK+ registry frontend - Copyright (C) Jelmer Vernooij 2004 + Copyright (C) Jelmer Vernooij 2004-2005 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -753,6 +753,10 @@ static GtkWidget* create_mainwindow(void) discard_const_p(char, "ldb")); } + separatormenuitem1 = gtk_menu_item_new (); + gtk_container_add (GTK_CONTAINER (menu_file_menu), separatormenuitem1); + gtk_widget_set_sensitive (separatormenuitem1, FALSE); + save = gtk_image_menu_item_new_from_stock ("gtk-save", accel_group); gtk_widget_set_sensitive( save, False ); gtk_container_add (GTK_CONTAINER (menu_file_menu), save); |