Mageia Bugzilla – Attachment 7927 Details for
Bug 18635
adwaita-gtk2-theme: impossible to modify the background colour of a GtkEntry or a wxTextCtrl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Source code of a GtkEntry test
test.c (text/x-csrc), 869 bytes, created by
Nicolas Salguero
on 2016-06-06 16:03:53 CEST
(
hide
)
Description:
Source code of a GtkEntry test
Filename:
MIME Type:
Creator:
Nicolas Salguero
Created:
2016-06-06 16:03:53 CEST
Size:
869 bytes
patch
obsolete
>#include <stdlib.h> >#include <gtk/gtk.h> > >void on_activate_entry(GtkWidget *pEntry, gpointer data); >void on_copier_button(GtkWidget *pButton, gpointer data); > >int main(int argc, char **argv) >{ > GtkWidget *pWindow; > GtkWidget *pVBox; > GtkWidget *pEntry; > GtkWidget *pButton; > GtkWidget *pLabel; > GdkColor color; > > gtk_init(&argc, &argv); > > pWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL); > g_signal_connect(G_OBJECT(pWindow), "destroy", G_CALLBACK(gtk_main_quit), NULL); > > pVBox = gtk_vbox_new(TRUE, 0); > gtk_container_add(GTK_CONTAINER(pWindow), pVBox); > > pEntry = gtk_entry_new(); > gdk_color_parse ("red", &color); > gtk_widget_modify_base (pEntry, GTK_STATE_NORMAL, &color); > gtk_box_pack_start(GTK_BOX(pVBox), pEntry, TRUE, FALSE, 0); > > gtk_widget_show_all(pWindow); > > gtk_main(); > > return EXIT_SUCCESS; >}
#include <stdlib.h> #include <gtk/gtk.h> void on_activate_entry(GtkWidget *pEntry, gpointer data); void on_copier_button(GtkWidget *pButton, gpointer data); int main(int argc, char **argv) { GtkWidget *pWindow; GtkWidget *pVBox; GtkWidget *pEntry; GtkWidget *pButton; GtkWidget *pLabel; GdkColor color; gtk_init(&argc, &argv); pWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(G_OBJECT(pWindow), "destroy", G_CALLBACK(gtk_main_quit), NULL); pVBox = gtk_vbox_new(TRUE, 0); gtk_container_add(GTK_CONTAINER(pWindow), pVBox); pEntry = gtk_entry_new(); gdk_color_parse ("red", &color); gtk_widget_modify_base (pEntry, GTK_STATE_NORMAL, &color); gtk_box_pack_start(GTK_BOX(pVBox), pEntry, TRUE, FALSE, 0); gtk_widget_show_all(pWindow); gtk_main(); return EXIT_SUCCESS; }
View Attachment As Raw
Actions:
View
Attachments on
bug 18635
: 7927 |
7928
|
7929
|
7930
|
7931
|
7932
|
7933
|
7934