summaryrefslogtreecommitdiff
path: root/src/ui
AgeCommit message (Collapse)AuthorFilesLines
2008-11-12 Clean up #includes according to the GNOME Goal.Thomas James Alexander Thurman10-18/+11
Closes #560449. Patch is 122467. * src/core/place.c: * src/ui/draw-workspace.h: * src/ui/gradient.h: * src/ui/metaaccellabel.c: * src/ui/metaaccellabel.h: * src/ui/preview-widget.c: * src/ui/preview-widget.h: * src/ui/resizepopup.c: * src/ui/theme.c: * src/ui/theme.h: * src/ui/themewidget.h: svn path=/trunk/; revision=4017
2008-11-02Fix build by readding accidentally removed '}'.Olav Vitters1-0/+1
* src/ui/theme-parser.c: Fix build by readding accidentally removed '}'. svn path=/trunk/; revision=4010
2008-10-29variable names in messages should be double-quoted. Closes #558309.Thomas James Alexander Thurman1-4/+3
* src/ui/theme-parser.c: variable names in messages should be double-quoted. Closes #558309. svn path=/trunk/; revision=4009
2008-10-27Fix some crashes with the new GDM 2.24. Closes #558058.Brian Cameron1-1/+1
2008-10-27 Brian Cameron <brian.cameron@sun.com> Fix some crashes with the new GDM 2.24. Closes #558058. * src/ui/ui.c (meta_ui_parse_modifier): another null check * src/core/prefs.c (titlebar_handler, button_layout_handler): more null checks. svn path=/trunk/; revision=4003
2008-10-15Since Patrick Niklaus's checkin of 2008-08-14 dealt with windows with noThomas Thurman3-51/+4
2008-10-15 Thomas Thurman <tthurman@gnome.org> Since Patrick Niklaus's checkin of 2008-08-14 dealt with windows with no icons not using fallback icons, we don't need fallback icons. * src/ui/theme.h: remove fallback icons from struct. * src/core/iconcache.c (meta_read_icons): don't look for fallbacks. * src/*/ui.[ch] (meta_ui_get_fallback_icons): removed * src/ui/theme-parser.c (typedef, parse_toplevel_element): don't parse fallback specifications. svn path=/trunk/; revision=3958
2008-10-12An attempt to make life a little easier for our beloved translators; thisThomas Thurman3-683/+117
2008-10-12 Thomas Thurman <tthurman@gnome.org> An attempt to make life a little easier for our beloved translators; this has the same behaviour as before, but removes over thirty translation strings. * src/core/session.c (start_element_handler): all "attribute not found on element" strings are identical * src/ui/theme-parser.c (locate_attributes): allow attribute names to be preceded with "!" (in the code) to show they're required. (parse_aspect_ratio, parse_distance, parse_toplevel_element, parse_style_element, parse_gradient_element, static, parse_border, parse_style_set_element, parse_draw_op_element): use the new "!" prefix for locate_attributes(), or in some cases just the identical constant, for generating this error. * src/ui/theme.c (check_state, meta_theme_validate): add translator comments * src/ui/resizepopup.c (update_size_window): add translator comments svn path=/trunk/; revision=3949
2008-08-14Icons for windows are taken from the desktop theme, not from the MetacityPatrick Niklaus2-42/+69
2008-08-14 Patrick Niklaus <marex@compiz-fusion.org> Icons for windows are taken from the desktop theme, not from the Metacity theme or from the fallback icon that Metacity provided. Closes #524343. * src/ui/ui.c: Use GtkIconTheme to load the default window icon. Assumes the existence of an icon called "window", otherwise falls back to "gtk-missing-image". Fixes #524343. * src/ui/preview-widget: See above. * src/include/common.h: Add META_DEFAULT_ICON_NAME. * src/Makefile.am: Remove default_icon.png from inlinepixbufs.h. * src/default_icon.png: Removed. svn path=/trunk/; revision=3812
2008-06-30display the theme name in the title bar. Closes #430198.Thomas Thurman1-0/+19
2008-06-30 Thomas Thurman <tthurman@gnome.org> * src/ui/theme-viewer.c (main): display the theme name in the title bar. Closes #430198. svn path=/trunk/; revision=3776
2008-05-19src/include/frame.h src/include/display.h src/include/xprops.hIain Holmes1-1/+1
2008-05-19 Iain Holmes <iain@gnome.org> * src/include/frame.h * src/include/display.h * src/include/xprops.h * src/include/compositor.h * src/include/types.h * src/include/window.h * src/include/errors.h * src/include/screen.h: New basic public API for compositor. * src/compositor/*: Separate the compositor out into its own separate directory and set it up for backends. Initial XRender backend. * src/core/compositor.[ch]: Remove * src/core/frame.h * src/core/screen.h * src/core/display.h * src/core/window.h: Rename to -private.h so as not to clash with the new files in include * src/core/delete.c * src/core/workspace.h * src/core/stack.[ch] * src/core/keybindings.[ch] * src/core/errors.c * src/core/effects.[ch] * src/core/core.c * src/core/group.h * src/core/edge-resistance.[ch] * src/core/window-props.[ch] * src/core/constraints.h * src/core/bell.[ch] * src/core/iconcache.h * src/core/session.[ch] * src/core/main.c * src/core/place.h * src/core/xprops.c * src/ui/tabpopup.c: Use the new -private headers * src/core/display.c * src/core/frame.c * src/core/window.c * src/core/screen.c: Add the API functions required by the compositor * src/Makefile.am: Relocate the new files svn path=/trunk/; revision=3715
2008-05-13remove color_set flag remove check of color_set flag before rendering (weRobert Escriva2-20/+8
2008-05-13 Robert Escriva <me@robescriva.com> * src/ui/theme.h (struct): remove color_set flag * src/ui/theme.c (meta_color_spec_render, meta_color_spec_new_from_string): remove check of color_set flag before rendering (we always do it now). Closes #511826. svn path=/trunk/; revision=3708
2008-05-11Remove src/ui/color.[ch] since they are not used anywhereElijah Newren2-427/+0
svn path=/trunk/; revision=3706
2008-04-29documentationThomas Thurman2-2/+55
2008-04-29 Thomas Thurman <tthurman@gnome.org> * src/ui/fixedtip.[ch]: documentation svn path=/trunk/; revision=3697
2008-03-29prevent null dereference if the theme was invalid, which caused crashes inThomas Thurman1-8/+13
2008-03-29 Thomas Thurman <tthurman@gnome.org> * src/ui/preview-widget.c (meta_preview_get_clip_region): prevent null dereference if the theme was invalid, which caused crashes in gnome-appearance-properties. No GNOME bug number, but I believe this is a fix for Launchpad bug #199402 and its many duplicates. svn path=/trunk/; revision=3668
2008-03-21Workspaces whose name is the standard name plus a non-empty string areThomas Thurman1-2/+7
2008-03-21 Thomas Thurman <tthurman@gnome.org> * src/ui/menu.c (activate_cb, get_workspace_name_with_accel): Workspaces whose name is the standard name plus a non-empty string are handled correctly in menus. Closes #453678. svn path=/trunk/; revision=3657
2008-03-03Add ability to vertically and horizontally maximise using the mouse, byCosimo Cecchi1-0/+26
2008-03-03 Cosimo Cecchi <anarki@lilik.it> Add ability to vertically and horizontally maximise using the mouse, by clicking the titlebar in various ways. A very similar patch was received from Jason Ribero. Thanks also go to Tony Houghton and Carlo Wood, who both submitted patches which solved this differently. Closes #358674. * src/include/common.h (MetaActionTitlebar): new values for the new actions * src/core/core.c (meta_core_maximize_{vertic|horizont}ally): new functions. * src/ui/frames.c (meta_frame_titlebar_event): handle the new action values * src/core/window.h: new macros (for regularity, not really necessary) * src/core/prefs.c (symtab_titlebar_action): new string representations of the action values * src/metacity.schemas.in: documentation svn path=/trunk/; revision=3619
2008-02-29Add support for "spacer" as a button type which adds some empty space.Andrea Del Signore1-4/+38
2008-02-29 Andrea Del Signore <sejerpz@tin.it> Add support for "spacer" as a button type which adds some empty space. Closes #509165. * src/ui/theme.c (meta_frame_layout_calc_geometry), src/include/common.h (MetaButtonLayout), src/core/prefs.c (update_button_layout, button_layout_equal), src/metacity.schemas.in: add spacer support svn path=/trunk/; revision=3615
2008-02-27Lots of tiny fixes to make sure we compile with "gcc -ansi -Werror".Thomas Thurman1-1/+5
2008-02-27 Thomas Thurman <tthurman@gnome.org> Lots of tiny fixes to make sure we compile with "gcc -ansi -Werror". svn path=/trunk/; revision=3606
2008-02-25allow users of the preview widget to get a mask for windows in the correctThomas Wood2-0/+112
2008-02-25 Thomas Wood <thos@gnome.org> * src/ui/preview-widget.[ch] (meta_preview_get_clip_region): allow users of the preview widget to get a mask for windows in the correct shape for the current theme. svn path=/trunk/; revision=3596
2008-02-04remove workaround for a problem in GTK 1.3.9(!) which was causingThomas Thurman1-5/+0
2008-02-04 Thomas Thurman <tthurman@gnome.org> * configure.in, src/ui/ui.c: remove workaround for a problem in GTK 1.3.9(!) which was causing problems. Closes #513737. svn path=/trunk/; revision=3551
2008-01-22more commenting.Thomas Thurman2-21/+134
2008-01-21 Thomas Thurman <tthurman@gnome.org> * src/ui/theme.[ch]: more commenting. svn path=/trunk/; revision=3524
2008-01-18some more commenting.Thomas Thurman2-3/+40
2008-01-18 Thomas Thurman <tthurman@gnome.org> * src/ui/theme.[ch]: some more commenting. svn path=/trunk/; revision=3523
2008-01-17Correct comment. Correct comment. Much commenting; #ifdeffed-out debugThomas Thurman2-25/+211
2008-01-16 Thomas Thurman <tthurman@gnome.org> * src/core/bell.c: Correct comment. * src/core/main.c: Correct comment. * src/core/theme.c: Much commenting; #ifdeffed-out debug code removed. * src/core/theme.h: Much commenting. svn path=/trunk/; revision=3522
2007-12-19fix a third warning about %d and long intHavoc Pennington1-2/+12
2007-12-19 Havoc Pennington <hp@redhat.com> * src/core/display.c (meta_display_open): fix a third warning about %d and long int * src/core/delete.c (io_from_ping_dialog): fix another warning about long int to %d * src/core/compositor.c (meta_compositor_new): fix a warning about long int to %d * src/core/iconcache.c (meta_read_icons): use meta_ui_get_fallback_icons() instead of incorrectly including theme.h * src/ui/ui.c (meta_ui_get_fallback_icons): new function svn path=/trunk/; revision=3492
2007-12-19sort source files into these directories according to which part of the WMHavoc Pennington28-0/+22890
2007-12-19 Havoc Pennington <hp@redhat.com> * src/ui, src/core, src/include: sort source files into these directories according to which part of the WM they are supposed to be in. In an eventual plan, we should also create src/compositor/render, src/compositor/fallback and move some of the compositor stuff into that. * autogen.sh: require a newer automake, so we don't have to use a recursive build * src/ui/tabpopup.c: put in a hack to make the build temporarily work, want to commit the large rearrangement before fixing this not to include workspace.h or frame.h * src/core/iconcache.c (meta_read_icons): temporarily break this to get the build to work, want to commit the large rearrangement before fixing this file not to include theme.h svn path=/trunk/; revision=3491