1<interface> 2 <object class="GtkButton" id="add_user_button"> 3 <property name="visible">True</property> 4 <property name="sensitive">False</property> 5 <property name="can_focus">True</property> 6 <property name="label" translatable="yes">_Add User…</property> 7 <property name="use_underline">True</property> 8 <property name="has_tooltip">True</property> 9 <property name="tooltip_text" translatable="yes">Create a user account</property> 10 <signal name="clicked" handler="add_user" object="CcUserPanel" swapped="yes"/> 11 <style> 12 <class name="suggested-action"/> 13 </style> 14 </object> 15 <object class="GtkListStore" id="shortname-model"> 16 <columns> 17 <!-- column-name gchararray --> 18 <column type="gchararray"/> 19 </columns> 20 </object> 21 <object class="GtkListStore" id="language-model"> 22 <columns> 23 <!-- column-name gchararray --> 24 <column type="gchararray"/> 25 <!-- column-name gchararray1 --> 26 <column type="gchararray"/> 27 </columns> 28 </object> 29 <template class="CcUserPanel" parent="CcPanel"> 30 <property name="visible">True</property> 31 <child> 32 <object class="GtkBox"> 33 <property name="visible">True</property> 34 <property name="orientation">vertical</property> 35 <child> 36 <object class="CcPermissionInfobar" id="permission_infobar"> 37 <property name="visible">True</property> 38 </object> 39 </child> 40 <child> 41 <object class="GtkStack" id="stack"> 42 <property name="visible">True</property> 43 <property name="visible-child">no_users_box</property> 44 <child> 45 <object class="GtkOverlay" id="users_overlay"> 46 <property name="visible">True</property> 47 <child type="overlay"> 48 <object class="GtkRevealer" id="notification_revealer"> 49 <property name="visible">True</property> 50 <property name="halign">GTK_ALIGN_CENTER</property> 51 <property name="valign">GTK_ALIGN_START</property> 52 <child> 53 <object class="GtkBox"> 54 <property name="visible">True</property> 55 <property name="spacing">6</property> 56 <style> 57 <class name="app-notification"/> 58 </style> 59 <child> 60 <object class="GtkLabel"> 61 <property name="visible">True</property> 62 <property name="wrap">True</property> 63 <property name="max_width_chars">30</property> 64 <property name="label" translatable="yes">Your session needs to be restarted for changes to take effect</property> 65 </object> 66 </child> 67 <child> 68 <object class="GtkButton"> 69 <property name="visible">True</property> 70 <property name="can_focus">True</property> 71 <property name="valign">GTK_ALIGN_CENTER</property> 72 <property name="label" translatable="yes">Restart Now</property> 73 <signal name="clicked" handler="restart_now" object="CcUserPanel" swapped="yes"/> 74 </object> 75 </child> 76 <child> 77 <object class="GtkButton" id="dismiss_button"> 78 <property name="visible">True</property> 79 <property name="valign">GTK_ALIGN_CENTER</property> 80 <signal name="clicked" handler="dismiss_notification" object="CcUserPanel" swapped="yes"/> 81 <style> 82 <class name="flat"/> 83 </style> 84 <child> 85 <object class="GtkImage"> 86 <property name="visible">True</property> 87 <property name="icon_name">window-close-symbolic</property> 88 </object> 89 </child> 90 </object> 91 </child> 92 </object> 93 </child> 94 </object> 95 </child> 96 <child> 97 <object class="GtkBox" id="accounts_box"> 98 <property name="visible">True</property> 99 <property name="orientation">vertical</property> 100 <property name="border_width">0</property> 101 102 <child> 103 <object class="CcCarousel" id="carousel"> 104 <property name="visible">True</property> 105 <signal name="item-activated" handler="set_selected_user" object="CcUserPanel" swapped="yes"/> 106 </object> 107 <packing> 108 <property name="fill">False</property> 109 <property name="expand">False</property> 110 </packing> 111 </child> 112 113 <child> 114 <object class="GtkScrolledWindow"> 115 <property name="visible">True</property> 116 <property name="expand">True</property> 117 <property name="hscrollbar-policy">GTK_POLICY_NEVER</property> 118 119 <child> 120 <object class="HdyClamp"> 121 <property name="visible">True</property> 122 <property name="margin-top">30</property> 123 <property name="margin-bottom">30</property> 124 125 <child> 126 <object class="GtkBox"> 127 <property name="visible">True</property> 128 <property name="halign">GTK_ALIGN_CENTER</property> 129 <property name="orientation">GTK_ORIENTATION_VERTICAL</property> 130 <property name="spacing">20</property> 131 132 <child> 133 <object class="GtkBox"> 134 <property name="visible">True</property> 135 <property name="valign">GTK_ALIGN_CENTER</property> 136 <property name="spacing">10</property> 137 <property name="margin-top">10</property> 138 <property name="margin-bottom">10</property> 139 <child> 140 <object class="GtkStack" id="user_icon_stack"> 141 <property name="visible">True</property> 142 <property name="halign">GTK_ALIGN_END</property> 143 <style> 144 <class name="user-icon-button"/> 145 </style> 146 <child> 147 <object class="CcUserImage" id="user_icon_image"> 148 <property name="visible">True</property> 149 <property name="icon_name">avatar-default</property> 150 <property name="pixel_size">96</property> 151 <property name="halign">GTK_ALIGN_END</property> 152 <style> 153 <class name="user-icon-button"/> 154 </style> 155 <child internal-child="accessible"> 156 <object class="AtkObject"> 157 <property name="accessible-name" translatable="yes">User Icon</property> 158 </object> 159 </child> 160 </object> 161 </child> 162 <child> 163 <object class="GtkToggleButton" id="user_icon_button"> 164 <property name="visible">True</property> 165 <property name="can_focus">True</property> 166 <property name="receives_default">True</property> 167 <property name="relief">GTK_RELIEF_NORMAL</property> 168 <style> 169 <class name="user-icon-button"/> 170 </style> 171 <child internal-child="accessible"> 172 <object class="AtkObject"> 173 <property name="accessible-name" translatable="yes">User Icon</property> 174 </object> 175 </child> 176 <child> 177 <object class="CcUserImage" id="user_icon_image2"> 178 <property name="visible">True</property> 179 <property name="icon_name">avatar-default</property> 180 <property name="pixel_size">96</property> 181 </object> 182 </child> 183 </object> 184 </child> 185 </object> 186 </child> 187 188 <child> 189 <object class="GtkStack" id="full_name_stack"> 190 <property name="visible">True</property> 191 <child> 192 <object class="GtkLabel" id="full_name_label"> 193 <property name="visible">True</property> 194 <property name="halign">GTK_ALIGN_START</property> 195 <property name="ellipsize">PANGO_ELLIPSIZE_END</property> 196 <property name="width-chars">18</property> 197 <property name="max-width-chars">30</property> 198 <property name="xalign">0</property> 199 <attributes> 200 <attribute name="scale" value="1.2"/> 201 <attribute name="weight" value="bold"/> 202 </attributes> 203 </object> 204 </child> 205 <child> 206 <object class="GtkEntry" id="full_name_entry"> 207 <property name="visible">True</property> 208 <property name="max-length">255</property> 209 <property name="width-chars">18</property> 210 <property name="max-width-chars">30</property> 211 <property name="valign">GTK_ALIGN_CENTER</property> 212 <signal name="activate" handler="full_name_entry_activate" object="CcUserPanel" swapped="yes"/> 213 <signal name="key-press-event" handler="full_name_entry_key_press_cb" object="CcUserPanel" swapped="yes"/> 214 </object> 215 </child> 216 </object> 217 </child> 218 <child> 219 <object class="GtkToggleButton" id="full_name_edit_button"> 220 <property name="visible">True</property> 221 <signal name="toggled" handler="full_name_edit_button_toggled" object="CcUserPanel" swapped="yes"/> 222 <property name="valign">GTK_ALIGN_CENTER</property> 223 <style> 224 <class name="circular"/> 225 </style> 226 <child> 227 <object class="GtkImage"> 228 <property name="visible">True</property> 229 <property name="margin">5</property> 230 <property name="icon-name">document-edit-symbolic</property> 231 </object> 232 </child> 233 </object> 234 <packing> 235 <property name="pack_type">end</property> 236 </packing> 237 </child> 238 </object> 239 </child> 240 241 <child> 242 <object class="GtkBox" id="account_settings_box"> 243 <property name="visible">True</property> 244 <property name="orientation">GTK_ORIENTATION_VERTICAL</property> 245 <property name="spacing">10</property> 246 <child> 247 <object class="GtkLabel"> 248 <property name="visible">True</property> 249 <property name="label" translatable="yes">Account Settings</property> 250 <property name="halign">GTK_ALIGN_START</property> 251 <attributes> 252 <attribute name="weight" value="bold"/> 253 </attributes> 254 </object> 255 </child> 256 <child> 257 <object class="GtkListBox" id="account_settings_listbox"> 258 <property name="visible">True</property> 259 <property name="selection-mode">GTK_SELECTION_NONE</property> 260 <signal name="row-activated" handler="activate_row"/> 261 <style> 262 <class name="content"/> 263 </style> 264 <child> 265 <object class="HdyActionRow" id="account_type_row"> 266 <property name="visible">True</property> 267 <property name="title" translatable="yes">_Administrator</property> 268 <property name="subtitle" translatable="yes">Administrators can add and remove other users, and can change settings for all users.</property> 269 <property name="subtitle-lines">0</property> 270 <property name="use_underline">True</property> 271 <child> 272 <object class="GtkSwitch" id="account_type_switch"> 273 <property name="visible">True</property> 274 <property name="valign">center</property> 275 <signal name="notify::active" handler="account_type_changed" object="CcUserPanel" swapped="yes"/> 276 </object> 277 </child> 278 </object> 279 </child> 280 281 <child> 282 <object class="HdyActionRow" id="parental_controls_row"> 283 <property name="visible">False</property> 284 <property name="title" translatable="yes">_Parental Controls</property> 285 <property name="subtitle" translatable="yes">Open the Parental Controls application.</property> 286 <property name="subtitle-lines">0</property> 287 <property name="use_underline">True</property> 288 <property name="activatable">True</property> 289 <property name="visible">False</property> 290 <child> 291 <object class="GtkLabel" id="parental_controls_button_label"> 292 <property name="visible">True</property> 293 <property name="valign">0.5</property> 294 </object> 295 </child> 296 <child> 297 <object class="GtkImage" id="parental_control_go_next"> 298 <property name="visible">True</property> 299 <property name="icon-name">go-next-symbolic</property> 300 <style> 301 <class name="dim-label"/> 302 </style> 303 </object> 304 </child> 305 </object> 306 </child> 307 308 <child> 309 <object class="HdyActionRow" id="language_row"> 310 <property name="visible">True</property> 311 <property name="title" translatable="yes">_Language</property> 312 <property name="use_underline">True</property> 313 <property name="activatable">True</property> 314 <child> 315 <object class="GtkLabel" id="language_button_label"> 316 <property name="visible">True</property> 317 <style> 318 <class name="dim-label"/> 319 </style> 320 </object> 321 </child> 322 <child> 323 <object class="GtkImage"> 324 <property name="visible">True</property> 325 <property name="icon-name">go-next-symbolic</property> 326 <style> 327 <class name="dim-label"/> 328 </style> 329 </object> 330 </child> 331 </object> 332 </child> 333 </object> 334 </child> 335 </object> 336 </child> 337 338 <child> 339 <object class="GtkBox" id="authentication_and_login_box"> 340 <property name="visible">True</property> 341 <property name="orientation">GTK_ORIENTATION_VERTICAL</property> 342 <property name="spacing">10</property> 343 <property name="margin-top">10</property> 344 <child> 345 <object class="GtkLabel"> 346 <property name="visible">True</property> 347 <property name="label" translatable="yes">Authentication & Login</property> 348 <property name="halign">GTK_ALIGN_START</property> 349 <attributes> 350 <attribute name="weight" value="bold"/> 351 </attributes> 352 </object> 353 </child> 354 <child> 355 <object class="GtkListBox" id="authentication_and_login_listbox"> 356 <property name="visible">True</property> 357 <property name="selection-mode">GTK_SELECTION_NONE</property> 358 <signal name="row-activated" handler="activate_row"/> 359 <style> 360 <class name="content"/> 361 </style> 362 <child> 363 <object class="HdyActionRow" id="password_row"> 364 <property name="visible">True</property> 365 <property name="title" translatable="yes">_Password</property> 366 <property name="use_underline">True</property> 367 <property name="activatable">True</property> 368 <child> 369 <object class="GtkLabel" id="password_button_label"> 370 <property name="visible">True</property> 371 <style> 372 <class name="dim-label"/> 373 </style> 374 </object> 375 </child> 376 <child> 377 <object class="GtkImage"> 378 <property name="visible">True</property> 379 <property name="icon-name">go-next-symbolic</property> 380 <style> 381 <class name="dim-label"/> 382 </style> 383 </object> 384 </child> 385 </object> 386 </child> 387 <child> 388 <object class="HdyActionRow" id="fingerprint_row"> 389 <property name="visible">True</property> 390 <property name="title" translatable="yes">_Fingerprint Login</property> 391 <property name="use_underline">True</property> 392 <property name="activatable">True</property> 393 <child> 394 <object class="GtkLabel" id="fingerprint_state_label"> 395 <property name="visible">True</property> 396 <style> 397 <class name="dim-label"/> 398 </style> 399 </object> 400 </child> 401 <child> 402 <object class="GtkImage"> 403 <property name="visible">True</property> 404 <property name="icon-name">go-next-symbolic</property> 405 <style> 406 <class name="dim-label"/> 407 </style> 408 </object> 409 </child> 410 </object> 411 </child> 412 <child> 413 <object class="HdyActionRow" id="autologin_row"> 414 <property name="visible">True</property> 415 <property name="title" translatable="yes">A_utomatic Login</property> 416 <property name="use_underline">True</property> 417 <child> 418 <object class="GtkSwitch" id="autologin_switch"> 419 <property name="visible">True</property> 420 <property name="valign">center</property> 421 <signal name="notify::active" handler="autologin_changed" object="CcUserPanel" swapped="yes"/> 422 </object> 423 </child> 424 </object> 425 </child> 426 <child> 427 <object class="HdyActionRow" id="last_login_row"> 428 <property name="visible">True</property> 429 <property name="title" translatable="yes">Account Activity</property> 430 <property name="activatable">True</property> 431 <property name="use_underline">True</property> 432 <child> 433 <object class="GtkLabel" id="last_login_button_label"> 434 <property name="visible">True</property> 435 <style> 436 <class name="dim-label"/> 437 </style> 438 </object> 439 </child> 440 <child> 441 <object class="GtkImage"> 442 <property name="visible">True</property> 443 <property name="icon-name">go-next-symbolic</property> 444 <style> 445 <class name="dim-label"/> 446 </style> 447 </object> 448 </child> 449 </object> 450 </child> 451 </object> 452 </child> 453 </object> 454 </child> 455 <child> 456 <object class="GtkButton" id="remove_user_button"> 457 <property name="visible">True</property> 458 <property name="can_focus">True</property> 459 <property name="halign">GTK_ALIGN_END</property> 460 <property name="label" translatable="yes">Remove User…</property> 461 <property name="margin-top">10</property> 462 <property name="margin-bottom">10</property> 463 <signal name="clicked" handler="delete_user" object="CcUserPanel" swapped="yes"/> 464 <style> 465 <class name="destructive-action"/> 466 </style> 467 </object> 468 <packing> 469 <property name="pack_type">end</property> 470 </packing> 471 </child> 472 </object> 473 </child> 474 </object> 475 </child> 476 </object> 477 </child> 478 </object> 479 </child> 480 </object> 481 </child> 482 <child> 483 <object class="GtkBox" id="no_users_box"> 484 <property name="visible">True</property> 485 <property name="orientation">GTK_ORIENTATION_VERTICAL</property> 486 <property name="valign">GTK_ALIGN_CENTER</property> 487 <property name="spacing">12</property> 488 <style> 489 <class name="dim-label"/> 490 </style> 491 <child> 492 <object class="GtkImage"> 493 <property name="visible">True</property> 494 <property name="icon_name">avatar-default-symbolic</property> 495 <property name="pixel_size">192</property> 496 </object> 497 </child> 498 <child> 499 <object class="GtkLabel"> 500 <property name="visible">True</property> 501 <property name="label" translatable="yes" comments="Translators: This is the empty state page label which states that there are no users to show in the panel.">No Users Found</property> 502 <attributes> 503 <attribute name="weight" value="bold"/> 504 <attribute name="scale" value="1.6"/> 505 </attributes> 506 </object> 507 </child> 508 <child> 509 <object class="GtkLabel"> 510 <property name="visible">True</property> 511 <property name="label" translatable="yes">Unlock to add a user account.</property> 512 </object> 513 </child> 514 </object> 515 </child> 516 </object> 517 </child> 518 </object> 519 </child> 520 </template> 521 <object class="GtkSizeGroup"> 522 <property name="mode">both</property> 523 <widgets> 524 <widget name="user_icon_button"/> 525 <widget name="user_icon_image"/> 526 </widgets> 527 </object> 528 <object class="GtkSizeGroup"> 529 <property name="mode">both</property> 530 <widgets> 531 <widget name="language_row"/> 532 <widget name="password_row"/> 533 <widget name="fingerprint_row"/> 534 <widget name="autologin_row"/> 535 <widget name="last_login_row"/> 536 </widgets> 537 </object> 538</interface> 539