Commit graph

132 commits

Author SHA1 Message Date
Thomas Wood
b7ce86ecec Automatically create the ChangeLog file from VCS history
Added a dist-hook rule to create the ChangeLog file from the git log.
2009-11-14 15:17:28 +00:00
Matthias Clasen
5ebf7c1c51 bgo#593866 - Don't assert when the current output doesn't have a resolution set yet
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-10-19 13:57:27 -05:00
Matthias Clasen
579e1f8690 Fix dragging of rotate monitors
We were using the rotated geometry for drawing, but the unrotated
geometry for snapping. Reported in bug 578109.
2009-08-20 17:16:33 -04:00
Federico Mena Quintero
5d9f7b5e2a RANDR - ensure that the output labels fit inside the monitor rectangles
The labels would get clipped if the monitor rectangles were too small,
thus making the labels unreadable.  Now we ensure that the ink_rect of
the text fits, and we center the text based on its logical_rect.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-08-06 15:33:22 -05:00
Federico Mena Quintero
e2a0d731ac RANDR - remove dead code
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-08-06 15:33:22 -05:00
Federico Mena Quintero
04d2ad2b45 RANDR - Don't sort the outputs before creating the labeler
We used to sort the outputs by their X coordinate, maybe to display a list of them in a
reasonable order.  However, we don't display such a list at all, so it doesn't make
sense to sort the outputs.  This also makes the capplet use the same ordering for outputs
as gnome-settings-daemon for GnomeRRLabeler's purposes, so that the colors for the outputs
match in both the capplet and g-s-d.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-08-06 15:33:22 -05:00
Claude Paroz
8c225e772d Remove markup from translatable string. Fixes #590933 2009-08-06 18:04:36 +02:00
Claude Paroz
339738a567 Remove markup from translatable strings in GTKBuilder files. Fixes #99759 2009-08-06 11:53:42 +02:00
Federico Mena Quintero
8fc5964b82 RANDR - Don't realign outputs if the current output didn't change resolutions
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-07-16 12:19:53 -05:00
Federico Mena Quintero
bba301ff9c RANDR - Factor out function to generate strings for refresh rate like '60 Hz'
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-07-16 12:19:52 -05:00
Federico Mena Quintero
dc62815db2 RANDR - when turning an output on, default to its preferred resolution
Previously we were picking the output's highest-supported resolution, which is not
always the same as its preferred resolution.  We also do this while actually turning
the output on, not as a side effect of rebuilding the resolution combo.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-07-16 12:19:52 -05:00
Federico Mena Quintero
9516f2f082 RANDR - Factor out function to generate strings for resolution like 'width x height'
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-07-16 12:19:52 -05:00
Thomas Wood
5d882a3bdd Automatically generate .gitignore files with git.mk
Add git.mk and include it in all Makefiles to generate .gitignore files
2009-07-16 00:38:51 +01:00
Thomas Wood
53d1d5e347 [display,window] add missing UI definition files
Add UI files from bug 572325.
Patch by Felix Riemann <friemann@gnome.org>
2009-07-12 17:23:36 +01:00
Felix Riemann
622a730e5c [display] Remove libglade dependency from display-properties capplet 2009-07-09 14:54:25 +02:00
Federico Mena Quintero
4aac93ce2d randr - Don't pop up a redundant error dialog
In case the RANDR configuration cannot be applied, gnome-settings-daemon already
pops up an error message.  So, don't pop up another error of our own.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-06-15 15:11:01 -05:00
Federico Mena Quintero
74e06ac80e Use the timestamp of the Apply button to change the RANDR configuration
There is no timestamp available when the dialog returns from gtk_dialog_run().
So, we save the timestamp at the time the Apply button is clicked.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-06-08 20:17:38 -05:00
Federico Mena Quintero
9281a911cf Fix the layout-outputs-horizontally helper
The horizontal coordinate was not always being updated.
Also, ensure that outputs are at y=0.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-06-08 20:06:20 -05:00
Federico Mena Quintero
af03baa1bc bgo#556050 - Make the monitor heading in the RANDR capplet be explicitly black
The labels are always painted against a light pastel background.  Using
the theme's colors makes the label hard to read on 'inverse' themes.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-05-06 14:03:40 -05:00
Matthias Clasen
8bf93d0df8 Make all mnemonics work
svn path=/trunk/; revision=9409
2009-04-11 18:56:49 +00:00
Federico Mena Quintero
72ed4d4460 bnc486093 (RANDR) - Ensure that there will be a backup file before committing changes
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9398
2009-03-31 01:56:27 +00:00
Federico Mena Quintero
4ec217c6b2 (RANDR) - Simplify calls to dbus-glib which cannot fail; remove two unneeded/cryptic error messages.
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9382
2009-03-20 18:51:48 +00:00
Federico Mena Quintero
0963677a5a bgo576006 (RANDR) - ChangeLog for the changes above
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9377
2009-03-19 23:49:12 +00:00
Federico Mena Quintero
6ea3c02290 bgo576006 (RANDR) - Pass a transient parent id to the ApplyConfiguration call from gnome-settings-daemon,
so that it can make its confirmation window a child of the parent.

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

svn path=/trunk/; revision=9376
2009-03-19 23:48:58 +00:00
Federico Mena Quintero
38de654eea bgo574865 (RANDR) - Don't leave a dangling pointer for the current_output when the RANDR configuration changes
Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=9339
2009-03-11 15:14:11 +00:00
Gabor Kelemen
4cd96a9881 Make the strings of the Rotation dialog appear translated. Bug #574693.
2009-03-11  Gabor Kelemen  <kelemeng@gnome.hu>

	* xrandr-capplet.c: Make the strings of the Rotation dialog appear
	translated. Bug #574693.

svn path=/trunk/; revision=9336
2009-03-11 09:48:27 +00:00
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