You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
2.9 KiB
96 lines
2.9 KiB
#include "ubl-utils.h"
|
|
#include <gtk/gtk.h>
|
|
#include <gtk/gtkx.h>
|
|
#include <locale.h>
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <libintl.h>
|
|
|
|
|
|
#define glade_path "/usr/share/ubl-settings-usergroups/ui/ubl-settings-usergroups.glade"
|
|
#define CssPath "/usr/share/ubl-settings-usergroups/css/ubl-settings-usergroups.css"
|
|
#define image_path "/usr/share/ubl-settings-usergroups/ui/ubl-settings-usergroups-banner.png"
|
|
|
|
#define LocalePath "/usr/share/locale"
|
|
#define LocaleName "ubl-settings-usergroups"
|
|
|
|
|
|
#define _(String) gettext(String)
|
|
|
|
typedef struct {
|
|
GtkWidget *window;
|
|
|
|
GtkListStore *list;
|
|
GtkWidget *mainUserGroupsLabel;
|
|
GtkWidget *mainUserGroupsEntry;
|
|
GtkWidget *mainUserGroupsButton;
|
|
GtkWidget *mainUserNameLabel;
|
|
GtkWidget *mainUserNameAdminCheck;
|
|
GtkWidget *mainUserNameEntry;
|
|
GtkWidget *mainUserPasswordLabel;
|
|
GtkWidget *mainUserPasswordEntry;
|
|
GtkWidget *mainPasswordHashLabel;
|
|
GtkWidget *mainUserPasswordHashCombo;
|
|
GtkWidget *mainUserAutologinLabel;
|
|
GtkWidget *mainUserAutologinCombo;
|
|
GtkWidget *mainUpdateHomeDirLabel;
|
|
GtkWidget *mainUpdateDirCheck;
|
|
GtkWidget *mainLoadUserProgramsLabel;
|
|
GtkWidget *mainLoadUserProgramsEntry;
|
|
GtkWidget *mainUserStringLabel;
|
|
GtkWidget *mainUserStringEntry;
|
|
GtkWidget *mainAddButton;
|
|
GtkWidget *mainEditButton;
|
|
GtkWidget *mainDeleteButton;
|
|
GtkTreeViewColumn *mainUIDColumn;
|
|
GtkTreeViewColumn *mainLoginColumn;
|
|
GtkTreeViewColumn *mainPasswordColumn;
|
|
GtkTreeViewColumn *mainUserNameColumn;
|
|
GtkWidget *headerLoadGlobalConfigurationMenuItem;
|
|
GtkWidget *headerLoadLocalConfigurationMenuItem;
|
|
GtkWidget *headerSaveGlobalLocalConfigurationMenuItem;
|
|
GtkWidget *headerSaveGlobalConfigurationMenuItem;
|
|
GtkWidget *headerSaveLocalConfigurationMenuItem;
|
|
GtkWidget *headerDocumentationMenuItem;
|
|
GtkWidget *headerAboutMenuItem;
|
|
GtkWidget *mainHeaderConfigLoadLabel;
|
|
GtkWidget *mainHeaderTitleLabel;
|
|
GtkWidget *mainHeaderSaveConfigurationLabel;
|
|
GtkWidget *mainStatusBox;
|
|
GtkWidget *mainStatusIcon;
|
|
GtkWidget *mainStatusLabel;
|
|
|
|
} main_window;
|
|
|
|
typedef struct {
|
|
GtkWidget *window;
|
|
|
|
GtkWidget *userUIDLabel;
|
|
GtkWidget *userUIDEntry;
|
|
GtkWidget *userUsernameLabel;
|
|
GtkWidget *userUsernameEntry;
|
|
GtkWidget *userLoginLabel;
|
|
GtkWidget *userLoginEntry;
|
|
GtkWidget *userPasswordLabel;
|
|
GtkWidget *userPasswordEntry;
|
|
GtkWidget *userDefaultPasswordCheck;
|
|
GtkWidget *userPasswordHashLabel;
|
|
GtkWidget *userPasswordHashCombo;
|
|
GtkWidget *userSAMBALabel;
|
|
|
|
GtkWidget *userCancelButton;
|
|
GtkWidget *userAddButton;
|
|
} users_window;
|
|
|
|
typedef struct {
|
|
GtkWidget *window;
|
|
|
|
GtkWidget *groupsTreeView;
|
|
GtkTreeViewColumn *groupsEnabledColumn;
|
|
GtkTreeViewColumn *groupsGroupColumn;
|
|
GtkListStore *list;
|
|
|
|
GtkWidget *groupsCancelButton;
|
|
GtkWidget *groupsOkButton;
|
|
} groups_window; |