summaryrefslogtreecommitdiff
path: root/src/tools
Commit message (Collapse)AuthorAgeFilesLines
* Patch from Kjartan Maraas to fix a lot of tiny issues (unused variableElijah Newren2006-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-20 Elijah Newren <newren gmail com> * src/async-getprop.c: * src/common.h: * src/display.c: * src/eggaccelerators.c: * src/frames.c: * src/gradient.c: * src/iconcache.c: * src/keybindings.c: * src/metaaccellabel.c: * src/place.c: * src/prefs.c: * src/preview-widget.c: * src/screen.c: * src/session.c: * src/stack.c: * src/tabpopup.c: * src/theme-viewer.c: * src/theme.c: * src/window-props.c: * src/window.c: * src/workspace.c: * src/tools/metacity-window-demo.c: * src/wm-tester/test-gravity.c: * src/wm-tester/test-resizing.c: * src/wm-tester/test-size-hints.c: Patch from Kjartan Maraas to fix a lot of tiny issues (unused variable removal, making unused variables used again, correction of types passed/declared for printf arguments, removal of unneeded breaks and returns, dead code removal, dead code revival, renaming to prevent shadowed variables, declaring unexported functions as static) spotted by the intel compiler. #321439
* Remove deprecated capplet from GNOME 2.0Alex Duggan2004-12-135-403/+3
| | | | | | | | | | | | | | | | 2004-12-07 Alex Duggan <aldug@astrolinux.com> * configure.in: * src/tools/Makefile.am: Remove deprecated capplet from GNOME 2.0 * src/tools/metacity-properties.c: * src/tools/metacity-properties.desktop.in: * src/tools/metacity-properties.glade: * src/tools/metacity-properties.png: Removed from cvs
* A load of fixes of issues reported by sparse. Closes bug #152849Kjartan Maraas2004-09-161-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-09-17 Kjartan Maraas <kmaraas@gnome.org> * src/bell.c: (meta_bell_flash_screen): * src/compositor.c: * src/effects.c: (meta_effects_draw_box_animation): * src/fixedtip.c: (meta_fixed_tip_show): * src/frame.c: (find_argb_visual): * src/frames.c: (unsigned_long_hash), (meta_frames_manage_window), (meta_frames_apply_shapes): * src/iconcache.c: (find_largest_sizes), (find_best_size): * src/keybindings.c: (meta_spawn_command_line_async_on_screen): * src/main.c: (main): * src/menu.c: (meta_window_menu_new): * src/prefs.c: (meta_prefs_get_visual_bell), (meta_prefs_bell_is_audible), (meta_prefs_get_visual_bell_type), (meta_prefs_get_action_double_click_titlebar), (meta_prefs_get_auto_raise), (meta_prefs_get_auto_raise_delay), (meta_prefs_get_reduced_resources): * src/screen.c: (meta_create_offscreen_window): * src/tabpopup.c: (meta_ui_tab_popup_get_selected): * src/theme-parser.c: (meta_theme_load): * src/theme.c: (meta_gtk_widget_get_font_desc): * src/tools/metacity-mag.c: (mouse_press), (begin_area_grab): * src/util.c: (meta_unsigned_long_hash): A load of fixes of issues reported by sparse. Closes bug #152849
* call bind_textdomain_codeset(), fix from Yukihiro Nakai bug #121743Havoc Pennington2003-09-301-0/+2
| | | | | | | 2003-09-30 Havoc Pennington <hp@redhat.com> * src/tools/metacity-message.c (main): call bind_textdomain_codeset(), fix from Yukihiro Nakai bug #121743
* fix markup being ignored when a window title has a forbidden character inBastien Nocera2003-08-081-0/+1
| | | | | | | | | 2003-08-08 Bastien Nocera <hadess@hadess.net> * src/metacity-dialog.c: (kill_window_question), (warn_about_no_sm_support): fix markup being ignored when a window title has a forbidden character in it (eg. "Send & Receive") * src/tools/metacity-window-demo.c: fix warning
* Update window shaking loose so that the window is moved to the pointer andRob Adams2003-07-281-30/+70
| | | | | | | | | | | | | | | | | | | | | | 2003-07-27 Rob Adams <robadams@ucla.edu> * src/window.c (update_move): Update window shaking loose so that the window is moved to the pointer and certain drag state is properly restored once windows "reattach". Fix for #115000 based on the patch by Jurg Billeter. * src/screen.c (meta_screen_resize): Invalidate work areas after an xrandr screen size update. Fix for #117230. * src/stack.c (window_is_fullscreen_size): Check the bottom corner of the window in addition to the top corner. Fix for #118194. * src/constraints.c (meta_window_constrain): Support aspect ratio hints in the new constraints code. Fix for #113798. * src/tools/metacity-window-demo.c (toggle_aspect_ratio): toggle the aspect ratio hints to force a 16:9 aspect ratio. (do_appwindow): add a button to toggle aspect ratio.
* Update constraints code to support the new _NET_WM_STRUT_PARTIAL EWMHRob Adams2003-06-261-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-06-10 Rob Adams <robadams@ucla.edu> Update constraints code to support the new _NET_WM_STRUT_PARTIAL EWMH draft specification. See #86682. Also, fix a bug involving work area invalidation on metacity startup. Fix for #108497. Finally, some minor fixes for full screen windows. * src/window.h: Add new MetaStruts structure to store strut rects for a window. Remove has_struts and do_not_cover flag, and support new MetaStruts instead of the four ints. * src/window.c (meta_window_new): change initialization to work with new struts. Also, move meta_window_update_struts call to after the workspaces are initialized to fix #108497. Remove do_not_cover and related code. (process_property_notify): add strut_partial (update_struts): change function name to meta_window_update_struts and expose in external MetaWindow API. Support partial width struts and the new strut rects. * src/workspace.h: add new GSLists containing pointers to all relevant struts for this workspace. * src/workspace.c (meta_workspace_new): initialize the list of strut rects for this workspace. (meta_workspace_free): free the strut rect lists (ensure_work_areas_validated): support new struts and new strut rect lists. Unleash the per-xinerama work areas. * src/constraints.c (get_outermost_onscreen_positions): Use the current window position along with the new per-workspace strut rects to compute the constraints that apply to a particular window. (constraint_hint_applies_func): don't do hints constraints on fullscreen windows (update_position_limits): for maximized windows use the work areas to set the position limits; for other windows rely on the struts constraints to be computed later in get_outermost_onscreen_positions (meta_window_constrain): don't apply aspect ratio hints to full screen windows * src/display.c (meta_display_open): add _NET_WM_STRUT_PARTIAL atom (meta_rectangle_equal): new helper function for MetaRectangles (event_queue_callback): #ifndef out if USE_GDK_DISPLAY not set to avoid compiler warning * src/display.h: add atom_net_wm_strut_partial, and add meta_rectangle_equal. * src/screen.c (meta_screen_rect_intersects_xinerama): change _window_intersects_ to _rect_intersects_ which is more useful now. (meta_screen_resize_func): update struts on windows with struts since struts are relative to the screen size, and this function is called when the screen size updates. * src/screen.h (meta_screen_rect_intersects_xinerama): change _window_intersects_ to _rect_intersects_ which is more useful now. * src/window-props.c (meta_display_init_window_prop_hooks): add hook for strut_partial * src/tools/metacity-window-demo.c: Support partial-width struts on the dock window tests for metacity testing purposes.
* fix conditional so we get metacity-properties.c in the distributionHavoc Pennington2003-01-221-2/+0
| | | | | | | 2003-01-22 Havoc Pennington <hp@redhat.com> * src/tools/Makefile.am: fix conditional so we get metacity-properties.c in the distribution #103071
* only install .desktop file for metacity-properties if we actually installHavoc Pennington2002-12-131-3/+9
| | | | | | | | | | | 2002-12-13 Havoc Pennington <hp@redhat.com> * src/tools/Makefile.am (Desktop_in_files): only install .desktop file for metacity-properties if we actually install metacity-properties * src/display.c (event_callback): not focusing on button 2 click was crack, revert that change.
* make this always return FALSE for now, to avoid bug reports.Havoc Pennington2002-12-081-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-12-08 Havoc Pennington <hp@pobox.com> * src/prefs.c (meta_prefs_get_application_based): make this always return FALSE for now, to avoid bug reports. * src/util.c (ensure_logfile): put "opened log file" message on stderr so it will normally land in ~/.xsession-errors * configure.in: remove extra AC_ARG_PROGRAM * src/display.c (event_callback): handle the toggle-verbose message * src/tools/metacity-message.c: add a toggle-verbose message, been meaning to do this for a while. * src/util.c (meta_set_verbose): if verbose mode is enabled and we don't support it, then exit. * src/prefs.c: allow building without gconf (currently means some prefs are no-ops) * src/util.c, src/util.h: support defining macros to kill all verbose output entirely. (Removes the code and strings associated with it) * configure.in: don't get METACITY_PROPS_LIBS if not building the config dialog. (HAVE_GCONF): allow building sans gconf, if you are size-sensitive and not using gnome. (WITH_VERBOSE_MODE): add ability to disable all the verbose debug spew strings, to shrink the binary. (--disable-sm): allow SM support to be forced on or off (--disable-startup-notification): allow forcing this on or off
* conditionalize building the config dialogHavoc Pennington2002-12-011-2/+12
| | | | | | | | | | 2002-12-01 Havoc Pennington <hp@pobox.com> * src/tools/Makefile.am: conditionalize building the config dialog * configure.in (BUILD_CONFIG_DIALOG): add --enable-config-dialog option to turn on the "window focus" dialog. This is part of deprecating this dialog.
* replace the old apply_constraints with wacky new approach involvingHavoc Pennington2002-10-181-17/+4
| | | | | | | | | | | | 2002-10-18 Havoc Pennington <hp@pobox.com> * src/stack.c (constrain_stacking): replace the old apply_constraints with wacky new approach involving graphing all the constraints then walking the graph. Fixes #94876 and probably other stacking bugs as well, thanks to Arvind for tracking down the issue. (compute_layer): add FIXME and reference to bug #96140
* debug enhancementsHavoc Pennington2002-10-171-0/+5
|
* add code to create big stacks of dialogs transient for each other, forHavoc Pennington2002-10-171-6/+45
| | | | | | | 2002-10-17 Havoc Pennington <hp@redhat.com> * src/tools/metacity-window-demo.c (dialog_cb): add code to create big stacks of dialogs transient for each other, for testing.
* The suggested change in the tooltip as per ui-review. Not sure how long this ↵Arvind Samptur2002-09-191-1/+1
| | | | dialog will be here. Anyway...
* fix compiler warningsHavoc Pennington2002-09-121-0/+23
| | | | | | | | | | | | | | 2002-09-12 Havoc Pennington <hp@redhat.com> * src/workspace.c (meta_workspace_screen_index) (meta_workspace_index): fix compiler warnings * src/tools/metacity-window-demo.c (menu_items): add a test for dialogs with no transient parent * src/place.c (find_first_fit): Try placing window at origin of first Xinerama, even if there are no windows to place next to; makes placement work when no other windows are open on the screen.
* recalculate mapped-ness of frame after toggling decorations on/off, soHavoc Pennington2002-08-241-0/+19
| | | | | | | | | | | 2002-08-24 Havoc Pennington <hp@redhat.com> * src/window.c (process_property_notify): recalculate mapped-ness of frame after toggling decorations on/off, so that windows don't disappear when decorations are toggled on. * src/tools/metacity-window-demo.c (toggle_decorated_cb): add a test for toggling decoration state on the fly
* Theme breakage! Themes have to implement "border" frames now, see AtlantaHavoc Pennington2002-06-221-1/+58
| | | | | | | | | | | | | | | | | | | | 2002-06-21 Havoc Pennington <hp@pobox.com> Theme breakage! Themes have to implement "border" frames now, see Atlanta for an example. Fixes #84285 * src/tools/metacity-window-demo.c (do_appwindow): add a border-only window * src/window.c (update_mwm_hints): read border only from the MWM hints * src/window.h (struct _MetaWindow): add border_only flag * src/core.c (meta_core_get_frame_type): report border type if required * src/common.h (enum): add META_FRAME_TYPE_BORDER
* accessibility stuff for metacity-properties capplet. bug #84749.Jayaraj Rajappan2002-06-121-0/+10
|
* Someone forgot to mark the two strings in here for translation :)Kjartan Maraas2002-06-031-2/+2
| | | | | | | 2002-06-03 Kjartan Maraas <kmaraas@gnome.org> * src/tools/metacity-properties.desktop.in: Someone forgot to mark the two strings in here for translation :)
* use $(prefix)/@DATADIRNAME@/locale for localedir to work with SolarisHavoc Pennington2002-06-011-1/+1
| | | | | | | | | | 2002-05-30 Havoc Pennington <hp@pobox.com> * src/Makefile.am (INCLUDES): use $(prefix)/@DATADIRNAME@/locale for localedir to work with Solaris native gettext, patch from Hidetoshi Tajima * src/tools/Makefile.am: ditto
* ShushAnders Carlsson2002-06-011-0/+2
|
* ShushAnders Carlsson2002-06-011-0/+2
|
* verbose-log on startup whether we were compiled with various extensionsHavoc Pennington2002-05-312-3/+116
| | | | | | | | | | | | | | | | | | | 2002-05-30 Havoc Pennington <hp@redhat.com> * src/main.c (main): verbose-log on startup whether we were compiled with various extensions * src/display.c (meta_display_queue_retheme_all_windows): reapply shape mask when changing themes, sucks to do it here though, makes theme changing slower. Needs fixing. * src/theme-parser.c (parse_toplevel_element): parse rounded corner options to frame_geometry * src/frames.c (meta_frames_apply_shapes): apply rounded corners if requested by the theme * configure.in (HAVE_SHAPE): check for shape extension
* Rip out code for adding image to the dialogStephen Browne2002-05-301-3/+1
|
* UI changes as per HCI instructionsStephen Browne2002-05-301-78/+72
|
* Changed metacity-properties window title to match its menu entry and be more ↵Stephen Browne2002-05-301-1/+1
| | | | consistent with other capplets
* the miracle of cvs addHavoc Pennington2002-05-301-0/+283
|
* add a magnifier I'm using when making themes. Not installed.Havoc Pennington2002-05-293-87/+119
| | | | | | | | | | | | | 2002-05-29 Havoc Pennington <hp@redhat.com> * src/tools/metacity-mag.c: add a magnifier I'm using when making themes. Not installed. * src/tools/metacity-properties.c: reindentation, show window, add copyright info. * src/tools/metacity-properties.glade: make main window !visible on startup, to avoid funkiness.
* dist .desktop.in filesJacob Berkman2002-05-291-1/+1
| | | | | | 2002-05-29 Jacob Berkman <jacob@ximian.com> * src/tools/Makefile.am (EXTRA_DIST): dist .desktop.in files
* New config dialog for focus mode and autoraiseStephen Browne2002-05-295-3/+366
|
* include locale.h, fix from Hidetoshi TajimaHavoc Pennington2002-05-111-0/+22
| | | | | | | | | 2002-05-11 Havoc Pennington <hp@pobox.com> * src/main.c: include locale.h, fix from Hidetoshi Tajima * src/window.c (meta_window_new): disable show desktop mode when a new window is managed.
* add override redirect test windowHavoc Pennington2002-05-111-1/+24
| | | | | | | | | | | | | | 2002-05-10 Havoc Pennington <hp@pobox.com> * src/tools/metacity-window-demo.c: add override redirect test window * src/stack.c (raise_window_relative_to_managed_windows): new function, used to avoid moving windows above override redirect popup windows. * src/display.c (event_callback): don't lower panels on LeaveNotify if they have focus, #70895
* don't try to decorate toolbars.Havoc Pennington2002-05-011-4/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-30 Havoc Pennington <hp@pobox.com> * src/window.c (recalc_window_features): don't try to decorate toolbars. * src/tools/metacity-window-demo.c: add menu and toolbar tests * src/place.c (meta_window_place): only dialogs should be centered over parent, not anything with transient for set. * src/window.c (meta_window_configure_request): become more fascist about window positioning if workarounds are disabled, and less fascist if they are enabled. * src/metacity.schemas: add a "disable_workarounds" option. Kind of crack-smoking. But we just can't get all applications fixed. And I need no-workarounds mode to monitor which apps are broken and what needs fixing in specs. * src/window.c (meta_window_configure_request): always allow windows to resize themselves * src/keybindings.c (reload_modmap): don't filter out Mode_switch, apparently some people bind window manager shortcuts to that.
* make one of the toolbar buttons lock up the demoHavoc Pennington2002-04-121-2/+10
| | | | | | | | | | | | | | 2002-04-12 Havoc Pennington <hp@redhat.com> * src/tools/metacity-window-demo.c (do_appwindow): make one of the toolbar buttons lock up the demo * src/window.c (meta_window_delete): move error trap to be around a narrower part of the function, and add part of the ping stuff, nothing user-visible yet * src/metacity-dialog.c (main): metacity-dialog executable to live in libexecdir and pop up dialogs for us.
* Use bind_textdomain_codeset etc.Kjartan Maraas2002-02-161-0/+4
| | | | | | 2002-02-16 Kjartan Maraas <kmaraas@gnome.org> * src/main.c: Use bind_textdomain_codeset etc.
* add $(icon_DATA)METACITY_2_3_55Havoc Pennington2002-02-101-0/+2
| | | | | | | | | | | | 2002-02-10 Havoc Pennington <hp@pobox.com> * src/tools/Makefile.am (EXTRA_DIST): add $(icon_DATA) * configure.in: 2.3.55 * HACKING: update * README: update
* port to icon cacheHavoc Pennington2002-02-093-1/+25
| | | | | | | | | | | 2002-02-09 Havoc Pennington <hp@pobox.com> * src/window.c (update_icon): port to icon cache * src/iconcache.c, src/iconcache.c: begin process of cleaning up window.c by moving the icon-reading code in here, based on the code in libwnck, which was in turn based on the earlier metacity code
* add modal dialog testHavoc Pennington2002-02-081-0/+21
| | | | | | 2002-02-08 Havoc Pennington <hp@pobox.com> * src/tools/metacity-window-demo.c (menu_items): add modal dialog test
* when mapping a window with struts, invalidate the work areas it's on.Havoc Pennington2002-02-085-273/+304
| | | | | | | | | | | | | | | | | | | | | | | 2002-02-08 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_show): when mapping a window with struts, invalidate the work areas it's on. Should fix at least part of the problem with windows maximizing over panels. * src/workspace.c (meta_workspace_invalidate_work_area): also queue move/resize on sticky windows * src/tools/Makefile.am: consolidate reload-theme, restart into a "metacity-message" app and add enable/disable keybindings to the messages it knows about. * src/keybindings.c: (meta_change_keygrab): grab keyboard synchronously (meta_display_process_key_event): if all keybindings are toggled off, ReplayKeyboard, else AsyncKeyboard, except that the debug binding for toggling back on is always processed (meta_set_keybindings_disabled): function to disable/enable all keybindings
* if DEMO_TEST is set then run the window demoHavoc Pennington2002-02-082-2/+663
| | | | | | | | | | 2002-02-07 Havoc Pennington <hp@pobox.com> * src/run-metacity.sh: if DEMO_TEST is set then run the window demo * src/tools/metacity-window-demo.c: Create an app with all the semantic window types, for testing and for designing themes.
* disable custom log handler and fatal mask for nowHavoc Pennington2002-02-072-2/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-06 Havoc Pennington <hp@pobox.com> * src/main.c (main): disable custom log handler and fatal mask for now * src/theme.c (meta_draw_op_list_draw): Add META_DRAW_CLIP * src/main.c: load theme, monitor current theme setting * src/prefs.c: add "current theme" setting * src/stack.c (meta_stack_free): don't try to free last_root_children_stacked if it doesn't exist * src/themewidget.c: pluggable GtkMisc subclass to use for menu icons * src/screen.c (meta_screen_manage_all_windows): fix signed/unsigned warning * src/frames.c: port to theme system (meta_frames_style_set): chain up * theme-format.txt: new file * configure.in: add more compiler warnings * src/theme.c: add various stuff needed to get theme parser working. Remove the "spacer" concept from FrameLayout object. Add draw op that references a draw op list. * configure.in: require GTK 1.3.13 * src/Makefile.am: add theme-parser.[hc], implement loading a theme * src/theme.c: add "draw title" and "draw window icon" operations (meta_draw_op_draw): put object_width/object_height in expression environment before computing x/y. Handle out-of-memory when creating pixbufs. Assorted other cleanups.
* add a restart feature, for debuggingHavoc Pennington2001-10-152-0/+65
2001-10-15 Havoc Pennington <hp@pobox.com> * src/main.c (meta_restart): add a restart feature, for debugging * src/tools/metacity-restart.c: little utility program to trigger the restart