WebKit Bugzilla
Attachment 340924 Details for
Bug 126907
: [GTK] Hardcoded text color in input fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Example
example-1.c (text/x-csrc), 1.22 KB, created by
Carlos Bentzen
on 2018-05-21 16:38:52 PDT
(
hide
)
Description:
Example
Filename:
MIME Type:
Creator:
Carlos Bentzen
Created:
2018-05-21 16:38:52 PDT
Size:
1.22 KB
patch
obsolete
>#include <gtk/gtk.h> > >static void >activate (GtkApplication *app, > gpointer user_data) >{ > GtkWidget *window; > window = gtk_application_window_new (app); > gtk_window_set_title (GTK_WINDOW (window), "Window"); > gtk_window_set_default_size (GTK_WINDOW (window), 200, 200); > > GtkWidgetPath *path = gtk_widget_path_new (); > gtk_widget_path_append_type (path, G_TYPE_NONE); > gtk_widget_path_iter_set_object_name (path, -1, "button"); > > GtkStyleContext *context = gtk_style_context_new (); > gtk_style_context_set_path (context, path); > gtk_style_context_set_parent (context, NULL); > > gtk_style_context_set_state (context, GTK_STATE_FLAG_NORMAL); > > GdkRGBA color; > gtk_style_context_get_color (context, gtk_style_context_get_state (context), &color); > g_print("color = (r, g, b, a) = (%f, %f, %f, %f)\n", color.red, color.green, color.blue, color.alpha); > > gtk_widget_show_all (window); >} > >int >main (int argc, > char **argv) >{ > GtkApplication *app; > int status; > > app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE); > g_signal_connect (app, "activate", G_CALLBACK (activate), NULL); > status = g_application_run (G_APPLICATION (app), argc, argv); > g_object_unref (app); > > return status; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 126907
:
302499
|
340464
|
340489
| 340924 |
341088
|
341463
|
341468
|
341565
|
343018
|
343026
|
343033
|
343657
|
343659
|
343695
|
368142
|
368149
|
368150