References of [GtkChild] fields is handled by GtkBuilder, type must be unowned

This commit is contained in:
Rico Tzschichholz 2021-02-22 12:50:43 +01:00
parent d08647126e
commit 5be434997a
27 changed files with 189 additions and 189 deletions

View file

@ -46,49 +46,49 @@ class Dialog : Gtk.Dialog
private const string CONFIG_COMMIT_TEMPLATE = "commit.template";
[GtkChild (name = "source_view_message")]
private Gtk.SourceView d_source_view_message;
private unowned Gtk.SourceView d_source_view_message;
[GtkChild (name = "ok-button")]
private Gtk.Button d_button_ok;
private unowned Gtk.Button d_button_ok;
[GtkChild (name = "check_button_amend")]
private Gtk.CheckButton d_check_button_amend;
private unowned Gtk.CheckButton d_check_button_amend;
[GtkChild (name = "check_button_sign_off")]
private Gtk.CheckButton d_check_button_sign_off;
private unowned Gtk.CheckButton d_check_button_sign_off;
[GtkChild (name = "image_avatar")]
private Gtk.Image d_image_avatar;
private unowned Gtk.Image d_image_avatar;
[GtkChild (name = "label_user")]
private Gtk.Label d_label_user;
private unowned Gtk.Label d_label_user;
[GtkChild (name = "label_date")]
private Gtk.Label d_label_date;
private unowned Gtk.Label d_label_date;
[GtkChild (name = "infobar")]
private Gtk.InfoBar d_infobar;
private unowned Gtk.InfoBar d_infobar;
[GtkChild (name = "infobar_revealer")]
private Gtk.Revealer d_infobar_revealer;
private unowned Gtk.Revealer d_infobar_revealer;
[GtkChild (name = "infobar_primary_label")]
private Gtk.Label d_infobar_primary_label;
private unowned Gtk.Label d_infobar_primary_label;
[GtkChild (name = "infobar_secondary_label")]
private Gtk.Label d_infobar_secondary_label;
private unowned Gtk.Label d_infobar_secondary_label;
[GtkChild (name = "list_box_stats")]
private Gtk.ListBox d_list_box_stats;
private unowned Gtk.ListBox d_list_box_stats;
[GtkChild (name = "scrolled_window_stats")]
private Gtk.ScrolledWindow d_scrolled_window_stats;
private unowned Gtk.ScrolledWindow d_scrolled_window_stats;
[GtkChild (name = "prev_commit_message_button")]
private Gtk.Button d_prev_commit_message_button;
private unowned Gtk.Button d_prev_commit_message_button;
[GtkChild (name = "next_commit_message_button")]
private Gtk.Button d_next_commit_message_button;
private unowned Gtk.Button d_next_commit_message_button;
private bool d_show_markup;
private bool d_show_right_margin;

View file

@ -24,28 +24,28 @@ namespace GitgCommit
class Paned : Gtk.Paned
{
[GtkChild (name = "tree_view_files")]
private Sidebar d_tree_view_files;
private unowned Sidebar d_tree_view_files;
[GtkChild (name = "diff_view")]
private Gitg.DiffView d_diff_view;
private unowned Gitg.DiffView d_diff_view;
[GtkChild (name = "submodule_history_view")]
private SubmoduleHistoryView d_submodule_history_view;
private unowned SubmoduleHistoryView d_submodule_history_view;
[GtkChild (name = "submodule_diff_view")]
private SubmoduleDiffView d_submodule_diff_view;
private unowned SubmoduleDiffView d_submodule_diff_view;
[GtkChild (name = "check_button_skip_hooks")]
private Gtk.CheckButton d_check_button_skip_hooks;
private unowned Gtk.CheckButton d_check_button_skip_hooks;
[GtkChild (name = "button_commit")]
private Gtk.Button d_button_commit;
private unowned Gtk.Button d_button_commit;
[GtkChild (name = "button_stage")]
private Gtk.Button d_button_stage;
private unowned Gtk.Button d_button_stage;
[GtkChild (name = "button_discard")]
private Gtk.Button d_button_discard;
private unowned Gtk.Button d_button_discard;
public Sidebar sidebar
{

View file

@ -24,16 +24,16 @@ namespace GitgCommit
class SubmoduleDiffView : Gtk.Box
{
[GtkChild (name = "info")]
private SubmoduleInfo d_info;
private unowned SubmoduleInfo d_info;
[GtkChild (name = "diff_view_staged")]
private Gitg.DiffView d_diff_view_staged;
private unowned Gitg.DiffView d_diff_view_staged;
[GtkChild (name = "diff_view_unstaged")]
private Gitg.DiffView d_diff_view_unstaged;
private unowned Gitg.DiffView d_diff_view_unstaged;
[GtkChild (name = "box_diffs")]
private Gtk.Box d_box_diffs;
private unowned Gtk.Box d_box_diffs;
construct
{
@ -61,4 +61,4 @@ class SubmoduleDiffView : Gtk.Box
}
}
}
}

View file

@ -24,10 +24,10 @@ namespace GitgCommit
class SubmoduleHistoryView : Gtk.Paned
{
[GtkChild (name = "commit_list_view")]
private Gitg.CommitListView d_commit_list_view;
private unowned Gitg.CommitListView d_commit_list_view;
[GtkChild (name = "diff_view")]
private Gitg.DiffView d_diff_view;
private unowned Gitg.DiffView d_diff_view;
public Gitg.CommitListView commit_list_view
{
@ -40,4 +40,4 @@ class SubmoduleHistoryView : Gtk.Paned
}
}
}
}

View file

@ -24,16 +24,16 @@ namespace GitgCommit
class SubmoduleInfo : Gtk.Grid
{
[GtkChild (name = "label_path")]
private Gtk.Label d_label_path;
private unowned Gtk.Label d_label_path;
[GtkChild (name = "label_url")]
private Gtk.Label d_label_url;
private unowned Gtk.Label d_label_url;
[GtkChild (name = "label_sha1")]
private Gtk.Label d_label_sha1;
private unowned Gtk.Label d_label_sha1;
[GtkChild (name = "label_subject")]
private Gtk.Label d_label_subject;
private unowned Gtk.Label d_label_subject;
private Ggit.Submodule d_submodule;

View file

@ -26,16 +26,16 @@ namespace Gitg
private const string version = Gitg.Config.VERSION;
[GtkChild (name = "entry_name")]
private Gtk.Entry d_entry_name;
private unowned Gtk.Entry d_entry_name;
[GtkChild (name = "entry_email")]
private Gtk.Entry d_entry_email;
private unowned Gtk.Entry d_entry_email;
[GtkChild (name = "label_info")]
private Gtk.Label d_label_info;
private unowned Gtk.Label d_label_info;
[GtkChild (name = "checkbutton_override_global")]
private Gtk.CheckButton d_checkbutton_override_global;
private unowned Gtk.CheckButton d_checkbutton_override_global;
private string? d_repository_name;

View file

@ -24,16 +24,16 @@ namespace Gitg
class CheckoutRemoteBranchDialog : Gtk.Dialog
{
[GtkChild]
private Gtk.Button d_button_create;
private unowned Gtk.Button d_button_create;
[GtkChild]
private Gtk.Entry d_branch_name;
private unowned Gtk.Entry d_branch_name;
[GtkChild]
private Gtk.ComboBoxText d_remote_branch_name;
private unowned Gtk.ComboBoxText d_remote_branch_name;
[GtkChild]
private Gtk.CheckButton d_track_remote;
private unowned Gtk.CheckButton d_track_remote;
private Gitg.Repository d_repository;
private Gitg.Ref d_remote_reference;

View file

@ -27,13 +27,13 @@ public class CloneDialog : Gtk.Dialog
private const string version = Gitg.Config.VERSION;
[GtkChild (name = "entry_url")]
private Gtk.Entry d_entry_url;
private unowned Gtk.Entry d_entry_url;
[GtkChild (name = "button_location")]
private Gtk.FileChooserButton d_button_location;
private unowned Gtk.FileChooserButton d_button_location;
[GtkChild (name = "bare_repository")]
private Gtk.CheckButton d_bare_repository;
private unowned Gtk.CheckButton d_bare_repository;
public bool is_bare
{

View file

@ -24,13 +24,13 @@ namespace Gitg
class CreateBranchDialog : Gtk.Dialog
{
[GtkChild]
private Gtk.Button d_button_create;
private unowned Gtk.Button d_button_create;
[GtkChild]
private Gtk.Entry d_entry_branch_name;
private unowned Gtk.Entry d_entry_branch_name;
[GtkChild]
private Gtk.CheckButton d_checkout_created;
private unowned Gtk.CheckButton d_checkout_created;
private Settings d_settings;

View file

@ -27,13 +27,13 @@ class CreateTagDialog : Gtk.Dialog
private const string version = Gitg.Config.VERSION;
[GtkChild]
private Gtk.Button d_button_create;
private unowned Gtk.Button d_button_create;
[GtkChild]
private Gtk.Entry d_entry_tag_name;
private unowned Gtk.Entry d_entry_tag_name;
[GtkChild]
private Gtk.TextView d_text_view_message;
private unowned Gtk.TextView d_text_view_message;
private Gtk.TextTag d_info_tag;
private bool d_is_showing_user_info;

View file

@ -30,19 +30,19 @@ class DashView : Gtk.Grid, GitgExt.UIElement, GitgExt.Activity, GitgExt.Selectab
private bool d_setting_mode;
[GtkChild( name = "introduction" )]
private Gtk.Grid d_introduction;
private unowned Gtk.Grid d_introduction;
[GtkChild( name = "label_scan" )]
private Gtk.Label d_label_scan;
private unowned Gtk.Label d_label_scan;
[GtkChild( name = "label_profile") ]
private Gtk.Label d_label_profile;
private unowned Gtk.Label d_label_profile;
[GtkChild( name = "scrolled_window" )]
private Gtk.ScrolledWindow d_scrolled_window;
private unowned Gtk.ScrolledWindow d_scrolled_window;
[GtkChild( name = "repository_list_box" )]
private RepositoryListBox d_repository_list_box;
private unowned RepositoryListBox d_repository_list_box;
public GitgExt.SelectionMode selectable_mode
{

View file

@ -29,13 +29,13 @@ public class RemoteNotification : ProgressBin, GitgExt.Notification
private Remote? d_remote;
[GtkChild ( name = "image_icon" )]
private Gtk.Image d_image_icon;
private unowned Gtk.Image d_image_icon;
[GtkChild ( name = "label_text" )]
private Gtk.Label d_label_text;
private unowned Gtk.Label d_label_text;
[GtkChild ( name = "button_cancel" )]
private Gtk.Button d_button_cancel;
private unowned Gtk.Button d_button_cancel;
private bool d_finished;

View file

@ -27,19 +27,19 @@ public class SimpleNotification : Gtk.Grid, GitgExt.Notification
private const string version = Gitg.Config.VERSION;
[GtkChild( name = "spinner" )]
private Gtk.Spinner d_spinner;
private unowned Gtk.Spinner d_spinner;
[GtkChild( name = "image_icon" )]
private Gtk.Image d_image_icon;
private unowned Gtk.Image d_image_icon;
[GtkChild( name = "label_title" )]
private Gtk.Label d_label_title;
private unowned Gtk.Label d_label_title;
[GtkChild( name = "label_message" )]
private Gtk.Label d_label_message;
private unowned Gtk.Label d_label_message;
[GtkChild( name = "button_cancel" )]
private Gtk.Button d_button_cancel;
private unowned Gtk.Button d_button_cancel;
private bool d_finished;

View file

@ -54,61 +54,61 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
// Widgets
[GtkChild]
private Gtk.HeaderBar d_header_bar;
private unowned Gtk.HeaderBar d_header_bar;
[GtkChild]
private Gtk.ToggleButton d_search_button;
private unowned Gtk.ToggleButton d_search_button;
[GtkChild]
private Gtk.MenuButton d_gear_menu;
private unowned Gtk.MenuButton d_gear_menu;
[GtkChild]
private Gtk.Image gear_image;
private unowned Gtk.Image gear_image;
private MenuModel d_activities_model;
private MenuModel? d_dash_model;
[GtkChild]
private Gtk.Grid d_grid_main;
private unowned Gtk.Grid d_grid_main;
[GtkChild]
private Gtk.Grid d_grid_top;
private unowned Gtk.Grid d_grid_top;
[GtkChild]
private Gtk.ToggleButton d_select_button;
private unowned Gtk.ToggleButton d_select_button;
[GtkChild]
private Gtk.Button d_select_cancel_button;
private unowned Gtk.Button d_select_cancel_button;
[GtkChild]
private Gtk.Button d_dash_button;
private unowned Gtk.Button d_dash_button;
[GtkChild]
private Gtk.Button d_clone_button;
private unowned Gtk.Button d_clone_button;
[GtkChild]
private Gtk.Button d_add_button;
private unowned Gtk.Button d_add_button;
[GtkChild]
private Gtk.Image dash_image;
private unowned Gtk.Image dash_image;
[GtkChild]
private Gtk.StackSwitcher d_activities_switcher;
private unowned Gtk.StackSwitcher d_activities_switcher;
[GtkChild]
private Gtk.SearchBar d_search_bar;
private unowned Gtk.SearchBar d_search_bar;
[GtkChild]
private Gtk.SearchEntry d_search_entry;
private unowned Gtk.SearchEntry d_search_entry;
[GtkChild]
private Gtk.Stack d_main_stack;
private unowned Gtk.Stack d_main_stack;
[GtkChild]
private DashView d_dash_view;
private unowned DashView d_dash_view;
[GtkChild]
private Gtk.Stack d_stack_activities;
private unowned Gtk.Stack d_stack_activities;
[GtkChild]
private Gtk.InfoBar d_infobar;
private unowned Gtk.InfoBar d_infobar;
[GtkChild]
private Gtk.Label d_infobar_primary_label;
private unowned Gtk.Label d_infobar_primary_label;
[GtkChild]
private Gtk.Label d_infobar_secondary_label;
private unowned Gtk.Label d_infobar_secondary_label;
[GtkChild]
private Gtk.Overlay d_overlay;
private unowned Gtk.Overlay d_overlay;
enum Mode
{

View file

@ -24,25 +24,25 @@ namespace GitgHistory
class Paned : Gitg.AnimatedPaned
{
[GtkChild]
private Gtk.Box d_box_sidebar;
private unowned Gtk.Box d_box_sidebar;
[GtkChild]
private Gitg.AnimatedPaned d_paned_panels;
private unowned Gitg.AnimatedPaned d_paned_panels;
[GtkChild]
private Gtk.StackSwitcher d_stack_switcher_panels;
private unowned Gtk.StackSwitcher d_stack_switcher_panels;
[GtkChild]
private RefsList d_refs_list;
private unowned RefsList d_refs_list;
[GtkChild]
private Gitg.CommitListView d_commit_list_view;
private unowned Gitg.CommitListView d_commit_list_view;
[GtkChild]
private Gtk.Stack d_stack_panel;
private unowned Gtk.Stack d_stack_panel;
[GtkChild]
private Gtk.ScrolledWindow d_scrolled_window_commit_list;
private unowned Gtk.ScrolledWindow d_scrolled_window_commit_list;
public Gtk.Orientation inner_orientation
{

View file

@ -60,19 +60,19 @@ private class RefRow : RefTyped, Gtk.ListBoxRow
}
[GtkChild]
private Gtk.Image d_icon;
private unowned Gtk.Image d_icon;
[GtkChild]
private Gtk.Label d_label;
private unowned Gtk.Label d_label;
[GtkChild]
private Gtk.Label d_ahead_behind;
private unowned Gtk.Label d_ahead_behind;
[GtkChild]
private Gtk.Box d_box;
private unowned Gtk.Box d_box;
[GtkChild]
private Gtk.Revealer d_revealer;
private unowned Gtk.Revealer d_revealer;
public Gitg.Ref? reference { get; set; }
@ -433,16 +433,16 @@ private class RefHeader : RefTyped, Gtk.ListBoxRow
private Gitg.Remote? d_remote;
[GtkChild( name = "progress_bin" )]
private Gitg.ProgressBin d_progress_bin;
private unowned Gitg.ProgressBin d_progress_bin;
[GtkChild( name = "expander" )]
private Gtk.Expander d_expander;
private unowned Gtk.Expander d_expander;
[GtkChild( name = "label" )]
private Gtk.Label d_label;
private unowned Gtk.Label d_label;
[GtkChild( name = "icon" )]
private Gtk.Image d_icon;
private unowned Gtk.Image d_icon;
public bool expanded { get; set; default = true; }

View file

@ -27,37 +27,37 @@ public class PreferencesCommit : Gtk.Grid, GitgExt.Preferences
private const string version = Gitg.Config.VERSION;
[GtkChild (name = "check_button_show_markup")]
private Gtk.CheckButton d_check_button_show_markup;
private unowned Gtk.CheckButton d_check_button_show_markup;
[GtkChild (name = "grid_show_markup")]
private Gtk.Grid d_grid_show_markup;
private unowned Gtk.Grid d_grid_show_markup;
[GtkChild (name = "check_button_show_subject_margin")]
private Gtk.CheckButton d_check_button_show_subject_margin;
private unowned Gtk.CheckButton d_check_button_show_subject_margin;
[GtkChild (name = "spin_button_subject_margin_grid")]
private Gtk.Grid d_spin_button_subject_margin_grid;
private unowned Gtk.Grid d_spin_button_subject_margin_grid;
[GtkChild (name = "spin_button_subject_margin")]
private Gtk.SpinButton d_spin_button_subject_margin;
private unowned Gtk.SpinButton d_spin_button_subject_margin;
[GtkChild (name = "check_button_show_right_margin")]
private Gtk.CheckButton d_check_button_show_right_margin;
private unowned Gtk.CheckButton d_check_button_show_right_margin;
[GtkChild (name = "spin_button_right_margin_grid")]
private Gtk.Grid d_spin_button_right_margin_grid;
private unowned Gtk.Grid d_spin_button_right_margin_grid;
[GtkChild (name = "spin_button_right_margin")]
private Gtk.SpinButton d_spin_button_right_margin;
private unowned Gtk.SpinButton d_spin_button_right_margin;
[GtkChild (name = "spell_language_button")]
private Gspell.LanguageChooserButton d_spell_language_button;
private unowned Gspell.LanguageChooserButton d_spell_language_button;
[GtkChild (name = "enable_spell_checking")]
private Gtk.CheckButton d_enable_spell_checking;
private unowned Gtk.CheckButton d_enable_spell_checking;
[GtkChild (name = "spin_button_max_num_commit_messages")]
private Gtk.SpinButton d_spin_button_max_num_commit_messages;
private unowned Gtk.SpinButton d_spin_button_max_num_commit_messages;
[GtkChild (name = "spin_button_max_num_days_commit_messages")]
private Gtk.SpinButton d_spin_button_max_num_days_commit_messages;
private unowned Gtk.SpinButton d_spin_button_max_num_days_commit_messages;
construct
{

View file

@ -28,33 +28,33 @@ public class PreferencesHistory : Gtk.Grid, GitgExt.Preferences
private bool d_block;
[GtkChild (name = "collapse_inactive_lanes_enabled")]
private Gtk.CheckButton d_collapse_inactive_lanes_enabled;
private unowned Gtk.CheckButton d_collapse_inactive_lanes_enabled;
[GtkChild (name = "adjustment_collapse")]
private Gtk.Adjustment d_adjustment_collapse;
private unowned Gtk.Adjustment d_adjustment_collapse;
[GtkChild (name = "collapse_inactive_lanes")]
private Gtk.Scale d_collapse_inactive_lanes;
private unowned Gtk.Scale d_collapse_inactive_lanes;
[GtkChild (name = "topological_order")]
private Gtk.CheckButton d_topological_order;
private unowned Gtk.CheckButton d_topological_order;
[GtkChild (name = "mainline_head")]
private Gtk.CheckButton d_mainline_head;
private unowned Gtk.CheckButton d_mainline_head;
[GtkChild (name = "select_current_branch" )]
private Gtk.RadioButton d_select_current_branch;
private unowned Gtk.RadioButton d_select_current_branch;
[GtkChild (name = "select_all_branches" )]
private Gtk.RadioButton d_select_all_branches;
private unowned Gtk.RadioButton d_select_all_branches;
[GtkChild (name = "select_all_commits" )]
private Gtk.RadioButton d_select_all_commits;
private unowned Gtk.RadioButton d_select_all_commits;
[GtkChild (name = "sort_references_by_activity")]
private Gtk.CheckButton d_sort_references_by_activity;
private unowned Gtk.CheckButton d_sort_references_by_activity;
[GtkChild (name = "show_upstream_with_branch")]
private Gtk.CheckButton d_show_upstream_with_branch;
private unowned Gtk.CheckButton d_show_upstream_with_branch;
private Gtk.RadioButton[] d_select_buttons;
private string[] d_select_names;

View file

@ -30,34 +30,34 @@ public class PreferencesInterface : Gtk.Grid, GitgExt.Preferences
private Settings? d_global_settings;
[GtkChild (name = "horizontal_layout_enabled")]
private Gtk.CheckButton d_horizontal_layout_enabled;
private unowned Gtk.CheckButton d_horizontal_layout_enabled;
[GtkChild (name = "default_activity")]
private Gtk.ComboBox d_default_activity;
private unowned Gtk.ComboBox d_default_activity;
[GtkChild (name = "gravatar_enabled")]
private Gtk.CheckButton d_gravatar_enabled;
private unowned Gtk.CheckButton d_gravatar_enabled;
[GtkChild (name = "monitoring_enabled" )]
private Gtk.CheckButton d_monitoring_enabled;
private unowned Gtk.CheckButton d_monitoring_enabled;
[GtkChild (name = "diff_highlighting_enabled")]
private Gtk.CheckButton d_diff_highlighting_enabled;
private unowned Gtk.CheckButton d_diff_highlighting_enabled;
[GtkChild (name = "default_style_scheme")]
private Gtk.ComboBox d_default_style_scheme;
private unowned Gtk.ComboBox d_default_style_scheme;
[GtkChild (name = "syntax_scheme_store")]
private Gtk.ListStore d_syntax_scheme_store;
private unowned Gtk.ListStore d_syntax_scheme_store;
[GtkChild (name = "font_button")]
private Gtk.FontButton d_font_button;
private unowned Gtk.FontButton d_font_button;
[GtkChild (name = "font_button_grid")]
private Gtk.Grid d_font_button_grid;
private unowned Gtk.Grid d_font_button_grid;
[GtkChild (name = "default_font_checkbutton")]
private Gtk.CheckButton d_default_font_checkbutton;
private unowned Gtk.CheckButton d_default_font_checkbutton;
construct
{

View file

@ -31,25 +31,25 @@ public enum AuthenticationLifeTime
public class AuthenticationDialog : Gtk.Dialog
{
[GtkChild ( name = "label_title" )]
private Gtk.Label d_label_title;
private unowned Gtk.Label d_label_title;
[GtkChild ( name = "label_failed" )]
private Gtk.Label d_label_failed;
private unowned Gtk.Label d_label_failed;
[GtkChild ( name = "entry_username" )]
private Gtk.Entry d_entry_username;
private unowned Gtk.Entry d_entry_username;
[GtkChild ( name = "entry_password" )]
private Gtk.Entry d_entry_password;
private unowned Gtk.Entry d_entry_password;
[GtkChild ( name = "radio_button_forget" )]
private Gtk.RadioButton d_radio_button_forget;
private unowned Gtk.RadioButton d_radio_button_forget;
[GtkChild ( name = "radio_button_session" )]
private Gtk.RadioButton d_radio_button_session;
private unowned Gtk.RadioButton d_radio_button_session;
[GtkChild ( name = "radio_button_forever" )]
private Gtk.RadioButton d_radio_button_forever;
private unowned Gtk.RadioButton d_radio_button_forever;
private static AuthenticationLifeTime s_last_lifetime;

View file

@ -21,37 +21,37 @@
class Gitg.DiffViewCommitDetails : Gtk.Grid
{
[GtkChild( name = "image_avatar" )]
private Gtk.Image d_image_avatar;
private unowned Gtk.Image d_image_avatar;
[GtkChild( name = "label_author" )]
private Gtk.Label d_label_author;
private unowned Gtk.Label d_label_author;
[GtkChild( name = "label_author_date" )]
private Gtk.Label d_label_author_date;
private unowned Gtk.Label d_label_author_date;
[GtkChild( name = "label_committer" )]
private Gtk.Label d_label_committer;
private unowned Gtk.Label d_label_committer;
[GtkChild( name = "label_committer_date" )]
private Gtk.Label d_label_committer_date;
private unowned Gtk.Label d_label_committer_date;
[GtkChild( name = "label_subject" )]
private Gtk.Label d_label_subject;
private unowned Gtk.Label d_label_subject;
[GtkChild( name = "label_sha1" )]
private Gtk.Label d_label_sha1;
private unowned Gtk.Label d_label_sha1;
[GtkChild( name = "grid_parents_container" )]
private Gtk.Grid d_grid_parents_container;
private unowned Gtk.Grid d_grid_parents_container;
[GtkChild( name = "grid_parents" )]
private Gtk.Grid d_grid_parents;
private unowned Gtk.Grid d_grid_parents;
[GtkChild( name = "expander_files" )]
private Gtk.Expander d_expander_files;
private unowned Gtk.Expander d_expander_files;
[GtkChild( name = "label_expand_collapse_files" )]
private Gtk.Label d_label_expand_collapse_files;
private unowned Gtk.Label d_label_expand_collapse_files;
public bool expanded
{

View file

@ -24,25 +24,25 @@ class Gitg.DiffViewFileRendererImage : Gtk.Grid, DiffViewFileRenderer
public Repository repository { get; construct set; }
[GtkChild( name = "diff_image_side_by_side" )]
private Gitg.DiffImageSideBySide d_diff_image_side_by_side;
private unowned Gitg.DiffImageSideBySide d_diff_image_side_by_side;
[GtkChild( name = "diff_image_slider" )]
private Gitg.DiffImageSlider d_diff_image_slider;
private unowned Gitg.DiffImageSlider d_diff_image_slider;
[GtkChild( name = "scale_slider_adjustment" )]
private Gtk.Adjustment d_scale_slider_adjustment;
private unowned Gtk.Adjustment d_scale_slider_adjustment;
[GtkChild( name = "diff_image_overlay" )]
private Gitg.DiffImageOverlay d_diff_image_overlay;
private unowned Gitg.DiffImageOverlay d_diff_image_overlay;
[GtkChild( name = "scale_overlay_adjustment" )]
private Gtk.Adjustment d_scale_overlay_adjustment;
private unowned Gtk.Adjustment d_scale_overlay_adjustment;
[GtkChild( name = "diff_image_difference" )]
private Gitg.DiffImageDifference d_diff_image_difference;
private unowned Gitg.DiffImageDifference d_diff_image_difference;
[GtkChild( name = "stack_switcher" )]
private Gtk.StackSwitcher d_stack_switcher;
private unowned Gtk.StackSwitcher d_stack_switcher;
private SurfaceCache d_cache;

View file

@ -21,16 +21,16 @@
class Gitg.DiffViewFile : Gtk.Grid
{
[GtkChild( name = "expander" )]
private Gtk.Expander d_expander;
private unowned Gtk.Expander d_expander;
[GtkChild( name = "label_file_header" )]
private Gtk.Label d_label_file_header;
private unowned Gtk.Label d_label_file_header;
[GtkChild( name = "diff_stat_file" )]
private DiffStat d_diff_stat_file;
private unowned DiffStat d_diff_stat_file;
[GtkChild( name = "revealer_content" )]
private Gtk.Revealer d_revealer_content;
private unowned Gtk.Revealer d_revealer_content;
private bool d_expanded;

View file

@ -21,10 +21,10 @@
public class Gitg.DiffViewOptions : Gtk.Toolbar
{
[GtkChild (name = "adjustment_context")]
private Gtk.Adjustment d_adjustment_context;
private unowned Gtk.Adjustment d_adjustment_context;
[GtkChild (name = "tool_button_spacing")]
private Gtk.ToolButton d_tool_button_spacing;
private unowned Gtk.ToolButton d_tool_button_spacing;
public int context_lines { get; set; }
@ -153,16 +153,16 @@ public class Gitg.DiffViewOptions : Gtk.Toolbar
private class Gitg.DiffViewOptionsSpacing : Gtk.Popover
{
[GtkChild (name = "switch_ignore_whitespace")]
private Gtk.Switch d_switch_ignore_whitespace;
private unowned Gtk.Switch d_switch_ignore_whitespace;
[GtkChild (name = "label_ignore_whitespace")]
private Gtk.Label d_label_ignore_whitespace;
private unowned Gtk.Label d_label_ignore_whitespace;
[GtkChild (name = "switch_wrap_lines")]
private Gtk.Switch d_switch_wrap_lines;
private unowned Gtk.Switch d_switch_wrap_lines;
[GtkChild (name = "adjustment_tab_width")]
private Gtk.Adjustment d_adjustment_tab_width;
private unowned Gtk.Adjustment d_adjustment_tab_width;
public bool ignore_whitespace { get; set; }
public bool wrap_lines { get; set; }

View file

@ -21,25 +21,25 @@
public class Gitg.DiffView : Gtk.Grid
{
[GtkChild( name = "commit_details" )]
private Gitg.DiffViewCommitDetails d_commit_details;
private unowned Gitg.DiffViewCommitDetails d_commit_details;
[GtkChild( name = "scrolledwindow" )]
private Gtk.ScrolledWindow d_scrolledwindow;
private unowned Gtk.ScrolledWindow d_scrolledwindow;
[GtkChild( name = "grid_files" )]
private Gtk.Grid d_grid_files;
private unowned Gtk.Grid d_grid_files;
[GtkChild( name = "event_box" )]
private Gtk.EventBox d_event_box;
private unowned Gtk.EventBox d_event_box;
[GtkChild( name = "revealer_options" )]
private Gtk.Revealer d_revealer_options;
private unowned Gtk.Revealer d_revealer_options;
[GtkChild( name = "diff_view_options" )]
private DiffViewOptions d_diff_view_options;
private unowned DiffViewOptions d_diff_view_options;
[GtkChild( name = "text_view_message" )]
private Gtk.TextView d_text_view_message;
private unowned Gtk.TextView d_text_view_message;
private Ggit.Diff? d_diff;
private Commit? d_commit;

View file

@ -39,21 +39,21 @@ namespace Gitg
private DateTime d_time = new DateTime.now_local();
private bool d_loading;
[GtkChild]
private ProgressBin d_progress_bin;
private unowned ProgressBin d_progress_bin;
[GtkChild]
private Gtk.Label d_repository_label;
private unowned Gtk.Label d_repository_label;
[GtkChild]
private Gtk.Label d_description_label;
private unowned Gtk.Label d_description_label;
[GtkChild]
private Gtk.Label d_branch_label;
private unowned Gtk.Label d_branch_label;
[GtkChild]
private Gtk.Spinner d_spinner;
private unowned Gtk.Spinner d_spinner;
[GtkChild]
private Gtk.CheckButton d_remove_check_button;
private unowned Gtk.CheckButton d_remove_check_button;
[GtkChild]
private Gtk.Revealer d_remove_revealer;
private unowned Gtk.Revealer d_remove_revealer;
[GtkChild]
private Gtk.Box d_languages_box;
private unowned Gtk.Box d_languages_box;
public signal void request_remove();

View file

@ -199,16 +199,16 @@ public class SidebarStore : Gtk.TreeStore
public class Sidebar : Gtk.TreeView
{
[GtkChild (name = "column")]
private Gtk.TreeViewColumn d_column;
private unowned Gtk.TreeViewColumn d_column;
[GtkChild (name = "renderer_icon")]
private Gtk.CellRendererPixbuf d_renderer_icon;
private unowned Gtk.CellRendererPixbuf d_renderer_icon;
[GtkChild (name = "renderer_header")]
private Gtk.CellRendererText d_renderer_header;
private unowned Gtk.CellRendererText d_renderer_header;
[GtkChild (name = "renderer_text")]
private Gtk.CellRendererText d_renderer_text;
private unowned Gtk.CellRendererText d_renderer_text;
public signal void deselected();