282
290
cairo_paint (cr);
283
291
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
285
cairo_pattern_t *pattern;
293
cairo_pattern_t *pat;
287
pattern = cairo_pattern_create_linear (0, 0, width, 0);
288
cairo_pattern_add_color_stop_rgba (pattern, 0.0, colors->bg[0].r,
290
colors->bg[0].b, WINDOW_OPACITY);
291
cairo_pattern_add_color_stop_rgba (pattern, 0.5, colors->bg[0].r,
293
colors->bg[0].b, (WINDOW_OPACITY-0.04));
294
cairo_pattern_add_color_stop_rgba (pattern, 1.0, colors->bg[0].r,
296
colors->bg[0].b, WINDOW_OPACITY);
297
cairo_set_source (cr, pattern);
295
pat = cairo_pattern_create_linear (0, 0, width, 0);
296
murrine_pattern_add_color_stop_rgba (pat, 0.0, &colors->bg[0], WINDOW_OPACITY);
297
murrine_pattern_add_color_stop_rgba (pat, 0.5, &colors->bg[0], (WINDOW_OPACITY-0.04));
298
murrine_pattern_add_color_stop_rgba (pat, 1.0, &colors->bg[0], WINDOW_OPACITY);
299
cairo_set_source (cr, pat);
298
300
cairo_rectangle (cr, 0, 0, width, height);
300
cairo_pattern_destroy (pattern);
302
cairo_pattern_destroy (pat);
303
305
cairo_destroy (cr);
382
385
params.corners = MRN_CORNER_TOPRIGHT | MRN_CORNER_BOTTOMRIGHT;
385
STYLE_FUNCTION(draw_entry) (cr, &murrine_style->colors, ¶ms,
386
x, y, width, height);
388
/* Fill the background as it is initilized to base[NORMAL].
389
* Relevant GTK+ bug: http://bugzilla.gnome.org/show_bug.cgi?id=513471
390
* The fill only happens if no hint has been added by some application
391
* that is faking GTK+ widgets. */
392
if (!widget || !g_object_get_data(G_OBJECT (widget), "transparent-bg-hint"))
394
cairo_rectangle (cr, 0, 0, width, height);
395
if (!params.mrn_gradient.use_rgba)
397
murrine_set_color_rgb (cr, ¶ms.parentbg);
402
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
403
murrine_set_color_rgba (cr, ¶ms.parentbg, WINDOW_OPACITY);
405
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
410
if (murrine_style->has_focus_color)
412
murrine_gdk_color_to_rgb (&murrine_style->focus_color, &focus.color.r,
415
focus.has_color = TRUE;
418
focus.color = colors->spot[2];
420
STYLE_FUNCTION(draw_entry) (cr, &murrine_style->colors, ¶ms, &focus,
421
x, y, width, height);
388
423
else if (DETAIL ("frame") && widget && MRN_IS_STATUSBAR (widget->parent))
728
768
header.resizable = resizable;
730
771
if (column_index == 0)
731
header.order = params.ltr ? MRN_ORDER_FIRST : MRN_ORDER_LAST;
732
else if (column_index == columns-1)
733
header.order = params.ltr ? MRN_ORDER_LAST : MRN_ORDER_FIRST;
735
header.order = MRN_ORDER_MIDDLE;
772
header.order |= params.ltr ? MRN_ORDER_FIRST : MRN_ORDER_LAST;
773
if (column_index == columns-1)
774
header.order |= params.ltr ? MRN_ORDER_LAST : MRN_ORDER_FIRST;
737
776
gtk_style_apply_default_background (style, window, FALSE, state_type, area, x, y, width, height);
739
778
STYLE_FUNCTION(draw_list_view_header) (cr, colors, ¶ms, &header, x, y, width, height);
741
else if (DETAIL ("button") || DETAIL ("buttondefault"))
780
else if (DETAIL ("buttondefault"))
782
/* We are already checking the default button with the
783
* "murrine_set_widget_parameters" function, so we may occur
784
* in drawing the button two times. Do nothing.
787
else if (DETAIL ("button"))
743
789
WidgetParameters params;
745
791
murrine_set_widget_parameters (widget, style, state_type, ¶ms);
746
params.roundness = murrine_style->roundness;
792
params.active = shadow_type == GTK_SHADOW_IN;
748
794
boolean horizontal = TRUE;
749
if (((float)width/height<0.5)|| (murrine_style->glazestyle > 0 && width<height))
795
if (((float)width/height < 0.5) ||
796
(murrine_style->glazestyle > 0 && width<height))
750
797
horizontal = FALSE;
752
799
if ((widget && (MRN_IS_COMBO_BOX_ENTRY (widget->parent) || MRN_IS_COMBO (widget->parent))))
873
902
/* draw_spinbutton (cr, &murrine_style->colors, ¶ms, x, y, width, height); */
874
903
STYLE_FUNCTION(draw_button) (cr, &murrine_style->colors, ¶ms, x, y, width, height, horizontal);
876
else if (DETAIL ("trough") && widget && MRN_IS_SCALE (widget))
905
else if (detail && g_str_has_prefix (detail, "trough") && widget && MRN_IS_SCALE (widget))
878
GtkAdjustment *adjustment = gtk_range_get_adjustment (GTK_RANGE (widget));
879
907
WidgetParameters params;
880
908
SliderParameters slider;
883
gtk_widget_style_get (widget, "slider-length", &slider_length, NULL);
885
slider.inverted = gtk_range_get_inverted (GTK_RANGE (widget));
910
slider.lower = DETAIL ("trough-lower");
911
slider.fill_level = DETAIL ("trough-fill-level") || DETAIL ("trough-fill-level-full");
886
912
slider.horizontal = (GTK_RANGE (widget)->orientation == GTK_ORIENTATION_HORIZONTAL);
887
slider.fill_size = ((slider.horizontal ? width : height) - slider_length) *
888
(1 / ((adjustment->upper - adjustment->lower) / (adjustment->value - adjustment->lower)))
890
if (slider.horizontal)
891
slider.inverted = slider.inverted != (murrine_get_direction (widget) == GTK_TEXT_DIR_RTL);
893
914
murrine_set_widget_parameters (widget, style, state_type, ¶ms);
894
params.corners = MRN_CORNER_NONE;
915
params.corners = MRN_CORNER_NONE;
896
917
STYLE_FUNCTION(draw_scale_trough) (cr, &murrine_style->colors,
897
918
¶ms, &slider,
973
1012
elapsed = murrine_animation_elapsed (widget);
976
murrine_set_widget_parameters (widget, style, state_type, ¶ms);
977
params.roundness = murrine_style->roundness;
979
/* cairo_reset_clip (cr); */
981
1015
/* The x-1 and width+2 are to make the fill cover the left and
982
1016
* right-hand sides of the trough box */
984
1018
#ifndef HAVE_ANIMATIONRTL
985
1019
STYLE_FUNCTION(draw_progressbar_fill) (cr, colors, ¶ms, &progressbar,
986
1020
x-1, y, width+2, height,
987
10 - (int)(elapsed * 10.0) % 10);
1021
10-(int)(elapsed*10.0) % 10);
989
1023
STYLE_FUNCTION(draw_progressbar_fill) (cr, colors, ¶ms, &progressbar,
990
1024
x-1, y, width+2, height,
991
10 + (int)(elapsed * 10.0) % 10);
1025
10+(int)(elapsed*10.0) % 10);
1028
else if (DETAIL ("entry-progress"))
1030
WidgetParameters params;
1031
EntryProgressParameters progress;
1033
murrine_set_widget_parameters (widget, style, state_type, ¶ms);
1035
progress.max_size_known = FALSE;
1036
progress.max_size.x = 0;
1037
progress.max_size.y = 0;
1038
progress.max_size.width = 0;
1039
progress.max_size.height = 0;
1040
progress.border.left = style->xthickness;
1041
progress.border.right = style->xthickness;
1042
progress.border.top = style->ythickness;
1043
progress.border.bottom = style->ythickness;
1045
if (MRN_IS_ENTRY (widget))
1048
/* Try to retrieve the style property. */
1049
gtk_widget_style_get (widget,
1050
"progress-border", &border,
1055
progress.border = *border;
1056
gtk_border_free (border);
1059
/* We got an entry, but well, we may not be drawing to
1060
* this particular widget ... it may not even be realized.
1061
* Also, we need to be drawing on a window obviously ... */
1062
if (GTK_WIDGET_REALIZED (widget) &&
1063
GDK_IS_WINDOW (window) &&
1064
gdk_window_is_visible (widget->window))
1066
/* Assumptions done by this code:
1067
* - GtkEntry has some nested windows.
1068
* - widget->window is the entries window
1069
* - widget->window is the size of the entry part
1071
* - only one layer of subwindows
1072
* These should be true with any GTK+ 2.x version.
1075
if (widget->window == window)
1077
progress.max_size_known = TRUE;
1078
gdk_drawable_get_size (widget->window,
1079
&progress.max_size.width,
1080
&progress.max_size.height);
1086
parent = gdk_window_get_parent (window);
1087
if (widget->window == parent)
1090
/* widget->window is the parent window
1091
* of the current one. This means we can
1092
* calculate the correct offsets. */
1093
gdk_window_get_position (window, &pos_x, &pos_y);
1094
progress.max_size.x = -pos_x;
1095
progress.max_size.y = -pos_y;
1097
progress.max_size_known = TRUE;
1098
gdk_drawable_get_size (widget->window,
1099
&progress.max_size.width,
1100
&progress.max_size.height);
1101
} /* Nothing we can do in this case ... */
1104
/* Now, one more thing needs to be done. If interior-focus
1105
* is off, then the entry may be a bit smaller. */
1106
if (progress.max_size_known && GTK_WIDGET_HAS_FOCUS (widget))
1108
gboolean interior_focus = TRUE;
1109
gint focus_line_width = 1;
1111
gtk_widget_style_get (widget,
1112
"interior-focus", &interior_focus,
1113
"focus-line-width", &focus_line_width,
1116
if (!interior_focus)
1118
progress.max_size.x += focus_line_width;
1119
progress.max_size.y += focus_line_width;
1120
progress.max_size.width -= 2*focus_line_width;
1121
progress.max_size.height -= 2*focus_line_width;
1125
if (progress.max_size_known)
1127
progress.max_size.x += progress.border.left;
1128
progress.max_size.y += progress.border.top;
1129
progress.max_size.width -= progress.border.left + progress.border.right;
1130
progress.max_size.height -= progress.border.top + progress.border.bottom;
1132
/* Now test that max_size.height == height, if that
1133
* fails, something has gone wrong ... so then throw away
1134
* the max_size information. */
1135
if (progress.max_size.height != height)
1137
progress.max_size_known = FALSE;
1138
progress.max_size.x = 0;
1139
progress.max_size.y = 0;
1140
progress.max_size.width = 0;
1141
progress.max_size.height = 0;
1147
STYLE_FUNCTION(draw_entry_progress) (cr, colors, ¶ms, &progress,
1148
x, y, width, height);
994
1150
else if (DETAIL ("hscale") || DETAIL ("vscale"))
996
1152
WidgetParameters params;
1157
1305
else if (DETAIL ("toolbar") || DETAIL ("handlebox_bin") || DETAIL ("dockitem_bin"))
1159
/* Only draw the shadows on horizontal toolbars */
1160
if (shadow_type != GTK_SHADOW_NONE && height < 2*width )
1307
WidgetParameters params;
1308
ToolbarParameters toolbar;
1309
gboolean horizontal;
1311
murrine_set_widget_parameters (widget, style, state_type, ¶ms);
1313
murrine_set_toolbar_parameters (&toolbar, widget, window, x, y);
1314
toolbar.style = murrine_style->toolbarstyle;
1316
if ((DETAIL ("handlebox_bin") || DETAIL ("dockitem_bin")) && MRN_IS_BIN (widget))
1162
WidgetParameters params;
1163
ToolbarParameters toolbar;
1164
gboolean horizontal;
1166
murrine_set_widget_parameters (widget, style, state_type, ¶ms);
1168
murrine_set_toolbar_parameters (&toolbar, widget, window, x, y);
1169
toolbar.style = murrine_style->toolbarstyle;
1170
if ((DETAIL ("handlebox_bin") || DETAIL ("dockitem_bin")) && MRN_IS_BIN (widget))
1172
GtkWidget* child = gtk_bin_get_child ((GtkBin*) widget);
1173
/* This is to draw the correct shadow on the handlebox.
1174
* We need to draw it here, as otherwise the handle will not get the
1176
if (MRN_IS_TOOLBAR (child))
1177
gtk_widget_style_get (child, "shadow-type", &shadow_type, NULL);
1180
horizontal = height < 2*width;
1181
/* This is not that great. Ideally we would have a nice vertical toolbar. */
1182
if ((shadow_type != GTK_SHADOW_NONE) && horizontal)
1183
STYLE_FUNCTION(draw_toolbar) (cr, colors, ¶ms, &toolbar, x, y, width, height);
1318
GtkWidget* child = gtk_bin_get_child ((GtkBin*) widget);
1319
/* This is to draw the correct shadow on the handlebox.
1320
* We need to draw it here, as otherwise the handle will not get the
1322
if (MRN_IS_TOOLBAR (child))
1323
gtk_widget_style_get (child, "shadow-type", &shadow_type, NULL);
1326
horizontal = height < 2*width;
1328
/* This is not that great. Ideally we would have a nice vertical toolbar. */
1329
if ((shadow_type != GTK_SHADOW_NONE) && horizontal)
1330
STYLE_FUNCTION(draw_toolbar) (cr, colors, ¶ms, &toolbar, x, y, width, height);
1186
1332
else if (DETAIL ("trough"))
1665
1811
murrine_style->roundness = 0;
1668
murrine_style->roundness = MURRINE_RC_STYLE (rc_style)->roundness;
1814
murrine_style->roundness = MURRINE_RC_STYLE (rc_style)->roundness;
1815
murrine_style->animation = MURRINE_RC_STYLE (rc_style)->animation;
1816
murrine_style->colorize_scrollbar = MURRINE_RC_STYLE (rc_style)->colorize_scrollbar;
1817
murrine_style->has_focus_color = MURRINE_RC_STYLE (rc_style)->has_focus_color;
1818
murrine_style->glowstyle = MURRINE_RC_STYLE (rc_style)->glowstyle;
1819
murrine_style->gradients = MURRINE_RC_STYLE (rc_style)->gradients;
1820
murrine_style->has_scrollbar_color = MURRINE_RC_STYLE (rc_style)->has_scrollbar_color;
1821
murrine_style->lightborderstyle = MURRINE_RC_STYLE (rc_style)->lightborderstyle;
1822
murrine_style->listviewheaderstyle = MURRINE_RC_STYLE (rc_style)->listviewheaderstyle;
1823
murrine_style->listviewstyle = MURRINE_RC_STYLE (rc_style)->listviewstyle;
1669
1824
murrine_style->menubarstyle = MURRINE_RC_STYLE (rc_style)->menubarstyle;
1670
1825
murrine_style->menubaritemstyle = MURRINE_RC_STYLE (rc_style)->menubaritemstyle;
1826
murrine_style->menuitemstyle = MURRINE_RC_STYLE (rc_style)->menuitemstyle;
1671
1827
murrine_style->menustyle = MURRINE_RC_STYLE (rc_style)->menustyle;
1672
murrine_style->menuitemstyle = MURRINE_RC_STYLE (rc_style)->menuitemstyle;
1673
murrine_style->lightborderstyle = MURRINE_RC_STYLE (rc_style)->lightborderstyle;
1674
murrine_style->listviewheaderstyle = MURRINE_RC_STYLE (rc_style)->listviewheaderstyle;
1675
murrine_style->listviewstyle = MURRINE_RC_STYLE (rc_style)->listviewstyle;
1828
murrine_style->progressbarstyle = MURRINE_RC_STYLE (rc_style)->progressbarstyle;
1829
murrine_style->reliefstyle = MURRINE_RC_STYLE (rc_style)->reliefstyle;
1830
murrine_style->rgba = MURRINE_RC_STYLE (rc_style)->rgba;
1831
murrine_style->scrollbarstyle = MURRINE_RC_STYLE (rc_style)->scrollbarstyle;
1676
1832
murrine_style->sliderstyle = MURRINE_RC_STYLE (rc_style)->sliderstyle;
1677
murrine_style->scrollbarstyle = MURRINE_RC_STYLE (rc_style)->scrollbarstyle;
1678
murrine_style->has_scrollbar_color = MURRINE_RC_STYLE (rc_style)->has_scrollbar_color;
1679
1833
murrine_style->stepperstyle = MURRINE_RC_STYLE (rc_style)->stepperstyle;
1680
1834
murrine_style->toolbarstyle = MURRINE_RC_STYLE (rc_style)->toolbarstyle;
1681
murrine_style->animation = MURRINE_RC_STYLE (rc_style)->animation;
1682
murrine_style->gradients = MURRINE_RC_STYLE (rc_style)->gradients;
1683
murrine_style->colorize_scrollbar = MURRINE_RC_STYLE (rc_style)->colorize_scrollbar;
1684
murrine_style->rgba = MURRINE_RC_STYLE (rc_style)->rgba;
1685
murrine_style->reliefstyle = MURRINE_RC_STYLE (rc_style)->reliefstyle;
1836
if (murrine_style->has_focus_color)
1837
murrine_style->focus_color = MURRINE_RC_STYLE (rc_style)->focus_color;
1687
1838
if (murrine_style->has_scrollbar_color)
1688
1839
murrine_style->scrollbar_color = MURRINE_RC_STYLE (rc_style)->scrollbar_color;
1690
g_assert ((MURRINE_RC_STYLE (rc_style)->style >= 0) &&
1691
(MURRINE_RC_STYLE (rc_style)->style < MRN_NUM_STYLES));
1692
murrine_style->style = MURRINE_RC_STYLE (rc_style)->style;
1841
g_assert ((MURRINE_RC_STYLE (rc_style)->profile >= 0) &&
1842
(MURRINE_RC_STYLE (rc_style)->profile < MRN_NUM_PROFILES));
1843
murrine_style->profile = MURRINE_RC_STYLE (rc_style)->profile;
1694
switch (murrine_style->style)
1845
switch (murrine_style->profile)
1696
case (MRN_STYLE_NODOKA):
1697
murrine_style->highlight_ratio = 1.0;
1847
case (MRN_PROFILE_NODOKA):
1848
murrine_style->highlight_shade = 1.0;
1698
1849
murrine_style->gradients = TRUE;
1699
1850
murrine_style->gradient_shades[0] = 1.1;
1700
1851
murrine_style->gradient_shades[1] = 1.0;
1840
1997
cr = gdk_cairo_create (window);
1842
gboolean free_dash_list = FALSE;
1843
gint line_width = 1;
1844
gint8 *dash_list = "\1\1";
1999
murrine_set_widget_parameters (widget, style, state_type, ¶ms);
2002
if (widget && widget->parent && MRN_IS_COMBO_BOX_ENTRY(widget->parent))
2005
params.corners = MRN_CORNER_TOPRIGHT | MRN_CORNER_BOTTOMRIGHT;
2007
params.corners = MRN_CORNER_TOPLEFT | MRN_CORNER_BOTTOMLEFT;
2009
if (params.xthickness > 2)
2017
focus.has_color = FALSE;
2018
focus.interior = FALSE;
2019
focus.line_width = 1;
1848
2025
gtk_widget_style_get (widget,
1849
"focus-line-width", &line_width,
1850
"focus-line-pattern",
1851
(gchar *) & dash_list, NULL);
1853
free_dash_list = TRUE;
1856
if (detail && !strcmp (detail, "add-mode"))
1862
free_dash_list = FALSE;
1865
if (detail && !strcmp (detail, "colorwheel_light"))
1866
cairo_set_source_rgb (cr, 0., 0., 0.);
1867
else if (detail && !strcmp (detail, "colorwheel_dark"))
1868
cairo_set_source_rgb (cr, 1., 1., 1.);
1870
gdk_cairo_set_source_color_alpha (cr, &style->fg[state_type], 0.7);
1872
cairo_set_line_width (cr, line_width);
1876
gint n_dashes = strlen (dash_list);
1877
gdouble *dashes = g_new (gdouble, n_dashes);
1878
gdouble total_length = 0;
1879
gdouble dash_offset;
1882
for (i = 0; i < n_dashes; i++)
1884
dashes[i] = dash_list[i];
1885
total_length += dash_list[i];
1888
dash_offset = -line_width / 2.;
1889
while (dash_offset < 0)
1890
dash_offset += total_length;
1892
cairo_set_dash (cr, dashes, n_dashes, dash_offset);
1898
gdk_cairo_rectangle (cr, area);
1902
cairo_rectangle (cr, x + line_width / 2., y + line_width / 2., width - line_width, height - line_width);
2026
"focus-line-width", &focus.line_width,
2027
"focus-line-pattern", &dash_list,
2028
"focus-padding", &focus.padding,
2029
"interior-focus", &focus.interior,
2033
focus.dash_list = dash_list;
2035
focus.dash_list = (guint8*) g_strdup ("\1\1");
2038
if (DETAIL("button"))
2040
if (widget && widget->parent &&
2041
(MRN_IS_TREE_VIEW (widget->parent) ||
2042
MRN_IS_CLIST (widget->parent)))
2044
focus.type = MRN_FOCUS_TREEVIEW_HEADER;
2048
GtkReliefStyle relief = GTK_RELIEF_NORMAL;
2049
/* Check for the shadow type. */
2050
if (widget && GTK_IS_BUTTON (widget))
2051
g_object_get (G_OBJECT (widget), "relief", &relief, NULL);
2053
if (relief == GTK_RELIEF_NORMAL)
2054
focus.type = MRN_FOCUS_BUTTON;
2056
focus.type = MRN_FOCUS_BUTTON_FLAT;
2058
/* Workaround for the panel. */
2059
if (murrine_object_is_a (G_OBJECT (widget), "ButtonWidget"))
2060
focus.type = MRN_FOCUS_LABEL;
2063
else if (detail && g_str_has_prefix (detail, "treeview"))
2065
/* Focus in a treeview, and that means a lot of different detail strings. */
2066
if (g_str_has_prefix (detail, "treeview-drop-indicator"))
2067
focus.type = MRN_FOCUS_TREEVIEW_DND;
2069
focus.type = MRN_FOCUS_TREEVIEW_ROW;
2071
if (g_str_has_suffix (detail, "left"))
2073
focus.continue_side = MRN_CONT_RIGHT;
2075
else if (g_str_has_suffix (detail, "right"))
2077
focus.continue_side = MRN_CONT_LEFT;
2079
else if (g_str_has_suffix (detail, "middle"))
2081
focus.continue_side = MRN_CONT_LEFT | MRN_CONT_RIGHT;
2085
/* This may either mean no continuation, or unknown ...
2086
* if it is unknown we assume it continues on both sides */
2087
gboolean row_ending_details = FALSE;
2089
/* Try to get the style property. */
2091
gtk_widget_style_get (widget,
2092
"row-ending-details", &row_ending_details,
2095
if (row_ending_details)
2096
focus.continue_side = MRN_CONT_NONE;
2098
focus.continue_side = MRN_CONT_LEFT | MRN_CONT_RIGHT;
2102
else if (detail && g_str_has_prefix (detail, "trough") && MRN_IS_SCALE (widget))
2104
focus.type = MRN_FOCUS_SCALE;
2106
else if (DETAIL("tab"))
2108
focus.type = MRN_FOCUS_TAB;
2110
else if (detail && g_str_has_prefix (detail, "colorwheel"))
2112
if (DETAIL ("colorwheel_dark"))
2113
focus.type = MRN_FOCUS_COLOR_WHEEL_DARK;
2115
focus.type = MRN_FOCUS_COLOR_WHEEL_LIGHT;
2117
else if (DETAIL("checkbutton") || DETAIL("radiobutton") || DETAIL("expander"))
2119
focus.type = MRN_FOCUS_LABEL; /* Let's call it "LABEL" :) */
2121
else if (widget && MRN_IS_TREE_VIEW (widget))
2123
focus.type = MRN_FOCUS_TREEVIEW; /* Treeview without content is focused. */
2125
else if (DETAIL("icon_view"))
2127
focus.type = MRN_FOCUS_ICONVIEW;
2131
focus.type = MRN_FOCUS_UNKNOWN; /* Custom widgets (Beagle) and something unknown */
2135
if (murrine_style->has_focus_color)
2137
murrine_gdk_color_to_rgb (&murrine_style->focus_color, &focus.color.r,
2140
focus.has_color = TRUE;
2143
focus.color = colors->bg[GTK_STATE_SELECTED];
2145
STYLE_FUNCTION(draw_focus) (cr, colors, ¶ms, &focus, x, y, width, height);
2147
g_free (focus.dash_list);
1904
2149
cairo_destroy (cr);
1911
murrine_style_copy (GtkStyle * style, GtkStyle * src)
2153
murrine_style_copy (GtkStyle *style, GtkStyle *src)
1913
MurrineStyle * mrn_style = MURRINE_STYLE (style);
1914
MurrineStyle * mrn_src = MURRINE_STYLE (src);
2155
MurrineStyle *mrn_style = MURRINE_STYLE (style);
2156
MurrineStyle *mrn_src = MURRINE_STYLE (src);
1916
2158
mrn_style->animation = mrn_src->animation;
1917
2159
mrn_style->colorize_scrollbar = mrn_src->colorize_scrollbar;
1918
2160
mrn_style->colors = mrn_src->colors;
2161
mrn_style->focus_color = mrn_src->focus_color;
1919
2162
mrn_style->glazestyle = mrn_src->glazestyle;
2163
mrn_style->glow_shade = mrn_src->glow_shade;
2164
mrn_style->glowstyle = mrn_src->glowstyle;
1920
2165
mrn_style->gradient_shades[0] = mrn_src->gradient_shades[0];
1921
2166
mrn_style->gradient_shades[1] = mrn_src->gradient_shades[1];
1922
2167
mrn_style->gradient_shades[2] = mrn_src->gradient_shades[2];
1923
2168
mrn_style->gradient_shades[3] = mrn_src->gradient_shades[3];
1924
2169
mrn_style->gradients = mrn_src->gradients;
2170
mrn_style->has_focus_color = mrn_src->has_focus_color;
1925
2171
mrn_style->has_scrollbar_color = mrn_src->has_scrollbar_color;
1926
mrn_style->highlight_ratio = mrn_src->highlight_ratio;
1927
mrn_style->lightborder_ratio = mrn_src->lightborder_ratio;
2172
mrn_style->highlight_shade = mrn_src->highlight_shade;
2173
mrn_style->lightborder_shade = mrn_src->lightborder_shade;
1928
2174
mrn_style->lightborderstyle = mrn_src->lightborderstyle;
1929
2175
mrn_style->listviewheaderstyle = mrn_src->listviewheaderstyle;
1930
2176
mrn_style->listviewstyle = mrn_src->listviewstyle;