~smspillaz/compiz/compiz.animationaddon-returns

« back to all changes in this revision

Viewing changes to gtk/window-decorator/gwd-theme.c

  • Committer: smspillaz at gmail
  • Date: 2016-06-22 01:22:45 UTC
  • mfrom: (4011.1.41 compiz)
  • Revision ID: smspillaz@gmail.com-20160622012245-vxptdof822vwss3w
MergeĀ lp:compiz

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
    return FALSE;
176
176
}
177
177
 
178
 
static gfloat
179
 
gwd_theme_real_get_title_scale (GWDTheme      *theme,
180
 
                                decor_frame_t *frame)
 
178
static void
 
179
gwd_theme_real_update_titlebar_font_size (GWDTheme             *theme,
 
180
                                          decor_frame_t        *frame,
 
181
                                          PangoFontDescription *titlebar_font)
181
182
{
182
 
    return 1.0;
183
183
}
184
184
 
185
185
static void
199
199
    theme_class->update_border_extents = gwd_theme_real_update_border_extents;
200
200
    theme_class->get_event_window_position = gwd_theme_real_get_event_window_position;
201
201
    theme_class->get_button_position = gwd_theme_real_get_button_position;
202
 
    theme_class->get_title_scale = gwd_theme_real_get_title_scale;
 
202
    theme_class->update_titlebar_font_size = gwd_theme_real_update_titlebar_font_size;
203
203
 
204
204
    properties[PROP_SETTINGS] =
205
205
        g_param_spec_object ("settings", "GWDSettings", "GWDSettings",
328
328
                                                             x, y, w, h);
329
329
}
330
330
 
331
 
gfloat
332
 
gwd_theme_get_title_scale (GWDTheme      *theme,
333
 
                           decor_frame_t *frame)
 
331
void
 
332
gwd_theme_update_titlebar_font_size (GWDTheme             *theme,
 
333
                                     decor_frame_t        *frame,
 
334
                                     PangoFontDescription *titlebar_font)
334
335
{
335
 
    return GWD_THEME_GET_CLASS (theme)->get_title_scale (theme, frame);
 
336
    GWD_THEME_GET_CLASS (theme)->update_titlebar_font_size (theme, frame,
 
337
                                                            titlebar_font);
336
338
}