~ubuntu-branches/ubuntu/utopic/unity-greeter/utopic

« back to all changes in this revision

Viewing changes to src/main-window.c

  • Committer: Package Import Robot
  • Author(s): Michael Terry
  • Date: 2013-01-04 10:37:29 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: package-import@ubuntu.com-20130104103729-ydal31wfuhirb8zb
Tags: upstream-13.04.0
ImportĀ upstreamĀ versionĀ 13.04.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* main-window.c generated by valac 0.16.1, the Vala compiler
 
1
/* main-window.c generated by valac 0.18.1, the Vala compiler
2
2
 * generated from main-window.vala, do not modify */
3
3
 
4
4
/* -*- Mode: Vala; indent-tabs-mode: nil; tab-width: 4 -*-
122
122
#define _cairo_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_destroy (var), NULL)))
123
123
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
124
124
 
 
125
#define TYPE_FLAT_BUTTON (flat_button_get_type ())
 
126
#define FLAT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAT_BUTTON, FlatButton))
 
127
#define FLAT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAT_BUTTON, FlatButtonClass))
 
128
#define IS_FLAT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAT_BUTTON))
 
129
#define IS_FLAT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAT_BUTTON))
 
130
#define FLAT_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAT_BUTTON, FlatButtonClass))
 
131
 
 
132
typedef struct _FlatButton FlatButton;
 
133
typedef struct _FlatButtonClass FlatButtonClass;
 
134
 
125
135
#define TYPE_UNITY_GREETER (unity_greeter_get_type ())
126
136
#define UNITY_GREETER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_UNITY_GREETER, UnityGreeter))
127
137
#define UNITY_GREETER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_UNITY_GREETER, UnityGreeterClass))
256
266
#define UG_SETTINGS_KEY_BACKGROUND_LOGO "background-logo"
257
267
MenuBar* menu_bar_new (Background* bg, GtkAccelGroup* ag);
258
268
MenuBar* menu_bar_construct (GType object_type, Background* bg, GtkAccelGroup* ag);
 
269
FlatButton* flat_button_new (void);
 
270
FlatButton* flat_button_construct (GType object_type);
 
271
GType flat_button_get_type (void) G_GNUC_CONST;
259
272
#define GREETER_LIST_BORDER 4
260
273
static void _main_window_pop_list_gtk_button_clicked (GtkButton* _sender, gpointer self);
261
274
ListStack* list_stack_new (void);
330
343
        self = (MainWindow*) base;
331
344
        g_return_if_fail (allocation != NULL);
332
345
        _tmp0_ = *allocation;
333
 
        GTK_WIDGET_CLASS (main_window_parent_class)->size_allocate ((GtkWidget*) GTK_WINDOW (self), &_tmp0_);
 
346
        GTK_WIDGET_CLASS (main_window_parent_class)->size_allocate ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_WINDOW, GtkWindow), &_tmp0_);
334
347
        _tmp1_ = self->priv->hbox;
335
348
        if (_tmp1_ != NULL) {
336
349
                GtkBox* _tmp2_;
757
770
        Background* _tmp0_;
758
771
        MenuBar* _tmp1_;
759
772
        UserList* _tmp2_;
760
 
        GreeterList* _tmp3_;
761
773
        g_return_if_fail (self != NULL);
762
774
        _tmp0_ = self->priv->background;
763
775
        _tmp1_ = self->menubar;
764
776
        _tmp2_ = user_list_new (_tmp0_, _tmp1_);
765
 
        _tmp3_ = (GreeterList*) g_object_ref_sink (_tmp2_);
 
777
        g_object_ref_sink (_tmp2_);
766
778
        _g_object_unref0 (greeter_list);
767
 
        greeter_list = _tmp3_;
 
779
        greeter_list = (GreeterList*) _tmp2_;
768
780
        gtk_widget_show ((GtkWidget*) greeter_list);
769
781
        unity_greeter_add_style_class ((GtkWidget*) greeter_list);
770
782
        main_window_push_list (self, greeter_list);
839
851
                        GdkEventKey _tmp10_;
840
852
                        gboolean _tmp11_ = FALSE;
841
853
                        _tmp10_ = *event;
842
 
                        _tmp11_ = GTK_WIDGET_CLASS (main_window_parent_class)->key_press_event ((GtkWidget*) GTK_WINDOW (self), &_tmp10_);
 
854
                        _tmp11_ = GTK_WIDGET_CLASS (main_window_parent_class)->key_press_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, GTK_TYPE_WINDOW, GtkWindow), &_tmp10_);
843
855
                        result = _tmp11_;
844
856
                        _g_object_unref0 (top);
845
857
                        return result;
907
919
        cairo_surface_t* _tmp12_ = NULL;
908
920
        Background* _tmp13_;
909
921
        Background* _tmp14_;
910
 
        Background* _tmp15_;
911
 
        gboolean _tmp16_ = FALSE;
912
 
        Background* _tmp17_;
913
 
        gchar* _tmp18_ = NULL;
914
 
        gchar* _tmp19_;
915
 
        Background* _tmp20_;
916
 
        gchar* _tmp21_ = NULL;
917
 
        gchar* _tmp22_;
918
 
        gchar* _tmp23_ = NULL;
919
 
        gchar* _tmp24_;
 
922
        gboolean _tmp15_ = FALSE;
 
923
        Background* _tmp16_;
 
924
        gchar* _tmp17_ = NULL;
 
925
        gchar* _tmp18_;
 
926
        Background* _tmp19_;
 
927
        gchar* _tmp20_ = NULL;
 
928
        gchar* _tmp21_;
 
929
        gchar* _tmp22_ = NULL;
 
930
        gchar* _tmp23_;
 
931
        Background* _tmp24_;
920
932
        Background* _tmp25_;
921
933
        Background* _tmp26_;
922
 
        Background* _tmp27_;
 
934
        GtkBox* _tmp27_;
923
935
        GtkBox* _tmp28_;
924
 
        GtkBox* _tmp29_;
 
936
        Background* _tmp29_;
925
937
        GtkBox* _tmp30_;
926
 
        Background* _tmp31_;
927
 
        GtkBox* _tmp32_;
928
 
        GtkEventBox* _tmp33_;
929
 
        GtkEventBox* _tmp34_;
 
938
        GtkEventBox* _tmp31_;
930
939
        GtkEventBox* menubox;
931
 
        GtkAlignment* _tmp35_;
932
 
        GtkAlignment* _tmp36_;
 
940
        GtkAlignment* _tmp32_;
933
941
        GtkAlignment* menualign;
934
 
        GtkEventBox* _tmp50_;
935
 
        GtkEventBox* _tmp51_;
936
 
        GtkAlignment* _tmp52_;
937
 
        GtkEventBox* _tmp53_;
938
 
        GtkAlignment* _tmp54_;
939
 
        GtkBox* _tmp55_;
940
 
        GtkEventBox* _tmp56_;
941
 
        GtkAlignment* _tmp57_;
942
 
        GtkEventBox* _tmp58_;
943
 
        Background* _tmp59_;
944
 
        GtkAccelGroup* _tmp60_;
 
942
        GtkEventBox* _tmp46_;
 
943
        GtkEventBox* _tmp47_;
 
944
        GtkAlignment* _tmp48_;
 
945
        GtkEventBox* _tmp49_;
 
946
        GtkAlignment* _tmp50_;
 
947
        GtkBox* _tmp51_;
 
948
        GtkEventBox* _tmp52_;
 
949
        GtkAlignment* _tmp53_;
 
950
        GtkEventBox* _tmp54_;
 
951
        Background* _tmp55_;
 
952
        GtkAccelGroup* _tmp56_;
 
953
        MenuBar* _tmp57_;
 
954
        MenuBar* _tmp58_;
 
955
        GtkAlignment* _tmp59_;
 
956
        MenuBar* _tmp60_;
945
957
        MenuBar* _tmp61_;
946
 
        MenuBar* _tmp62_;
947
 
        MenuBar* _tmp63_;
948
 
        GtkAlignment* _tmp64_;
949
 
        MenuBar* _tmp65_;
950
 
        MenuBar* _tmp66_;
951
 
        GtkBox* _tmp67_;
952
 
        GtkBox* _tmp68_;
953
 
        GtkBox* _tmp69_;
954
 
        GtkBox* _tmp70_;
 
958
        GtkBox* _tmp62_;
 
959
        GtkBox* _tmp63_;
 
960
        GtkBox* _tmp64_;
 
961
        GtkBox* _tmp65_;
 
962
        GtkBox* _tmp66_;
 
963
        GtkAlignment* _tmp67_;
 
964
        GtkAlignment* align;
 
965
        GtkAlignment* _tmp68_;
 
966
        GtkAlignment* _tmp69_;
 
967
        GtkAlignment* _tmp70_;
955
968
        GtkBox* _tmp71_;
956
 
        GtkBox* _tmp72_;
957
 
        GtkAlignment* _tmp73_;
958
 
        GtkAlignment* _tmp74_;
959
 
        GtkAlignment* align;
960
 
        GtkAlignment* _tmp75_;
961
 
        GtkAlignment* _tmp76_;
962
 
        GtkAlignment* _tmp77_;
963
 
        GtkBox* _tmp78_;
964
 
        GtkAlignment* _tmp79_;
 
969
        GtkAlignment* _tmp72_;
 
970
        FlatButton* _tmp73_;
 
971
        GtkButton* _tmp74_;
 
972
        gchar* _tmp75_ = NULL;
 
973
        gchar* _tmp76_;
 
974
        GtkImage* _tmp77_;
 
975
        GtkImage* _tmp78_;
 
976
        GtkImage* image;
 
977
        GtkImage* _tmp79_;
965
978
        GtkButton* _tmp80_;
966
979
        GtkButton* _tmp81_;
967
 
        gchar* _tmp82_ = NULL;
968
 
        gchar* _tmp83_;
969
 
        GtkImage* _tmp84_;
970
 
        GtkImage* _tmp85_;
971
 
        GtkImage* _tmp86_;
972
 
        GtkImage* image;
973
 
        GtkImage* _tmp87_;
974
 
        GtkButton* _tmp88_;
975
 
        GtkButton* _tmp89_;
976
 
        GtkImage* _tmp90_;
977
 
        GtkButton* _tmp91_;
978
 
        GtkButton* _tmp92_;
979
 
        GtkAlignment* _tmp93_;
980
 
        GtkButton* _tmp94_;
981
 
        GtkAlignment* _tmp95_;
982
 
        GtkAlignment* _tmp96_;
983
 
        GtkAlignment* _tmp97_;
984
 
        GtkBox* _tmp98_;
985
 
        GtkAlignment* _tmp99_;
986
 
        ListStack* _tmp100_;
987
 
        ListStack* _tmp101_;
988
 
        ListStack* _tmp102_;
989
 
        GtkAlignment* _tmp103_;
990
 
        ListStack* _tmp104_;
991
 
        UnityGreeter* _tmp105_;
992
 
        gboolean _tmp106_;
 
980
        GtkImage* _tmp82_;
 
981
        GtkButton* _tmp83_;
 
982
        GtkAlignment* _tmp84_;
 
983
        GtkButton* _tmp85_;
 
984
        GtkAlignment* _tmp86_;
 
985
        GtkAlignment* _tmp87_;
 
986
        GtkBox* _tmp88_;
 
987
        GtkAlignment* _tmp89_;
 
988
        ListStack* _tmp90_;
 
989
        ListStack* _tmp91_;
 
990
        GtkAlignment* _tmp92_;
 
991
        ListStack* _tmp93_;
 
992
        UnityGreeter* _tmp94_;
 
993
        gboolean _tmp95_;
993
994
        GError * _inner_error_ = NULL;
994
995
        parent_class = G_OBJECT_CLASS (main_window_parent_class);
995
996
        obj = parent_class->constructor (type, n_construct_properties, construct_properties);
996
 
        self = MAIN_WINDOW (obj);
 
997
        self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MAIN_WINDOW, MainWindow);
997
998
        _tmp0_ = gtk_widget_get_events ((GtkWidget*) self);
998
999
        _tmp1_ = _tmp0_;
999
1000
        gtk_widget_set_events ((GtkWidget*) self, _tmp1_ | GDK_POINTER_MOTION_MASK);
1019
1020
        _tmp11_ = _tmp10_;
1020
1021
        _tmp12_ = cairo_get_target (_tmp11_);
1021
1022
        _tmp13_ = background_new (_tmp12_);
1022
 
        _tmp14_ = g_object_ref_sink (_tmp13_);
 
1023
        g_object_ref_sink (_tmp13_);
1023
1024
        _g_object_unref0 (self->priv->background);
1024
 
        self->priv->background = _tmp14_;
 
1025
        self->priv->background = _tmp13_;
1025
1026
        _cairo_destroy0 (_tmp11_);
1026
 
        _tmp15_ = self->priv->background;
1027
 
        _tmp16_ = ug_settings_get_boolean (UG_SETTINGS_KEY_DRAW_GRID);
1028
 
        background_set_draw_grid (_tmp15_, _tmp16_);
1029
 
        _tmp17_ = self->priv->background;
1030
 
        _tmp18_ = ug_settings_get_string (UG_SETTINGS_KEY_BACKGROUND);
1031
 
        _tmp19_ = _tmp18_;
1032
 
        background_set_default_background (_tmp17_, _tmp19_);
1033
 
        _g_free0 (_tmp19_);
1034
 
        _tmp20_ = self->priv->background;
1035
 
        _tmp21_ = ug_settings_get_string (UG_SETTINGS_KEY_LOGO);
1036
 
        _tmp22_ = _tmp21_;
1037
 
        _tmp23_ = ug_settings_get_string (UG_SETTINGS_KEY_BACKGROUND_LOGO);
1038
 
        _tmp24_ = _tmp23_;
1039
 
        background_set_logo (_tmp20_, _tmp22_, _tmp24_);
1040
 
        _g_free0 (_tmp24_);
1041
 
        _g_free0 (_tmp22_);
 
1027
        _tmp14_ = self->priv->background;
 
1028
        _tmp15_ = ug_settings_get_boolean (UG_SETTINGS_KEY_DRAW_GRID);
 
1029
        background_set_draw_grid (_tmp14_, _tmp15_);
 
1030
        _tmp16_ = self->priv->background;
 
1031
        _tmp17_ = ug_settings_get_string (UG_SETTINGS_KEY_BACKGROUND);
 
1032
        _tmp18_ = _tmp17_;
 
1033
        background_set_default_background (_tmp16_, _tmp18_);
 
1034
        _g_free0 (_tmp18_);
 
1035
        _tmp19_ = self->priv->background;
 
1036
        _tmp20_ = ug_settings_get_string (UG_SETTINGS_KEY_LOGO);
 
1037
        _tmp21_ = _tmp20_;
 
1038
        _tmp22_ = ug_settings_get_string (UG_SETTINGS_KEY_BACKGROUND_LOGO);
 
1039
        _tmp23_ = _tmp22_;
 
1040
        background_set_logo (_tmp19_, _tmp21_, _tmp23_);
 
1041
        _g_free0 (_tmp23_);
 
1042
        _g_free0 (_tmp21_);
 
1043
        _tmp24_ = self->priv->background;
 
1044
        gtk_widget_show ((GtkWidget*) _tmp24_);
1042
1045
        _tmp25_ = self->priv->background;
1043
 
        gtk_widget_show ((GtkWidget*) _tmp25_);
 
1046
        gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp25_);
1044
1047
        _tmp26_ = self->priv->background;
1045
 
        gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp26_);
1046
 
        _tmp27_ = self->priv->background;
1047
 
        unity_greeter_add_style_class ((GtkWidget*) _tmp27_);
1048
 
        _tmp28_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
1049
 
        _tmp29_ = g_object_ref_sink (_tmp28_);
 
1048
        unity_greeter_add_style_class ((GtkWidget*) _tmp26_);
 
1049
        _tmp27_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 
1050
        g_object_ref_sink (_tmp27_);
1050
1051
        _g_object_unref0 (self->priv->login_box);
1051
 
        self->priv->login_box = _tmp29_;
 
1052
        self->priv->login_box = _tmp27_;
 
1053
        _tmp28_ = self->priv->login_box;
 
1054
        gtk_widget_show ((GtkWidget*) _tmp28_);
 
1055
        _tmp29_ = self->priv->background;
1052
1056
        _tmp30_ = self->priv->login_box;
1053
 
        gtk_widget_show ((GtkWidget*) _tmp30_);
1054
 
        _tmp31_ = self->priv->background;
1055
 
        _tmp32_ = self->priv->login_box;
1056
 
        gtk_container_add ((GtkContainer*) _tmp31_, (GtkWidget*) _tmp32_);
1057
 
        _tmp33_ = (GtkEventBox*) gtk_event_box_new ();
1058
 
        _tmp34_ = g_object_ref_sink (_tmp33_);
1059
 
        menubox = _tmp34_;
1060
 
        _tmp35_ = (GtkAlignment*) gtk_alignment_new (0.0f, 0.0f, 1.0f, 0.0f);
1061
 
        _tmp36_ = g_object_ref_sink (_tmp35_);
1062
 
        menualign = _tmp36_;
 
1057
        gtk_container_add ((GtkContainer*) _tmp29_, (GtkWidget*) _tmp30_);
 
1058
        _tmp31_ = (GtkEventBox*) gtk_event_box_new ();
 
1059
        g_object_ref_sink (_tmp31_);
 
1060
        menubox = _tmp31_;
 
1061
        _tmp32_ = (GtkAlignment*) gtk_alignment_new (0.0f, 0.0f, 1.0f, 0.0f);
 
1062
        g_object_ref_sink (_tmp32_);
 
1063
        menualign = _tmp32_;
1063
1064
        {
1064
 
                gchar* _tmp37_ = NULL;
 
1065
                gchar* _tmp33_ = NULL;
1065
1066
                gchar* shadow_path;
1066
 
                GtkCssProvider* _tmp38_;
 
1067
                GtkCssProvider* _tmp34_;
1067
1068
                GtkCssProvider* style;
1068
 
                GtkCssProvider* _tmp39_;
1069
 
                const gchar* _tmp40_;
1070
 
                gchar* _tmp41_ = NULL;
1071
 
                gchar* _tmp42_;
1072
 
                GtkEventBox* _tmp43_;
1073
 
                GtkStyleContext* _tmp44_ = NULL;
1074
 
                GtkStyleContext* _tmp45_;
 
1069
                GtkCssProvider* _tmp35_;
 
1070
                const gchar* _tmp36_;
 
1071
                gchar* _tmp37_ = NULL;
 
1072
                gchar* _tmp38_;
 
1073
                GtkEventBox* _tmp39_;
 
1074
                GtkStyleContext* _tmp40_ = NULL;
 
1075
                GtkStyleContext* _tmp41_;
1075
1076
                GtkStyleContext* context;
1076
 
                GtkStyleContext* _tmp46_;
1077
 
                GtkCssProvider* _tmp47_;
1078
 
                _tmp37_ = g_build_filename (PKGDATADIR, "shadow.png", NULL, NULL);
1079
 
                shadow_path = _tmp37_;
1080
 
                _tmp38_ = gtk_css_provider_new ();
1081
 
                style = _tmp38_;
1082
 
                _tmp39_ = style;
1083
 
                _tmp40_ = shadow_path;
1084
 
                _tmp41_ = g_strdup_printf ("* {background-color: transparent;\n" \
 
1077
                GtkStyleContext* _tmp42_;
 
1078
                GtkCssProvider* _tmp43_;
 
1079
                _tmp33_ = g_build_filename (PKGDATADIR, "shadow.png", NULL, NULL);
 
1080
                shadow_path = _tmp33_;
 
1081
                _tmp34_ = gtk_css_provider_new ();
 
1082
                style = _tmp34_;
 
1083
                _tmp35_ = style;
 
1084
                _tmp36_ = shadow_path;
 
1085
                _tmp37_ = g_strdup_printf ("* {background-color: transparent;\n" \
1085
1086
"                                      background-image: url('%s');\n" \
1086
1087
"                                      background-repeat: repeat;\n" \
1087
 
"                                     }", _tmp40_);
1088
 
                _tmp42_ = _tmp41_;
1089
 
                gtk_css_provider_load_from_data (_tmp39_, _tmp42_, (gssize) (-1), &_inner_error_);
1090
 
                _g_free0 (_tmp42_);
 
1088
"                                     }", _tmp36_);
 
1089
                _tmp38_ = _tmp37_;
 
1090
                gtk_css_provider_load_from_data (_tmp35_, _tmp38_, (gssize) (-1), &_inner_error_);
 
1091
                _g_free0 (_tmp38_);
1091
1092
                if (_inner_error_ != NULL) {
1092
1093
                        _g_object_unref0 (style);
1093
1094
                        _g_free0 (shadow_path);
1094
 
                        goto __catch6_g_error;
 
1095
                        goto __catch9_g_error;
1095
1096
                }
1096
 
                _tmp43_ = menubox;
1097
 
                _tmp44_ = gtk_widget_get_style_context ((GtkWidget*) _tmp43_);
1098
 
                _tmp45_ = _g_object_ref0 (_tmp44_);
1099
 
                context = _tmp45_;
1100
 
                _tmp46_ = context;
1101
 
                _tmp47_ = style;
1102
 
                gtk_style_context_add_provider (_tmp46_, (GtkStyleProvider*) _tmp47_, (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
 
1097
                _tmp39_ = menubox;
 
1098
                _tmp40_ = gtk_widget_get_style_context ((GtkWidget*) _tmp39_);
 
1099
                _tmp41_ = _g_object_ref0 (_tmp40_);
 
1100
                context = _tmp41_;
 
1101
                _tmp42_ = context;
 
1102
                _tmp43_ = style;
 
1103
                gtk_style_context_add_provider (_tmp42_, (GtkStyleProvider*) _tmp43_, (guint) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
1103
1104
                _g_object_unref0 (context);
1104
1105
                _g_object_unref0 (style);
1105
1106
                _g_free0 (shadow_path);
1106
1107
        }
1107
 
        goto __finally6;
1108
 
        __catch6_g_error:
 
1108
        goto __finally9;
 
1109
        __catch9_g_error:
1109
1110
        {
1110
1111
                GError* e = NULL;
1111
 
                GError* _tmp48_;
1112
 
                const gchar* _tmp49_;
 
1112
                GError* _tmp44_;
 
1113
                const gchar* _tmp45_;
1113
1114
                e = _inner_error_;
1114
1115
                _inner_error_ = NULL;
1115
 
                _tmp48_ = e;
1116
 
                _tmp49_ = _tmp48_->message;
1117
 
                g_debug ("main-window.vala:82: Internal error loading menubox style: %s", _tmp49_);
 
1116
                _tmp44_ = e;
 
1117
                _tmp45_ = _tmp44_->message;
 
1118
                g_debug ("main-window.vala:82: Internal error loading menubox style: %s", _tmp45_);
1118
1119
                _g_error_free0 (e);
1119
1120
        }
1120
 
        __finally6:
 
1121
        __finally9:
1121
1122
        if (_inner_error_ != NULL) {
1122
1123
                _g_object_unref0 (menualign);
1123
1124
                _g_object_unref0 (menubox);
1125
1126
                g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
1126
1127
                g_clear_error (&_inner_error_);
1127
1128
        }
1128
 
        _tmp50_ = menubox;
1129
 
        gtk_widget_set_size_request ((GtkWidget*) _tmp50_, -1, MAIN_WINDOW_MENUBAR_HEIGHT);
1130
 
        _tmp51_ = menubox;
1131
 
        gtk_widget_show ((GtkWidget*) _tmp51_);
1132
 
        _tmp52_ = menualign;
1133
 
        gtk_widget_show ((GtkWidget*) _tmp52_);
1134
 
        _tmp53_ = menubox;
1135
 
        _tmp54_ = menualign;
1136
 
        gtk_container_add ((GtkContainer*) _tmp53_, (GtkWidget*) _tmp54_);
1137
 
        _tmp55_ = self->priv->login_box;
1138
 
        _tmp56_ = menubox;
1139
 
        gtk_container_add ((GtkContainer*) _tmp55_, (GtkWidget*) _tmp56_);
1140
 
        _tmp57_ = menualign;
1141
 
        unity_greeter_add_style_class ((GtkWidget*) _tmp57_);
1142
 
        _tmp58_ = menubox;
1143
 
        unity_greeter_add_style_class ((GtkWidget*) _tmp58_);
1144
 
        _tmp59_ = self->priv->background;
1145
 
        _tmp60_ = accel_group;
1146
 
        _tmp61_ = menu_bar_new (_tmp59_, _tmp60_);
1147
 
        _tmp62_ = g_object_ref_sink (_tmp61_);
 
1129
        _tmp46_ = menubox;
 
1130
        gtk_widget_set_size_request ((GtkWidget*) _tmp46_, -1, MAIN_WINDOW_MENUBAR_HEIGHT);
 
1131
        _tmp47_ = menubox;
 
1132
        gtk_widget_show ((GtkWidget*) _tmp47_);
 
1133
        _tmp48_ = menualign;
 
1134
        gtk_widget_show ((GtkWidget*) _tmp48_);
 
1135
        _tmp49_ = menubox;
 
1136
        _tmp50_ = menualign;
 
1137
        gtk_container_add ((GtkContainer*) _tmp49_, (GtkWidget*) _tmp50_);
 
1138
        _tmp51_ = self->priv->login_box;
 
1139
        _tmp52_ = menubox;
 
1140
        gtk_container_add ((GtkContainer*) _tmp51_, (GtkWidget*) _tmp52_);
 
1141
        _tmp53_ = menualign;
 
1142
        unity_greeter_add_style_class ((GtkWidget*) _tmp53_);
 
1143
        _tmp54_ = menubox;
 
1144
        unity_greeter_add_style_class ((GtkWidget*) _tmp54_);
 
1145
        _tmp55_ = self->priv->background;
 
1146
        _tmp56_ = accel_group;
 
1147
        _tmp57_ = menu_bar_new (_tmp55_, _tmp56_);
 
1148
        g_object_ref_sink (_tmp57_);
1148
1149
        _g_object_unref0 (self->menubar);
1149
 
        self->menubar = _tmp62_;
1150
 
        _tmp63_ = self->menubar;
1151
 
        gtk_widget_show ((GtkWidget*) _tmp63_);
1152
 
        _tmp64_ = menualign;
1153
 
        _tmp65_ = self->menubar;
1154
 
        gtk_container_add ((GtkContainer*) _tmp64_, (GtkWidget*) _tmp65_);
1155
 
        _tmp66_ = self->menubar;
1156
 
        unity_greeter_add_style_class ((GtkWidget*) _tmp66_);
1157
 
        _tmp67_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
1158
 
        _tmp68_ = g_object_ref_sink (_tmp67_);
 
1150
        self->menubar = _tmp57_;
 
1151
        _tmp58_ = self->menubar;
 
1152
        gtk_widget_show ((GtkWidget*) _tmp58_);
 
1153
        _tmp59_ = menualign;
 
1154
        _tmp60_ = self->menubar;
 
1155
        gtk_container_add ((GtkContainer*) _tmp59_, (GtkWidget*) _tmp60_);
 
1156
        _tmp61_ = self->menubar;
 
1157
        unity_greeter_add_style_class ((GtkWidget*) _tmp61_);
 
1158
        _tmp62_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 
1159
        g_object_ref_sink (_tmp62_);
1159
1160
        _g_object_unref0 (self->priv->hbox);
1160
 
        self->priv->hbox = _tmp68_;
1161
 
        _tmp69_ = self->priv->hbox;
1162
 
        g_object_set ((GtkWidget*) _tmp69_, "expand", TRUE, NULL);
1163
 
        _tmp70_ = self->priv->hbox;
 
1161
        self->priv->hbox = _tmp62_;
 
1162
        _tmp63_ = self->priv->hbox;
 
1163
        g_object_set ((GtkWidget*) _tmp63_, "expand", TRUE, NULL);
 
1164
        _tmp64_ = self->priv->hbox;
 
1165
        gtk_widget_show ((GtkWidget*) _tmp64_);
 
1166
        _tmp65_ = self->priv->login_box;
 
1167
        _tmp66_ = self->priv->hbox;
 
1168
        gtk_container_add ((GtkContainer*) _tmp65_, (GtkWidget*) _tmp66_);
 
1169
        _tmp67_ = (GtkAlignment*) gtk_alignment_new (0.5f, 0.5f, 0.0f, 0.0f);
 
1170
        g_object_ref_sink (_tmp67_);
 
1171
        align = _tmp67_;
 
1172
        _tmp68_ = align;
 
1173
        gtk_widget_set_size_request ((GtkWidget*) _tmp68_, grid_size, -1);
 
1174
        _tmp69_ = align;
 
1175
        gtk_widget_set_margin_bottom ((GtkWidget*) _tmp69_, MAIN_WINDOW_MENUBAR_HEIGHT);
 
1176
        _tmp70_ = align;
1164
1177
        gtk_widget_show ((GtkWidget*) _tmp70_);
1165
 
        _tmp71_ = self->priv->login_box;
1166
 
        _tmp72_ = self->priv->hbox;
 
1178
        _tmp71_ = self->priv->hbox;
 
1179
        _tmp72_ = align;
1167
1180
        gtk_container_add ((GtkContainer*) _tmp71_, (GtkWidget*) _tmp72_);
1168
 
        _tmp73_ = (GtkAlignment*) gtk_alignment_new (0.5f, 0.5f, 0.0f, 0.0f);
1169
 
        _tmp74_ = g_object_ref_sink (_tmp73_);
1170
 
        align = _tmp74_;
1171
 
        _tmp75_ = align;
1172
 
        gtk_widget_set_size_request ((GtkWidget*) _tmp75_, grid_size, -1);
1173
 
        _tmp76_ = align;
1174
 
        gtk_widget_set_margin_bottom ((GtkWidget*) _tmp76_, MAIN_WINDOW_MENUBAR_HEIGHT);
1175
 
        _tmp77_ = align;
1176
 
        gtk_widget_show ((GtkWidget*) _tmp77_);
1177
 
        _tmp78_ = self->priv->hbox;
1178
 
        _tmp79_ = align;
1179
 
        gtk_container_add ((GtkContainer*) _tmp78_, (GtkWidget*) _tmp79_);
1180
 
        _tmp80_ = (GtkButton*) gtk_button_new ();
1181
 
        _tmp81_ = g_object_ref_sink (_tmp80_);
 
1181
        _tmp73_ = flat_button_new ();
 
1182
        g_object_ref_sink (_tmp73_);
1182
1183
        _g_object_unref0 (self->priv->back_button);
1183
 
        self->priv->back_button = _tmp81_;
1184
 
        _tmp82_ = g_build_filename (PKGDATADIR, "arrow_left.png", NULL, NULL);
1185
 
        _tmp83_ = _tmp82_;
1186
 
        _tmp84_ = (GtkImage*) gtk_image_new_from_file (_tmp83_);
1187
 
        _tmp85_ = g_object_ref_sink (_tmp84_);
1188
 
        _tmp86_ = _tmp85_;
1189
 
        _g_free0 (_tmp83_);
1190
 
        image = _tmp86_;
1191
 
        _tmp87_ = image;
 
1184
        self->priv->back_button = (GtkButton*) _tmp73_;
 
1185
        _tmp74_ = self->priv->back_button;
 
1186
        gtk_button_set_focus_on_click (_tmp74_, FALSE);
 
1187
        _tmp75_ = g_build_filename (PKGDATADIR, "arrow_left.png", NULL, NULL);
 
1188
        _tmp76_ = _tmp75_;
 
1189
        _tmp77_ = (GtkImage*) gtk_image_new_from_file (_tmp76_);
 
1190
        g_object_ref_sink (_tmp77_);
 
1191
        _tmp78_ = _tmp77_;
 
1192
        _g_free0 (_tmp76_);
 
1193
        image = _tmp78_;
 
1194
        _tmp79_ = image;
 
1195
        gtk_widget_show ((GtkWidget*) _tmp79_);
 
1196
        _tmp80_ = self->priv->back_button;
 
1197
        gtk_widget_set_size_request ((GtkWidget*) _tmp80_, grid_size - (GREETER_LIST_BORDER * 2), grid_size - (GREETER_LIST_BORDER * 2));
 
1198
        _tmp81_ = self->priv->back_button;
 
1199
        _tmp82_ = image;
 
1200
        gtk_container_add ((GtkContainer*) _tmp81_, (GtkWidget*) _tmp82_);
 
1201
        _tmp83_ = self->priv->back_button;
 
1202
        g_signal_connect_object (_tmp83_, "clicked", (GCallback) _main_window_pop_list_gtk_button_clicked, self, 0);
 
1203
        _tmp84_ = align;
 
1204
        _tmp85_ = self->priv->back_button;
 
1205
        gtk_container_add ((GtkContainer*) _tmp84_, (GtkWidget*) _tmp85_);
 
1206
        _tmp86_ = (GtkAlignment*) gtk_alignment_new (0.0f, 0.5f, 0.0f, 1.0f);
 
1207
        g_object_ref_sink (_tmp86_);
 
1208
        _g_object_unref0 (align);
 
1209
        align = _tmp86_;
 
1210
        _tmp87_ = align;
1192
1211
        gtk_widget_show ((GtkWidget*) _tmp87_);
1193
 
        _tmp88_ = self->priv->back_button;
1194
 
        gtk_widget_set_size_request ((GtkWidget*) _tmp88_, grid_size - (GREETER_LIST_BORDER * 2), grid_size - (GREETER_LIST_BORDER * 2));
1195
 
        _tmp89_ = self->priv->back_button;
1196
 
        _tmp90_ = image;
1197
 
        gtk_container_add ((GtkContainer*) _tmp89_, (GtkWidget*) _tmp90_);
1198
 
        _tmp91_ = self->priv->back_button;
1199
 
        unity_greeter_add_style_class ((GtkWidget*) _tmp91_);
1200
 
        _tmp92_ = self->priv->back_button;
1201
 
        g_signal_connect_object (_tmp92_, "clicked", (GCallback) _main_window_pop_list_gtk_button_clicked, self, 0);
1202
 
        _tmp93_ = align;
1203
 
        _tmp94_ = self->priv->back_button;
1204
 
        gtk_container_add ((GtkContainer*) _tmp93_, (GtkWidget*) _tmp94_);
1205
 
        _tmp95_ = (GtkAlignment*) gtk_alignment_new (0.0f, 0.5f, 0.0f, 1.0f);
1206
 
        _tmp96_ = g_object_ref_sink (_tmp95_);
1207
 
        _g_object_unref0 (align);
1208
 
        align = _tmp96_;
1209
 
        _tmp97_ = align;
1210
 
        gtk_widget_show ((GtkWidget*) _tmp97_);
1211
 
        _tmp98_ = self->priv->hbox;
1212
 
        _tmp99_ = align;
1213
 
        gtk_container_add ((GtkContainer*) _tmp98_, (GtkWidget*) _tmp99_);
1214
 
        _tmp100_ = list_stack_new ();
1215
 
        _tmp101_ = g_object_ref_sink (_tmp100_);
 
1212
        _tmp88_ = self->priv->hbox;
 
1213
        _tmp89_ = align;
 
1214
        gtk_container_add ((GtkContainer*) _tmp88_, (GtkWidget*) _tmp89_);
 
1215
        _tmp90_ = list_stack_new ();
 
1216
        g_object_ref_sink (_tmp90_);
1216
1217
        _g_object_unref0 (self->stack);
1217
 
        self->stack = _tmp101_;
1218
 
        _tmp102_ = self->stack;
1219
 
        gtk_widget_show ((GtkWidget*) _tmp102_);
1220
 
        _tmp103_ = align;
1221
 
        _tmp104_ = self->stack;
1222
 
        gtk_container_add ((GtkContainer*) _tmp103_, (GtkWidget*) _tmp104_);
 
1218
        self->stack = _tmp90_;
 
1219
        _tmp91_ = self->stack;
 
1220
        gtk_widget_show ((GtkWidget*) _tmp91_);
 
1221
        _tmp92_ = align;
 
1222
        _tmp93_ = self->stack;
 
1223
        gtk_container_add ((GtkContainer*) _tmp92_, (GtkWidget*) _tmp93_);
1223
1224
        main_window_add_user_list (self);
1224
 
        _tmp105_ = unity_greeter_singleton;
1225
 
        _tmp106_ = _tmp105_->test_mode;
1226
 
        if (_tmp106_) {
1227
 
                Monitor* _tmp107_;
1228
 
                Monitor* _tmp108_;
1229
 
                Background* _tmp109_;
1230
 
                GList* _tmp110_;
1231
 
                GList* _tmp111_;
1232
 
                gconstpointer _tmp112_ = NULL;
 
1225
        _tmp94_ = unity_greeter_singleton;
 
1226
        _tmp95_ = _tmp94_->test_mode;
 
1227
        if (_tmp95_) {
 
1228
                Monitor* _tmp96_;
 
1229
                Monitor* _tmp97_;
 
1230
                Background* _tmp98_;
 
1231
                GList* _tmp99_;
 
1232
                GList* _tmp100_;
 
1233
                gconstpointer _tmp101_ = NULL;
1233
1234
                __g_list_free__monitor_unref0_0 (self->priv->monitors);
1234
1235
                self->priv->monitors = NULL;
1235
 
                _tmp107_ = monitor_new (0, 0, 800, 600);
1236
 
                self->priv->monitors = g_list_append (self->priv->monitors, _tmp107_);
1237
 
                _tmp108_ = monitor_new (800, 120, 640, 480);
1238
 
                self->priv->monitors = g_list_append (self->priv->monitors, _tmp108_);
1239
 
                _tmp109_ = self->priv->background;
1240
 
                _tmp110_ = self->priv->monitors;
1241
 
                background_set_monitors (_tmp109_, _tmp110_);
1242
 
                _tmp111_ = self->priv->monitors;
1243
 
                _tmp112_ = g_list_nth_data (_tmp111_, (guint) 0);
1244
 
                main_window_move_to_monitor (self, (Monitor*) _tmp112_);
 
1236
                _tmp96_ = monitor_new (0, 0, 800, 600);
 
1237
                self->priv->monitors = g_list_append (self->priv->monitors, _tmp96_);
 
1238
                _tmp97_ = monitor_new (800, 120, 640, 480);
 
1239
                self->priv->monitors = g_list_append (self->priv->monitors, _tmp97_);
 
1240
                _tmp98_ = self->priv->background;
 
1241
                _tmp99_ = self->priv->monitors;
 
1242
                background_set_monitors (_tmp98_, _tmp99_);
 
1243
                _tmp100_ = self->priv->monitors;
 
1244
                _tmp101_ = g_list_nth_data (_tmp100_, (guint) 0);
 
1245
                main_window_move_to_monitor (self, (Monitor*) _tmp101_);
1245
1246
                gtk_window_resize ((GtkWindow*) self, 800 + 640, 600);
1246
1247
        } else {
1247
 
                GdkScreen* _tmp113_ = NULL;
1248
 
                GdkScreen* _tmp114_;
 
1248
                GdkScreen* _tmp102_ = NULL;
 
1249
                GdkScreen* _tmp103_;
1249
1250
                GdkScreen* screen;
1250
 
                GdkScreen* _tmp115_;
1251
 
                GdkScreen* _tmp116_;
1252
 
                _tmp113_ = gtk_window_get_screen ((GtkWindow*) self);
1253
 
                _tmp114_ = _g_object_ref0 (_tmp113_);
1254
 
                screen = _tmp114_;
1255
 
                _tmp115_ = screen;
1256
 
                g_signal_connect_object (_tmp115_, "monitors-changed", (GCallback) _main_window_monitors_changed_cb_gdk_screen_monitors_changed, self, 0);
1257
 
                _tmp116_ = screen;
1258
 
                main_window_monitors_changed_cb (self, _tmp116_);
 
1251
                GdkScreen* _tmp104_;
 
1252
                GdkScreen* _tmp105_;
 
1253
                _tmp102_ = gtk_window_get_screen ((GtkWindow*) self);
 
1254
                _tmp103_ = _g_object_ref0 (_tmp102_);
 
1255
                screen = _tmp103_;
 
1256
                _tmp104_ = screen;
 
1257
                g_signal_connect_object (_tmp104_, "monitors-changed", (GCallback) _main_window_monitors_changed_cb_gdk_screen_monitors_changed, self, 0);
 
1258
                _tmp105_ = screen;
 
1259
                main_window_monitors_changed_cb (self, _tmp105_);
1259
1260
                _g_object_unref0 (screen);
1260
1261
        }
1261
1262
        _g_object_unref0 (image);
1285
1286
 
1286
1287
static void main_window_finalize (GObject* obj) {
1287
1288
        MainWindow * self;
1288
 
        self = MAIN_WINDOW (obj);
 
1289
        self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MAIN_WINDOW, MainWindow);
1289
1290
        _g_object_unref0 (self->user_list);
1290
1291
        _g_object_unref0 (self->menubar);
1291
1292
        __g_list_free__monitor_unref0_0 (self->priv->monitors);