Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
gdm
gdm-greeter-greater-ui.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gdm-greeter-greater-ui.patch of Package gdm
Index: gdm-3.2.0/gui/simple-greeter/gdm-greeter-login-window.c =================================================================== --- gdm-3.2.0.orig/gui/simple-greeter/gdm-greeter-login-window.c +++ gdm-3.2.0/gui/simple-greeter/gdm-greeter-login-window.c @@ -1637,35 +1637,6 @@ gdm_greeter_login_window_set_default_ses session_name); } -static void -rotate_computer_info (GdmGreeterLoginWindow *login_window) -{ - GtkWidget *notebook; - int current_page; - int n_pages; - - /* switch page */ - notebook = GTK_WIDGET (gtk_builder_get_object (login_window->priv->builder, "computer-info-notebook")); - current_page = gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook)); - n_pages = gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook)); - - if (current_page + 1 < n_pages) { - gtk_notebook_next_page (GTK_NOTEBOOK (notebook)); - } else { - gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook), 0); - } - -} - -static gboolean -on_computer_info_label_button_press (GtkWidget *widget, - GdkEventButton *event, - GdmGreeterLoginWindow *login_window) -{ - rotate_computer_info (login_window); - return FALSE; -} - static char * file_read_one_line (const char *filename) { @@ -1787,16 +1758,19 @@ create_computer_info (GdmGreeterLoginWin if (strcmp (localhost, "localhost") == 0 || strcmp (localhost, "localhost.localdomain") == 0) { - rotate_computer_info (login_window); + gtk_widget_hide (label); } } label = GTK_WIDGET (gtk_builder_get_object (login_window->priv->builder, "computer-info-version-label")); if (label != NULL) { char *version; + char *markup; version = get_system_version (); - gtk_label_set_text (GTK_LABEL (label), version); + markup = g_markup_printf_escaped ("<b>%s</b>", version); + gtk_label_set_markup (GTK_LABEL (label), markup); g_free (version); + g_free (markup); } gdm_profile_end (NULL); @@ -1943,9 +1917,6 @@ load_theme (GdmGreeterLoginWindow *login create_computer_info (login_window); - box = GTK_WIDGET (gtk_builder_get_object (login_window->priv->builder, "computer-info-event-box")); - g_signal_connect (box, "button-press-event", G_CALLBACK (on_computer_info_label_button_press), login_window); - clear_active_extension (login_window); switch_mode (login_window, MODE_SELECTION); Index: gdm-3.2.0/gui/simple-greeter/gdm-greeter-login-window.ui =================================================================== --- gdm-3.2.0.orig/gui/simple-greeter/gdm-greeter-login-window.ui +++ gdm-3.2.0/gui/simple-greeter/gdm-greeter-login-window.ui @@ -1,29 +1,33 @@ -<?xml version="1.0"?> +<?xml version="1.0" encoding="UTF-8"?> <interface> <requires lib="gtk+" version="2.16"/> - <!-- interface-naming-policy toplevel-contextual --> - <object class="GtkFrame" id="window-frame"> + <object class="GtkFrame" id="window-frame"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label_xalign">0</property> + <property name="shadow_type">out</property> + <child> + <object class="GtkAlignment" id="alignment2"> <property name="visible">True</property> - <property name="label_xalign">0</property> - <property name="shadow_type">out</property> + <property name="can_focus">False</property> + <property name="border_width">24</property> <child> - <object class="GtkAlignment" id="alignment2"> + <object class="GtkVBox" id="window-box"> <property name="visible">True</property> - <property name="border_width">24</property> + <property name="can_focus">False</property> + <property name="spacing">10</property> <child> - <object class="GtkVBox" id="window-box"> + <object class="GtkBox" id="hbox1"> <property name="visible">True</property> - <property name="spacing">10</property> + <property name="can_focus">False</property> + <property name="spacing">12</property> <child> - <object class="GtkAlignment" id="alignment1"> + <object class="GtkImage" id="logo-image"> <property name="visible">True</property> - <child> - <object class="GtkImage" id="logo-image"> - <property name="visible">True</property> - <property name="pixel_size">48</property> - <property name="icon_name">computer</property> - </object> - </child> + <property name="can_focus">False</property> + <property name="yalign">0</property> + <property name="pixel_size">48</property> + <property name="icon_name">computer</property> </object> <packing> <property name="expand">False</property> @@ -32,220 +36,111 @@ </packing> </child> <child> - <object class="GtkEventBox" id="computer-info-event-box"> + <object class="GtkBox" id="vbox1"> <property name="visible">True</property> - <property name="visible_window">False</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> <child> - <object class="GtkNotebook" id="computer-info-notebook"> + <object class="GtkLabel" id="computer-info-version-label"> <property name="visible">True</property> - <property name="show_tabs">False</property> - <property name="show_border">False</property> - <child> - <object class="GtkLabel" id="computer-info-name-label"> - <property name="visible">True</property> - <property name="label" translatable="yes">Computer Name</property> - </object> - </child> - <child type="tab"> - <object class="GtkLabel" id="label3"> - <property name="visible">True</property> - <property name="label">page 5</property> - </object> - <packing> - <property name="tab_fill">False</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="computer-info-version-label"> - <property name="visible">True</property> - <property name="label" translatable="yes">Version</property> - </object> - <packing> - <property name="position">1</property> - </packing> - </child> - <child type="tab"> - <object class="GtkLabel" id="label11"> - <property name="visible">True</property> - </object> - <packing> - <property name="position">1</property> - <property name="tab_fill">False</property> - </packing> - </child> - <child> - <placeholder/> - </child> - <child type="tab"> - <object class="GtkLabel" id="label12"> - <property name="visible">True</property> - </object> - <packing> - <property name="position">2</property> - <property name="tab_fill">False</property> - </packing> - </child> - <child> - <placeholder/> - </child> - <child type="tab"> - <object class="GtkLabel" id="label13"> - <property name="visible">True</property> - </object> - <packing> - <property name="position">3</property> - <property name="tab_fill">False</property> - </packing> - </child> - <child> - <placeholder/> - </child> - <child type="tab"> - <object class="GtkLabel" id="label14"> - <property name="visible">True</property> - </object> - <packing> - <property name="position">4</property> - <property name="tab_fill">False</property> - </packing> - </child> - <child> - <placeholder/> - </child> - <child type="tab"> - <object class="GtkLabel" id="label15"> - <property name="visible">True</property> - </object> - <packing> - <property name="position">5</property> - <property name="tab_fill">False</property> - </packing> - </child> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Version</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="computer-info-name-label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Computer Name</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment1"> + <property name="visible">True</property> + <property name="can_focus">False</property> <child> - <placeholder/> - </child> - <child type="tab"> - <object class="GtkLabel" id="label16"> + <object class="GtkLabel" id="auth-banner-label"> <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="justify">center</property> + <property name="wrap">True</property> </object> - <packing> - <property name="position">6</property> - <property name="tab_fill">False</property> - </packing> </child> </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + </packing> </child> </object> <packing> - <property name="expand">False</property> - <property name="fill">False</property> + <property name="expand">True</property> + <property name="fill">True</property> <property name="position">1</property> </packing> </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment3"> + <property name="visible">True</property> <child> - <object class="GtkLabel" id="auth-banner-label"> - <property name="visible">True</property> - <property name="justify">center</property> - <property name="wrap">True</property> - </object> - <packing> - <property name="position">3</property> - </packing> - </child> - <child> - <object class="GtkAlignment" id="alignment3"> + <object class="GtkVBox" id="selection-box"> <property name="visible">True</property> + <property name="spacing">2</property> <child> - <object class="GtkVBox" id="selection-box"> + <object class="GtkAlignment" id="task-list-alignment"> <property name="visible">True</property> - <property name="spacing">2</property> - <child> - <object class="GtkAlignment" id="task-list-alignment"> - <property name="visible">True</property> - <property name="xalign">1.0</property> - <property name="xscale">0.0</property> - <child> - <object class="GdmExtensionList" id="extension-list"> - <property name="visible">False</property> - </object> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">0</property> - </packing> - </child> + <property name="xalign">1.0</property> + <property name="xscale">0.0</property> <child> - <object class="GdmUserChooserWidget" id="user-chooser"> + <object class="GdmExtensionList" id="extension-list"> <property name="visible">False</property> </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - <child> - <object class="GtkHBox" id="auth-page-box"> - <property name="visible">True</property> - <property name="border_width">10</property> - <child> - <placeholder/> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">2</property> - </packing> </child> </object> - </child> - </object> - <packing> - <property name="position">4</property> - </packing> - </child> - <child> - <object class="GtkHButtonBox" id="buttonbox"> - <property name="visible">True</property> - <property name="spacing">6</property> - <property name="layout_style">end</property> - <child> - <object class="GdmSessionOptionWidget" id="session-option-widget"> - <property name="visible">False</property> - <property name="xscale">0.0</property> - <property name="yscale">0.0</property> - <property name="xalign">0.0</property> - <property name="yalign">1.0</property> - </object> <packing> - <property name="expand">True</property> - <property name="fill">True</property> + <property name="expand">False</property> + <property name="fill">False</property> <property name="position">0</property> - <property name="secondary">True</property> </packing> </child> <child> - <object class="GtkButton" id="cancel-button"> - <property name="label" translatable="yes">Cancel</property> - <property name="visible">True</property> - <property name="can_focus">True</property> + <object class="GdmUserChooserWidget" id="user-chooser"> + <property name="visible">False</property> </object> <packing> - <property name="expand">False</property> - <property name="fill">False</property> + <property name="expand">True</property> + <property name="fill">True</property> <property name="position">1</property> </packing> </child> <child> - <object class="GtkButton" id="unlock-button"> - <property name="label" translatable="yes">Unlock</property> + <object class="GtkHBox" id="auth-page-box"> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="can_default">True</property> - <property name="receives_default">True</property> + <property name="border_width">10</property> + <child> + <placeholder/> + </child> </object> <packing> <property name="expand">False</property> @@ -253,32 +148,92 @@ <property name="position">2</property> </packing> </child> - <child> - <object class="GtkButton" id="log-in-button"> - <property name="label" translatable="yes">Login</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="can_default">True</property> - <property name="has_default">False</property> - <property name="receives_default">False</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">5</property> - </packing> - </child> + </object> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">4</property> + </packing> + </child> + <child> + <object class="GtkHButtonBox" id="buttonbox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">6</property> + <property name="layout_style">end</property> + <child> + <object class="GdmSessionOptionWidget" id="session-option-widget"> + <property name="visible">False</property> + <property name="xscale">0.0</property> + <property name="yscale">0.0</property> + <property name="xalign">0.0</property> + <property name="yalign">1.0</property> </object> <packing> <property name="expand">True</property> <property name="fill">True</property> - <property name="pack_type">end</property> + <property name="position">0</property> + <property name="secondary">True</property> + </packing> + </child> + <child> + <object class="GtkButton" id="cancel-button"> + <property name="label" translatable="yes">Cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkButton" id="unlock-button"> + <property name="label" translatable="yes">Unlock</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">True</property> + <property name="use_action_appearance">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> <property name="position">2</property> </packing> </child> + <child> + <object class="GtkButton" id="log-in-button"> + <property name="label" translatable="yes">Login</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="has_default">False</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">5</property> + </packing> + </child> </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="pack_type">end</property> + <property name="position">2</property> + </packing> </child> </object> </child> </object> + </child> + </object> </interface> Index: gdm-3.2.0/gui/simple-greeter/gdm-greeter-login-window.ui.new =================================================================== --- /dev/null +++ gdm-3.2.0/gui/simple-greeter/gdm-greeter-login-window.ui.new @@ -0,0 +1,239 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <requires lib="gtk+" version="2.16"/> + <object class="GtkFrame" id="window-frame"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label_xalign">0</property> + <property name="shadow_type">out</property> + <child> + <object class="GtkAlignment" id="alignment2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="border_width">24</property> + <child> + <object class="GtkVBox" id="window-box"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">10</property> + <child> + <object class="GtkBox" id="hbox1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">12</property> + <child> + <object class="GtkImage" id="logo-image"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="yalign">0</property> + <property name="pixel_size">48</property> + <property name="icon_name">computer</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="vbox1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="computer-info-version-label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Version</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="computer-info-name-label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Computer Name</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkLabel" id="auth-banner-label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="justify">center</property> + <property name="wrap">True</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment3"> + <property name="visible">True</property> + <child> + <object class="GtkVBox" id="selection-box"> + <property name="visible">True</property> + <property name="spacing">2</property> + <child> + <object class="GtkAlignment" id="task-list-alignment"> + <property name="visible">True</property> + <property name="xalign">1.0</property> + <property name="xscale">0.0</property> + <child> + <object class="GdmExtensionList" id="extension-list"> + <property name="visible">False</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GdmUserChooserWidget" id="user-chooser"> + <property name="visible">False</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkHBox" id="auth-page-box"> + <property name="visible">True</property> + <property name="border_width">10</property> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + </packing> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">4</property> + </packing> + </child> + <child> + <object class="GtkHButtonBox" id="buttonbox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">6</property> + <property name="layout_style">end</property> + <child> + <object class="GdmSessionOptionWidget" id="session-option-widget"> + <property name="visible">False</property> + <property name="xscale">0.0</property> + <property name="yscale">0.0</property> + <property name="xalign">0.0</property> + <property name="yalign">1.0</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">0</property> + <property name="secondary">True</property> + </packing> + </child> + <child> + <object class="GtkButton" id="cancel-button"> + <property name="label" translatable="yes">Cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkButton" id="unlock-button"> + <property name="label" translatable="yes">Unlock</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">True</property> + <property name="use_action_appearance">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + </packing> + </child> + <child> + <object class="GtkButton" id="log-in-button"> + <property name="label" translatable="yes">Login</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="has_default">False</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">5</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="pack_type">end</property> + <property name="position">2</property> + </packing> + </child> + </object> + </child> + </object> + </child> + </object> +</interface>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor