![]() SignupBtn = gtk_button_new_with_label("Sign Up") Gtk_entry_set_visibility(GTK_ENTRY(PasswordEntry),FALSE) Gtk_entry_set_placeholder_text(GTK_ENTRY(PasswordEntry),"Password") PasswordLabel = gtk_label_new("Password:") Gtk_entry_set_icon_from_gicon(GTK_ENTRY(emailEntry),GTK_ENTRY_ICON_PRIMARY,icon) Path = g_file_new_for_path("D:/path/emailicon.png") Gtk_window_set_default_size (GTK_WINDOW (window), 500, 400) ![]() Gtk_window_set_title (GTK_WINDOW (window), "User Input") ![]() Window = gtk_application_window_new (app) Static void activate (GtkApplication* app, gpointer user_data) Gtk_entry_set_text(GTK_ENTRY(PasswordEntry),"") Gtk_entry_set_text(GTK_ENTRY(emailEntry),"") Gtk_label_set_text(GTK_LABEL(data),emailData) Void signup_button_clicked(GtkWidget *wid,gpointer data)Ĭonst gchar *emailData = gtk_entry_get_text(GTK_ENTRY(emailEntry)) GtkWidget *emailLabel, *emailEntry, *passwordLabel, *passwordEntry, *signupBtn, *grid Read GTK Button to understand how to connect the button signal to a function. Gtk_entry_set_placeholder_text(GTK_ENTRY(emailEntry),"Email") Ĭonst gchar *emailData = gtk_entry_get_text(GTK_ENTRY(emailEntry)) GTK Entry Application This function retrieves the contents of the entry widget. GTK Entry Visibility Get Text from Entry Field const gchar * gtk_entry_get_text (GtkEntry *entry)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |