Welcome
Object Hierarchy:
Granite.Widgets.Welcome
Granite.Widgets.Welcome
Granite.Widgets.Welcome
Gtk.EventBox
Gtk.EventBox
Gtk.EventBox->Granite.Widgets.Welcome
Gtk.Bin
Gtk.Bin
Gtk.Bin->Gtk.EventBox
Gtk.Container
Gtk.Container
Gtk.Container->Gtk.Bin
Gtk.Widget
Gtk.Widget
Gtk.Widget->Gtk.Container
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gtk.Widget
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Atk.Implementor
Atk.Implementor
Atk.Implementor->Gtk.EventBox
Atk.Implementor->Gtk.Bin
Atk.Implementor->Gtk.Container
Atk.Implementor->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->Gtk.EventBox
Gtk.Buildable->Gtk.Bin
Gtk.Buildable->Gtk.Container
Gtk.Buildable->Gtk.Widget
Description:
public class Welcome : EventBox
This class is for making a first-launch screen easily
It can be used to create a list of one-time action items that need to be executed in order to setup the app.
Granite.Widgets.Welcome will get the style class `welcome`.
Example
public class WelcomeView : Gtk.Grid { construct { var welcome = new Granite.Widgets.Welcome ("Granite Demo" , "This is a demo of the Granite library." ); welcome.append ("text-x-vala" , "Visit Valadoc" , "The canonical source for Vala API references." ); welcome.append ("text-x-source" , "Get Granite Source" , "Granite's source code is hosted on GitHub." ); add (welcome); welcome.activated.connect ((index) => { switch (index) { case 0 : try { AppInfo.launch_default_for_uri ("https://valadoc.org/granite/Granite.html" , null ); } catch (Error e) { warning (e.message); } break ; case 1 : try { AppInfo.launch_default_for_uri ("https://github.com/elementary/granite" , null ); } catch (Error e) { warning (e.message); } break ; } }); } }
Content:
Properties:
Creation methods:
public Welcome (string title_text, string subtitle_text)
Makes new Welcome Page
Methods:
public int append (string icon_name, string option_text, string description_text)
Appends new action item to welcome page with a
Gtk.Image.from_icon_name
public int append_with_image (Image ? image, string option_text, string description_text)
Appends new action item to welcome page with a
Gtk.Image icon
public int append_with_pixbuf (Pixbuf ? pixbuf, string option_text, string description_text)
Appends new action item to welcome page with a {link Gdk.Pixbuf} icon
public WelcomeButton ? get_button_from_index (int index)
Returns a welcome button by index
public void remove_item (uint index)
Removes action item of given index
public void set_item_sensitivity (uint index, bool val)
Sets action item of given index sensitivity
public void set_item_visible (uint index, bool val)
Sets action item of given index's visiblity
Signals:
Fields:
Inherited Members:
All known members inherited from class Gtk.EventBox
above_child
get_above_child
get_visible_window
set_above_child
set_visible_window
visible_window
All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Container
@foreach
add
add_with_properties
border_width
check_resize
child
child_get
child_get_property
child_get_valist
child_notify
child_notify_by_pspec
child_set
child_set_property
child_set_valist
child_type
class_find_child_property
class_list_child_properties
composite_name
find_child_property
forall
forall_internal
get_border_width
get_child_property
get_children
get_focus_chain
get_focus_child
get_focus_hadjustment
get_focus_vadjustment
get_path_for_child
get_resize_mode
handle_border_width
install_child_properties
install_child_property
list_child_properties
propagate_draw
remove
resize_children
resize_mode
set_border_width
set_child_property
set_focus_chain
set_focus_child
set_focus_hadjustment
set_focus_vadjustment
set_reallocate_redraws
set_resize_mode
unset_focus_chain
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Buildable
add_child
construct_child
custom_finished
custom_tag_end
custom_tag_start
get_internal_child
get_name
parser_finished
set_buildable_property
set_name