~osomon/unity-2d/metacity-respect-launcher

« back to all changes in this revision

Viewing changes to src/ui/theme.c

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2011-01-19 13:20:50 UTC
  • Revision ID: james.westby@ubuntu.com-20110119132050-haxwdq0d7o8nlnc4
Tags: 1:2.30.3-0ubuntu3
* debian/patches/15_show_maximized_titlebars.patch:
  needed to make decorations work properly with the new unity-2d
* debian/control:
  add Breaks: entry to libmetacity-private0 for the current compiz version,
  since we need a compiz rebuild for the new ABI

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
                               int                   *top_height,
407
407
                               int                   *bottom_height,
408
408
                               int                   *left_width,
409
 
                               int                   *right_width)
 
409
                               int                   *right_width,
 
410
                               MetaTheme             *theme)
410
411
{
411
412
  int buttons_height, title_height;
412
413
  
442
443
        *bottom_height = layout->bottom_height;
443
444
    }
444
445
 
 
446
  if ((flags & META_FRAME_MAXIMIZED) && !theme->show_maximized_titlebars)
 
447
    *top_height = 0;
 
448
 
445
449
  if (flags & META_FRAME_FULLSCREEN)
446
450
    {
447
451
      if (top_height)
614
618
                                 &fgeom->top_height,
615
619
                                 &fgeom->bottom_height,
616
620
                                 &fgeom->left_width,
617
 
                                 &fgeom->right_width);
 
621
                                 &fgeom->right_width,
 
622
                                 theme);
618
623
 
619
624
  width = client_width + fgeom->left_width + fgeom->right_width;
620
625
 
4926
4931
  theme->quark_icon_height = g_quark_from_static_string ("icon_height");
4927
4932
  theme->quark_title_width = g_quark_from_static_string ("title_width");
4928
4933
  theme->quark_title_height = g_quark_from_static_string ("title_height");
 
4934
 
 
4935
  theme->show_maximized_titlebars = TRUE;
 
4936
 
4929
4937
  return theme;
4930
4938
}
4931
4939
 
5350
5358
                                 text_height,
5351
5359
                                 flags,
5352
5360
                                 top_height, bottom_height,
5353
 
                                 left_width, right_width);
 
5361
                                 left_width, right_width,
 
5362
                                 theme);
5354
5363
}
5355
5364
 
5356
5365
void
6714
6723
      return 1; 
6715
6724
    }
6716
6725
}
 
6726
 
 
6727
void
 
6728
meta_theme_set_show_maximized_titlebars (MetaTheme *theme, gboolean show)
 
6729
{
 
6730
  theme->show_maximized_titlebars = show;
 
6731
}