summaryrefslogtreecommitdiff
path: root/source4/gtk/tools
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-03-24 20:29:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:16 -0500
commit2fa732c6251f6dd23c3c8ef1facf638c9c531bdd (patch)
treeecd5915134035df978162e9a242d3c10603fcac5 /source4/gtk/tools
parentae1ea5619b18be9c37f9647756e06718b17b88f2 (diff)
downloadsamba-2fa732c6251f6dd23c3c8ef1facf638c9c531bdd.tar.gz
samba-2fa732c6251f6dd23c3c8ef1facf638c9c531bdd.tar.bz2
samba-2fa732c6251f6dd23c3c8ef1facf638c9c531bdd.zip
r6045: Couple of small GTK+ fixes
Use uint32_t and uint16_t rather then DWORD and WORD in the NT4 backend. Add some more unknown fields.. (This used to be commit 6c3b1ec3296c7ab1ddfdcee86162f2eb0d73f5a8)
Diffstat (limited to 'source4/gtk/tools')
-rw-r--r--source4/gtk/tools/gepdump.c5
-rw-r--r--source4/gtk/tools/gregedit.c6
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);