Commit graph

59 commits

Author SHA1 Message Date
Federico Mena Quintero
e2e81772dd Use GError from gnome_rr_*
2008-12-03  Federico Mena Quintero  <federico@novell.com>

	* xrandr-capplet.c (rebuild_rotation_combo): Pass a NULL error
	argument to gnome_rr_config_applicable; we should really show why
	that rotation is not available.
	(apply): Use the new DBus interface from the XRANDR plugin in
	g-s-d instead of an X client message.  Display an error if g-s-d
	couldn't apply the monitor configuration.
	(on_detect_displays): Display an error if detecting the displays fails.
	(run_application): Display error messages.

Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9163
2008-12-04 00:33:28 +00:00
Rodrigo Moya
8640021f19 prepare for 2.25.2 release.
2008-12-02  Rodrigo Moya <rodrigo@gnome-db.org>

	* NEWS:
	* *ChangeLog: prepare for 2.25.2 release.

svn path=/trunk/; revision=9158
2008-12-02 16:37:29 +00:00
Vincent Untz
d35680790c post-release bump to 2.25.2.
2008-11-05  Vincent Untz  <vuntz@gnome.org>

	* configure.in: post-release bump to 2.25.2.

svn path=/trunk/; revision=9134
2008-11-05 14:54:05 +00:00
S%G�%@ren Sandmann
62e8868136 XOR the old and the new regions instead of subtracting old from new. Fixes
Wed Oct  8 21:20:21 2008  S%G�%@ren Sandmann  <sandmann@redhat.com>

	* scrollarea.c (foo_scroll_area_size_allocate): XOR the old and
	the new regions instead of subtracting old from new. Fixes bug
	551566, reported by Christian Persch.



svn path=/trunk/; revision=9052
2008-10-09 01:22:08 +00:00
Søren Sandmann Pedersen
bb704bbd11 +Wed Oct 8 21:15:04 2008 S%G�%@ren Sandmann <sandmann@redhat.com>
+
+	* xrandr-capplet.c: Make use of new clone mode API in
+	gnome-desktop
+


svn path=/trunk/; revision=9051
2008-10-09 01:17:20 +00:00
Christian Persch
8e8f10d92b Correct some HIG problems. Remove/#if 0 some unused code. Bug #551511.
2008-10-08  Christian Persch  <chpe@gnome.org>

	* display-capplet.glade: Correct some HIG problems.
	* xrandr-capplet.c: (show_error), (add_key), (run_application):
	Remove/#if 0 some unused code. Bug #551511.

svn path=/trunk/; revision=9050
2008-10-08 21:16:53 +00:00
Jens Granseuer
8dbe5804f8 fix preview orientation when using left or right rotation. The XRandR
2008-10-07  Jens Granseuer  <jensgr@gmx.net>

	* xrandr-capplet.c: (paint_output): fix preview orientation when using
	left or right rotation. The XRandR coordinate system is rotated
	counter-clockwise (bug #555241)

svn path=/trunk/; revision=9044
2008-10-07 16:57:20 +00:00
Jens Granseuer
a5f3fc3c41 Patch by: Matt Keenan <matt.keenan@sun.com>
2008-09-26  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Matt Keenan <matt.keenan@sun.com>

	* xrandr-capplet.c: (show_error), (run_application): show an error
	dialog instead of crashing when initialization fails due to XRandR
	not being available (bug #553762)

svn path=/trunk/; revision=9003
2008-09-26 19:03:43 +00:00
Vincent Untz
1aee7c2ad6 post-release bump to 2.24.1.
2008-09-24  Vincent Untz  <vuntz@gnome.org>

	* configure.in: post-release bump to 2.24.1.

svn path=/trunk/; revision=9001
2008-09-24 16:50:50 +00:00
Jens Granseuer
1ebe8363ba Patch by: Bruce Cowan <bugs@bcowan.fastmail.co.uk>
2008-09-06  Jens Granseuer  <jensgr@gmx.net>

	Patch by: Bruce Cowan <bugs@bcowan.fastmail.co.uk>

	* xrandr-capplet.c: (paint_background): use theme colours for the
	background (bug #545117)

svn path=/trunk/; revision=8931
2008-09-06 09:19:42 +00:00
Federico Mena Quintero
30bf9982ba bnc381027 - Use 'Mirror Screens' for consistency with the checkbox
2008-08-20  Federico Mena Quintero  <federico@novell.com>

	* xrandr-capplet.c (get_display_name): Use "Mirror Screens"
	instead of "Cloned Output" in the display of monitors, to be
	consistent with the corresponding checkbox from the Glade file.
	Fixes https://bugzilla.novell.com/show_bug.cgi?id=381027

Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=8874
2008-08-20 16:08:13 +00:00
Federico Mena Quintero
e0ec9acbbb Paint the outputs with the color from GnomeRRLabeler
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=8864
2008-08-16 02:00:48 +00:00
Federico Mena Quintero
a4a7ac50fb Create a GnomeRRLabeler when getting a new screen configuration
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=8863
2008-08-16 02:00:35 +00:00
Jens Granseuer
fc63bace52 fail gracefully if we cannot get a screen
2008-08-11  Jens Granseuer  <jensgr@gmx.net>

	* xrandr-capplet.c: (run_application): fail gracefully if we cannot
	get a screen

2008-08-11  Jens Granseuer  <jensgr@gmx.net>

	* configure.in: require gnome-desktop 2.23.90

svn path=/trunk/; revision=8852
2008-08-11 20:30:49 +00:00
Jens Granseuer
21ded784f8 replace all uses of g_print by g_debug
2008-08-08  Jens Granseuer  <jensgr@gmx.net>

	* xrandr-capplet.c: (on_screen_changed), (rebuild_gui),
	(print_edge), (on_output_event), (paint_output), (on_area_paint),
	(check_required_virtual_size), (apply), (run_application): replace
	all uses of g_print by g_debug

svn path=/trunk/; revision=8848
2008-08-08 17:51:22 +00:00
Jens Granseuer
84963ec8ef don't leak the application or the GladeXML
2008-08-08  Jens Granseuer  <jensgr@gmx.net>

	* xrandr-capplet.c: (run_application), (main): don't leak the
	application or the GladeXML

svn path=/trunk/; revision=8847
2008-08-08 17:47:04 +00:00
S%G�%@ren Sandmann
517de0961d Draw rotated outputs rotated.
Tue Aug  5 03:19:23 2008  S%G�%@ren Sandmann  <sandmann@redhat.com>

	* xrandr-capplet.c (paint_output): Draw rotated outputs rotated.


svn path=/trunk/; revision=8836
2008-08-05 07:21:28 +00:00
Soren Sandmann
68f14a1f11 Add a check box to turn on and off display icon.
Tue Jul 29 01:35:31 2008  Soren Sandmann  <sandmann@redhat.com>

	* xrandr-capplet.c: Add a check box to turn on and off display icon.


svn path=/trunk/; revision=8820
2008-07-29 05:38:02 +00:00
S%G�%@ren Sandmann
8d42670499 Don't allow dragging when there is only one connected monitor.
Tue Jul 15 18:48:43 2008  S%G�%@ren Sandmann  <sandmann@redhat.com>

	* xrandr-capplet.c: Don't allow dragging when there is only one
	connected monitor.


svn path=/trunk/; revision=8784
2008-07-15 22:51:02 +00:00
Søren Sandmann
13f6a9ef03 Remove this obsolete file.
Thu Jul 10 14:46:37 2008  Søren Sandmann  <sandmann@redhat.com>

	* main.c: Remove this obsolete file.
	
	* xrandr-capplet.c: Remove debug spew; add translation.

	* TODO: Various updates.


svn path=/trunk/; revision=8778
2008-07-10 18:49:58 +00:00
Jens Granseuer
cb2c6b7770 fix cairo include
2008-06-18  Jens Granseuer  <jensgr@gmx.net>

	* scrollarea.h: fix cairo include

svn path=/trunk/; revision=8766
2008-06-18 17:53:37 +00:00
Søren Sandmann Pedersen
324f02cea3 +Tue Jun 17 19:51:03 2008 S�ren Sandmann <sandmann@redhat.com>
+
+	* Merge randr-12 to trunk
+
+Tue Jun 17 18:29:46 2008  S�ren Sandmann  <sandmann@redhat.com>
+
+	* Port to changes in gnome-desktop
+
+2008-06-04  Federico Mena Quintero  <federico@novell.com>
+
+	* xrandr-capplet.c (driver_is_randr_10): New function, currently
+	unused, to detect whether the graphics driver used in the X server
+	only supports the RANDR 1.0 API.  We may find this information
+	useful to tell the user that not all the features in the capplet
+	will work as intended, or to actually disable features that won't work.
+
+2008-05-29  Federico Mena Quintero  <federico@novell.com>
+
+	* xrandr-capplet.c (apply): Before applying the settings, check if
+	the X server supports the Virtual size we need.
+	(check_required_virtual_size): New function; does the checking
+	against what the X server supports.
+	This still needs to present a friendly dialog box.
+	(compute_virtual_size_for_configuration): New function.
+
+Wed May 14 18:16:10 2008  S�ren Sandmann  <sandmann@redhat.com>
+
+	* xrandr-capplet.c: Add GNOME_DESKTOP_USE_UNSTABLE_API define
+
+	* scrollarea.[ch]: Add copyright statement
+
+2008-05-14  Soren Sandmann Pedersen  <sandmann@redhat.com>
+
+	* *: Check in new RandR 1.2 enabled capplet
+


svn path=/trunk/; revision=8762
2008-06-17 23:52:37 +00:00
Vincent Untz
5e14bcf311 post-release bump to 2.23.3
2008-05-17  Vincent Untz  <vuntz@gnome.org>

	* configure.in: post-release bump to 2.23.3

svn path=/trunk/; revision=8716
2008-05-17 16:56:46 +00:00
Jens Granseuer
bf47e03d16 escape strange hostnames that we want to use as GConf keys (see bug
2008-02-19  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (create_dialog), (save_to_gconf): escape strange hostnames
	that we want to use as GConf keys (see bug #517259 for a similar issue
	in gnome-settings-daemon)

svn path=/trunk/; revision=8509
2008-02-19 20:01:13 +00:00
Jens Granseuer
1c50e4c94c readd gettext macro that accidentally got stripped
2007-10-28  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (display_rotation_from_text), (create_rotate_menu): readd gettext
	macro that accidentally got stripped

svn path=/trunk/; revision=8223
2007-10-27 22:08:32 +00:00
Jens Granseuer
73fc8e79a9 whitespace cleanup and a few minor tweaks
2007-10-28  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (display_rotation_from_text), (get_current_resolution),
	(get_current_rate), (get_current_rotation), (wrap_in_label),
	(resolution_changed_callback), (generate_rate_menu),
	(generate_resolution_menu), (initialize_combo_layout),
	(create_rate_menu), (create_rotate_menu), (create_screen_widgets),
	(create_dialog), (save_timeout_callback), (run_revert_dialog),
	(save_to_gconf), (cb_dialog_response), (main): whitespace cleanup and a
	few minor tweaks

svn path=/trunk/; revision=8222
2007-10-27 21:57:15 +00:00
Jens Granseuer
c21633bc3c revert some of the previous "clean-up", add some new, and fix another leak
2007-10-27  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (free_display_info), (update_display_info),
	(read_display_info), (apply_config), (revert_config): revert some of
	the previous "clean-up", add some new, and fix another leak

svn path=/trunk/; revision=8221
2007-10-27 19:36:17 +00:00
Jens Granseuer
bae97194e3 fix string capitalization
2007-10-27  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (run_revert_dialog), (main): fix string capitalization

svn path=/trunk/; revision=8219
2007-10-27 18:00:06 +00:00
Jens Granseuer
559ba3a743 clean up code a bit and fix a few leaks
2007-10-27  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (free_display_info), (restart_screensaver),
	(apply_config), (revert_config), (cb_dialog_response), (main): clean up
	code a bit and fix a few leaks

svn path=/trunk/; revision=8217
2007-10-27 16:28:08 +00:00
Jens Granseuer
729cecafc0 remove
2007-06-29  Jens Granseuer  <jensgr@gmx.net>

	* display-capplet.png: remove

	* Makefile.am:
	* display-properties.desktop.in.in:
	* icons/16x16/gnome-display-properties.png:
	* icons/22x22/gnome-display-properties.png:
	* icons/24x24/gnome-display-properties.png:
	* icons/32x32/gnome-display-properties.png:
	* icons/scalable/gnome-display-properties.svg:
	* main.c: (create_dialog): add and use new icon by Jakub Steiner
	<jimmac@ximian.com>. Closes bug #375230.

svn path=/trunk/; revision=7806
2007-06-29 20:05:33 +00:00
Michael Terry
6b9550b491 use icon theme for app icons, bug #450777
svn path=/trunk/; revision=7784
2007-06-26 23:29:58 +00:00
Jens Granseuer
c8e0000859 don't make the revert dialog transient since it's actually never on screen
2007-06-16  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (run_revert_dialog), (cb_dialog_response): don't make the
	revert dialog transient since it's actually never on screen at the
	same time as the main dialog. Closes bug #448160.

svn path=/trunk/; revision=7729
2007-06-16 11:31:45 +00:00
Jens Granseuer
29c6ddb8cc surivive XRandR returning weird results for some dual-screen setups. This
2007-05-22  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (get_current_resolution): surivive XRandR returning weird
	results for some dual-screen setups. This fixes the crash in bug
	#356520, but a proper fix for handling this situation is still
	necessary, unless this is just a driver/X bug...

svn path=/trunk/; revision=7646
2007-05-22 17:46:43 +00:00
Rodrigo Moya
19e6ec348d renamed Bugzilla product.
2007-04-27  Rodrigo Moya <rodrigo@gnome-db.org>

	* display-properties.desktop.in.in: renamed Bugzilla product.

svn path=/trunk/; revision=7503
2007-04-27 10:13:17 +00:00
Jens Granseuer
a3cac171e0 add 720x576 (PAL) to the list of valid resolutions. Closes bug #325548.
2007-03-23  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (show_resolution): add 720x576 (PAL) to the list of valid
	resolutions. Closes bug #325548.

svn path=/trunk/; revision=7419
2007-03-23 19:56:37 +00:00
Jens Granseuer
94238895cb uppercase the rotation options. Closes bug #410959.
2007-03-21  Jens Granseuer  <jensgr@gmx.net>

	* main.c: uppercase the rotation options. Closes bug #410959.

svn path=/trunk/; revision=7410
2007-03-21 17:26:08 +00:00
Jens Granseuer
79b4f3b6bd fix double-free reported by Sandino Flores-Moreno. Closes bug #413352.
2007-03-01  Jens Granseuer  <jensgr@gmx.net>

	* main.c: (create_dialog): fix double-free reported by Sandino
	Flores-Moreno. Closes bug #413352.

svn path=/trunk/; revision=7351
2007-03-01 18:01:02 +00:00
Kjartan Maraas
ca69387471 Mark a struct static.
2007-01-29  Kjartan Maraas  <kmaraas@gnome.org>

	* main.c: Mark a struct static.

svn path=/trunk/; revision=7196
2007-01-29 09:18:04 +00:00
Kjartan Maraas
2252b81ff4 Don't leak the resolution. Pass NULL to gtk_label_new to do less work. Bug
2006-12-08  Kjartan Maraas  <kmaraas@gnome.org>

	* main.c: (wrap_in_label), (create_dialog):
	Don't leak the resolution. Pass NULL to gtk_label_new
	to do less work. Bug #376949.
2006-12-08 16:28:51 +00:00
Brian Cameron
f21f40313f Fixes #356075
2006-09-15  Brian Cameron <brian.cameron@sun.com>

	Fixes #356075

	* main.c (apply_config, revert_config): make sure we never pass
	negative values for the rates.
2006-09-15 11:08:41 +00:00
Rodrigo Moya
925d55eb2d free 'resolution' string after using it, not before. Found by Kjartan
2006-08-18  Rodrigo Moya <rodrigo@novell.com>

	* main.c (create_dialog): free 'resolution' string after using it,
	not before. Found by Kjartan Maraas  <kmaraas@gnome.org>.
2006-08-18 11:35:32 +00:00
Rodrigo Moya
af682d5234 Fixes #348838
2006-08-07  Rodrigo Moya <rodrigo@novell.com>

	Fixes #348838

	* display-properties.desktop.in.in: Fixed GNOME Bugzilla fields.
2006-08-07 09:20:27 +00:00
Sebastien Bacher
598b331489 fix build with gcc-2.95, patch by Jens Granseuer <jensgr@gmx.net> (Closes:
2006-08-07  Sebastien Bacher  <seb128@debian.org>

	* main.c: (create_rotate_menu): fix build with gcc-2.95,
	  patch by Jens Granseuer <jensgr@gmx.net> (Closes: #347611)
2006-08-06 22:36:00 +00:00
Kjartan Maraas
564a9d03aa Huge cleanup. Individual ChangeLogs have info. Closing bug #320157. ANSIfy
2005-11-14  Kjartan Maraas  <kmaraas@gnome.org>

	* */*: Huge cleanup. Individual ChangeLogs have info.
	Closing bug #320157.
	* libkbddraw/keyboard-drawing.h: ANSIfy some function declarations.
2005-11-14 15:18:09 +00:00
Rodrigo Moya
cf87a9a2c9 new function to get the correct screensaver command to run. (apply_config,
2005-07-20  Rodrigo Moya <rodrigo@novell.com>

	* main.c (get_screensaver_command): new function to get the correct
	screensaver command to run.
	(apply_config, revert_config): use gnome-screensaver if available.
2005-07-25 11:55:06 +00:00
Sebastien Bacher
12e01119d8 patch by Kjartan Maraas <kmaraas@gnome.org>, remove a load of leaks and
2005-02-08  Sebastien Bacher  <seb128@debian.org>

	* gnome-theme-installer.c: (file_theme_type), (transfer_done_cb),
	(install_dialog_response), (gnome_theme_installer_run):
	patch by Kjartan Maraas <kmaraas@gnome.org>, remove a load of leaks
	and make sure newly installed themes show up in the relevant lists
	without having to close/open the dialog again (Closes: #166267).

2005-02-08  Sebastien Bacher  <seb128@debian.org>

	* gnome-keyboard-properties-xkb.c: (setup_xkb_tabs):
	* gnome-keyboard-properties-xkblt.c: (def_group_in_gconf_changed):
	patch by Kjartan Maraas <kmaraas@gnome.org>, some code cleanups
	(Closes: #166267).

2005-02-08  Sebastien Bacher  <seb128@debian.org>

	* eggcellrendererkeys.c: (egg_cell_renderer_keys_start_editing):
	patch by Kjartan Maraas <kmaraas@gnome.org>, some code cleanups
        (Closes: #166267).

2005-02-08  Sebastien Bacher  <seb128@debian.org>

	* main.c: (wrap_in_label):
        patch by Kjartan Maraas <kmaraas@gnome.org>, some code cleanups
        (Closes: #166267).

2005-02-08  Sebastien Bacher  <seb128@debian.org>

	* gnome-theme-info.c: (update_common_theme_dir_index):
	* theme-thumbnail.c: (create_image):
	patch by Kjartan Maraas <kmaraas@gnome.org>, move to use GtkIconTheme
	and remove a load of leaks in the theme manager code (Closes: #166267).
2005-02-08 22:42:10 +00:00
Mark McLoughlin
860e984b3a - install all capplet .desktop files in $(datadir)/applications
instead of $(datadir)/control-center-2.0/capplets
 - add OnlyShowIn=GNOME; to them all
 - remove capplets/desktop-links/*
2004-11-09 17:43:47 +00:00
Jody Goldberg
135d52c612 Release 2.8.1
2004-10-14  Jody Goldberg <jody@gnome.org>

	* Release 2.8.1
2004-10-14 19:05:48 +00:00
David Sedeño Fernández
6074ae0a46 http://bugzilla.gnome.org/show_bug.cgi?id=136483
* main.c (run_revert_dialog, cb_dialog_response) : Hide
the configuration dialog and center the confirmation one.
2004-06-10 21:34:39 +00:00
David Sedeo
a5226ed52e http://bugzilla.gnome.org/show_bug.cgi?id=137579 Put title to the
2004-06-09  David Sedeo <david@alderia.com>

	http://bugzilla.gnome.org/show_bug.cgi?id=137579
	* main.c (main) : Put title to the confirmation dialog box
2004-06-09 21:39:41 +00:00