Commit graph

106 commits

Author SHA1 Message Date
Jens Granseuer
a84019b447 release 2.25.92
2009-03-02  Jens Granseuer  <jensgr@gmx.net>

	* NEWS:
	* configure.in: release 2.25.92

svn path=/trunk/; revision=9304
2009-03-02 21:57:20 +00:00
Jens Granseuer
1264bf2940 GTK_DIALOG_NO_SEPARATOR cannot be used with GtkMessageDialog
2009-02-21  Jens Granseuer  <jensgr@gmx.net>

	* xrandr-capplet.c: (error_message): GTK_DIALOG_NO_SEPARATOR cannot be
	used with GtkMessageDialog

svn path=/trunk/; revision=9281
2009-02-20 23:17:07 +00:00
Federico Mena Quintero
83fc72127e RANDR - Make the color of monitor labels consistent with the per-monitor popups
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9278
2009-02-20 00:49:01 +00:00
Jens Granseuer
1aefe84989 change window title and menu entry name to "Display"/"Display Preferences"
2009-02-08  Jens Granseuer  <jensgr@gmx.net>

	* display-capplet.glade:
	* display-properties.desktop.in.in: change window title and menu entry
	name to "Display"/"Display Preferences" to be consistent with other
	settings dialogs (bug #570907)

svn path=/trunk/; revision=9248
2009-02-08 11:43:21 +00:00
Federico Mena Quintero
de9c4b5d96 bnc472226 (RANDR) - ChangeLog for the changes above
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9243
2009-02-05 21:21:07 +00:00
Federico Mena Quintero
df57fe082a bnc472226 (RANDR) - Use an async D-bus call to avoid blocking the GUI while gnome-settings-daemon changes the RANDR parameters
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9242
2009-02-05 21:20:54 +00:00
Federico Mena Quintero
5e0e21f11e bnc472226 (RANDR) - Put the D-bus connection and proxy in the main App structure, not in local variables.
We'll need this to maintain state for the D-bus async callback.

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

svn path=/trunk/; revision=9241
2009-02-05 21:20:40 +00:00
Federico Mena Quintero
876e2efa5e bnc434729 (RANDR) - Realign the outputs after changing the resolution of one of them
2009-02-04  Federico Mena Quintero  <federico@novell.com>

	https://bugzilla.novell.com/show_bug.cgi?id=434729 - Realign the
	outputs when changing the resolution of one of them, so one
	doesn't get overlapping monitors (when the resolution becomes
	bigger) or disjoint monitors (when the resolution becomes smaller).

	* xrandr-capplet.c (on_resolution_changed): Align the monitors.
	(realign_outputs_after_resolution_change): New function.  The
	algorithm here could certainly be improved...

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

svn path=/trunk/; revision=9238
2009-02-04 22:59:50 +00:00
Vincent Untz
950c137ea5 post-release bump to 2.25.91
2009-02-04  Vincent Untz  <vuntz@gnome.org>

	* configure.in: post-release bump to 2.25.91

svn path=/trunk/; revision=9237
2009-02-04 22:30:58 +00:00
Jens Granseuer
7c1b15bed6 don't crash if we don't have an output (bug #569218)
2009-01-26  Jens Granseuer  <jensgr@gmx.net>

	* xrandr-capplet.c: (rebuild_rate_combo),
	(rebuild_resolution_combo): don't crash if we don't have an output
	(bug #569218)

svn path=/trunk/; revision=9210
2009-01-26 21:37:27 +00:00
Federico Mena Quintero
ea6b78e870 Desensitize the Resolution combo when the output is off
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9189
2009-01-07 23:28:46 +00:00
Federico Mena Quintero
53f721544d Let the user turn on outputs which were off
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9188
2009-01-07 23:28:25 +00:00
Federico Mena Quintero
262658abc5 Don't re-select the current output when flipping workspaces
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9187
2009-01-07 23:28:08 +00:00
Federico Mena Quintero
fabb6bd6dc bnc433939 - Add On/Off radio buttons for the monitors
2008-12-18  Federico Mena Quintero  <federico@novell.com>

	https://bugzilla.novell.com/show_bug.cgi?id=433939 - It's not
	obvious how to turn on a new monitor.

	* display-capplet.glade: Add On/Off radio buttons for the selected
	monitor, as it is hard to find that the on/off state is actually
	set by the Resolution combo.

	* xrandr-capplet.c (rebuild_gui): Don't set sensitivity of
	resolution_combo here...
	(rebuild_resolution_combo): ... but do it here instead.  This is
	so that we can match the state of the monitor on/off buttons.
	(rebuild_on_off_radios): New function.  We set the on/off radio
	buttons based on the "on" state of the current output.
	(monitor_on_off_toggled_cb): New callback; we toggle the current
	output's on/off state.

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

svn path=/trunk/; revision=9186
2009-01-07 23:27:49 +00:00
Federico Mena Quintero
23f974558f Fix a variable type
2008-12-18  Federico Mena Quintero  <federico@novell.com>

	* xrandr-capplet.c (select_current_output_from_dialog_position):
	Fix the type of the "output" variable.

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

svn path=/trunk/; revision=9185
2009-01-07 23:27:30 +00:00
Bastien Nocera
a4f0969525 upd 2.25.3
2008-12-18  Bastien Nocera  <hadess@hadess.net>

	* NEWS: upd
	* configure.in: 2.25.3


svn path=/trunk/; revision=9178
2008-12-18 19:30:08 +00:00
Federico Mena Quintero
1394953ef6 bnc450141 - Hide the Help button in the display capplet, as it does nothing
2008-12-16  Federico Mena Quintero  <federico@novell.com>

	https://bugzilla.novell.com/show_bug.cgi?id=450141 - Help button
	in the Display capplet does nothing.

	* xrandr-capplet.c (run_application): Hide the Help button as we
	have no help to show for this capplet yet.
	(hide_help_button): New function.

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

svn path=/trunk/; revision=9176
2008-12-18 19:09:21 +00:00
Frederic Peters
34f643bb92 Declare variable, fix build.
* xrandr-capplet.c: (select_current_output_from_dialog_position):
Declare variable, fix build.


svn path=/trunk/; revision=9172
2008-12-16 11:40:36 +00:00
Federico Mena Quintero
e16c9d3715 Don't duplicate code to pick the current output
2008-12-15  Federico Mena Quintero  <federico@novell.com>

	* xrandr-capplet.c (on_screen_changed): Use
	select_current_output_from_dialog_position() instead of selecting
	an output ourselves.

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

svn path=/trunk/; revision=9171
2008-12-15 23:19:32 +00:00
Federico Mena Quintero
3545215c21 Select the RANDR output which contains the configuration window
2008-12-15  Federico Mena Quintero  <federico@novell.com>

	* xrandr-capplet.c (select_current_output_from_dialog_position):
	New function.
	(dialog_map_event_cb): New GtkWidget::map-event handler for the
	toplevel dialog.  When the dialog gets mapped, we make the current
	output be the one which actually contains the dialog window, so
	that the user can edit the monitor which he's looking at.

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

svn path=/trunk/; revision=9170
2008-12-15 23:19:16 +00:00
Federico Mena Quintero
42da2562f5 Show which monitor is being edited in the 'Monitor' label
2008-12-15  Federico Mena Quintero  <federico@novell.com>

	* display-capplet.glade: Put the "Monitor" label inside an event
	box, so we can change the background color of the event box.  Give
	names to both widgets: current_monitor_label,
	current_monitor_event_box.

	* xrandr-capplet.c (rebuild_gui): When a monitor is selected,
	update the "Monitor" label to include the monitor's name and color
	so the user will know which monitor he is editing.
	(rebuild_current_monitor_label): New function.
	(struct App): New fields current_monitor_label,
	current_monitor_event_box.

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

svn path=/trunk/; revision=9168
2008-12-15 18:59:57 +00:00
Federico Mena Quintero
ded9c324a5 bnc381030 - Prettify the Display capplet's dialog
2008-12-12  Federico Mena Quintero  <federico@novell.com>

	https://bugzilla.novell.com/show_bug.cgi?id=381030 - Prettify the
	Display capplet's dialog

	* display-capplet.glade: Use the HIG's recommended colons,
	capitalization, and spacing.  Use headers to separate the Monitor
	options from the Panel icon option.  Add instructions on how to
	operate the draggable monitors.

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

svn path=/trunk/; revision=9167
2008-12-15 18:59:44 +00:00
Federico Mena Quintero
4423ae56de Un-overlap the monitors when turning off mirrored screens
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9166
2008-12-12 23:37:28 +00:00
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
1acc03b4a4 Clarification comment for translators on 'Mirror Screens'
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=8875
2008-08-20 16:11:08 +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