! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
gtk_style_context_get_background_color is deprecated
Status:
RESOLVED: MOVED
Product:
Xfce4-terminal
Component:
General

Comments

Description Avinash Sonawane 2019-05-14 07:47:31 CEST
gtk_style_context_get_background_color() is deprecated may be we can use gtk_style_context_get() in terminal-screen.c to get the background color?
Comment 1 Igor editbugs 2019-05-14 16:17:53 CEST
Yeah, but for some reason gtk_style_context_get() doesn't return the red value of the color for me.

The red value gets shown with the first function but not with the second:
      gtk_style_context_get_background_color (context, GTK_STATE_FLAG_ACTIVE, &bg);
      printf("color: %f %f %f %f\n", bg.red, bg.green, bg.blue, bg.alpha);
      gtk_style_context_get (context, GTK_STATE_FLAG_ACTIVE, GTK_STYLE_PROPERTY_BACKGROUND_COLOR, &bg, NULL);
      printf("prop: %f %f %f %f\n", bg.red, bg.green, bg.blue, bg.alpha);

color: 0.807843 0.807843 0.807843 1.000000
prop: 0.000000 0.807843 0.807843 1.000000
Comment 2 Git Bot editbugs 2020-05-24 23:44:46 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/xfce4-terminal/-/issues/33.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #15395

Reported by:
Avinash Sonawane
Reported on: 2019-05-14
Last modified on: 2020-05-24

People

CC List:
0 users

Version

Version:
0.8.7.4

Attachments

Additional information