Mercurial > dwindows
comparison gtk3/dw.c @ 1916:eafaab13d0db
Minor fix to that last commit, and remove call to gtk_tree_view_set_rules_hint()
for GTK version 3.14 and higher.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 28 Sep 2016 21:08:13 +0000 |
parents | 98579be1198e |
children | 933b5f7005a9 |
comparison
equal
deleted
inserted
replaced
1915:98579be1198e | 1916:eafaab13d0db |
---|---|
2855 backcolor.blue = (gdouble)DW_BLUE_VALUE(back) / 255.0; | 2855 backcolor.blue = (gdouble)DW_BLUE_VALUE(back) / 255.0; |
2856 } | 2856 } |
2857 else if(back != DW_CLR_DEFAULT) | 2857 else if(back != DW_CLR_DEFAULT) |
2858 backcolor = _colors[back]; | 2858 backcolor = _colors[back]; |
2859 | 2859 |
2860 _dw_override_background_color(handle, "background-color", back != DW_CLR_DEFAULT ? &backcolor : NULL); | 2860 _dw_override_color(handle, "background-color", back != DW_CLR_DEFAULT ? &backcolor : NULL); |
2861 | 2861 |
2862 _save_gdk_colors(handle, forecolor, backcolor); | 2862 _save_gdk_colors(handle, forecolor, backcolor); |
2863 | 2863 |
2864 return TRUE; | 2864 return TRUE; |
2865 } | 2865 } |
6189 * DW_RGB_TRANSPARENT will disable coloring rows. | 6189 * DW_RGB_TRANSPARENT will disable coloring rows. |
6190 * DW_CLR_DEFAULT will use the system default alternating row colors. | 6190 * DW_CLR_DEFAULT will use the system default alternating row colors. |
6191 */ | 6191 */ |
6192 void API dw_container_set_stripe(HWND handle, unsigned long oddcolor, unsigned long evencolor) | 6192 void API dw_container_set_stripe(HWND handle, unsigned long oddcolor, unsigned long evencolor) |
6193 { | 6193 { |
6194 #if !GTK_CHECK_VERSION(3,14,0) | |
6194 GtkWidget *cont; | 6195 GtkWidget *cont; |
6195 int _locked_by_me = FALSE; | 6196 int _locked_by_me = FALSE; |
6196 DW_MUTEX_LOCK; | 6197 DW_MUTEX_LOCK; |
6197 cont = (GtkWidget *)g_object_get_data(G_OBJECT(handle), "_dw_user"); | 6198 cont = (GtkWidget *)g_object_get_data(G_OBJECT(handle), "_dw_user"); |
6198 | 6199 |
6203 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(cont), FALSE); | 6204 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(cont), FALSE); |
6204 else | 6205 else |
6205 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(cont), TRUE); | 6206 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(cont), TRUE); |
6206 } | 6207 } |
6207 DW_MUTEX_UNLOCK; | 6208 DW_MUTEX_UNLOCK; |
6209 #endif | |
6208 } | 6210 } |
6209 | 6211 |
6210 /* | 6212 /* |
6211 * Sets the width of a column in the container. | 6213 * Sets the width of a column in the container. |
6212 * Parameters: | 6214 * Parameters: |