Relayout on monitor layout changes

Currently we only relayout when the screen size changes, this gets
 the cases where a monitor gets added/removed but not when the primary
 monitor changes.

 We need to relayout on all monitor layout changes.

 Remove ShellGlobal::screen-size-changed signal as it is no longer used, Gdk is
 used to track changes now.

 A ShellGlobal::gdk-screen property is added for this purpose.

https://bugzilla.gnome.org/show_bug.cgi?id=620377
This commit is contained in:
Adel Gadllah
2010-06-03 17:14:58 +02:00
parent 84efaac52b
commit ccbf247970
4 changed files with 36 additions and 38 deletions

View File

@ -25,8 +25,6 @@ typedef struct _ShellGlobalClass ShellGlobalClass;
struct _ShellGlobalClass
{
GObjectClass parent_class;
void (*screen_size_changed) (ShellGlobal *global);
};
GType shell_global_get_type (void) G_GNUC_CONST;
@ -40,6 +38,8 @@ ShellGlobal *shell_global_get (void);
MetaScreen *shell_global_get_screen (ShellGlobal *global);
GdkScreen *shell_global_get_gdk_screen (ShellGlobal *global);
gboolean shell_global_add_extension_importer (ShellGlobal *global,
const char *target_object_script,
const char *target_property,