Commit cbb2c34b authored by Danilo Galete's avatar Danilo Galete 💬
Browse files

Change project

parent 1148b4bd
......@@ -168,7 +168,7 @@ finance_controller_transactions_startup (FinanceControllerTransactions *self)
G_BINDING_DEFAULT);
g_object_bind_property ((gpointer)summary,
"amount-string",
"amount",
(gpointer)row,
"amount",
G_BINDING_DEFAULT);
......@@ -181,7 +181,7 @@ finance_controller_transactions_startup (FinanceControllerTransactions *self)
finance_summary_child_set_name (FINANCE_SUMMARY_CHILD (summary),
"Cadastro para Teste");
finance_summary_child_set_amount_string (FINANCE_SUMMARY_CHILD (summary),
finance_summary_child_set_amount (FINANCE_SUMMARY_CHILD (summary),
"R$ 500,00");
finance_view_insert_child (FINANCE_VIEW (self->view_transactions), summary);
......
......@@ -38,8 +38,8 @@ struct _FinanceWindow
GtkWidget *stack;
GtkWidget *stack_switcher_top;
GtkWidget *transaction;
GtkWidget *transaction_view;
GtkWidget *view_switcher_bottom;
GtkWidget *view_transactions;
GSettings *settings;
GObject *controller_transactions;
......@@ -174,8 +174,8 @@ finance_window_class_init (FinanceWindowClass *klass)
gtk_widget_class_bind_template_child (widget_class, FinanceWindow, stack);
gtk_widget_class_bind_template_child (widget_class, FinanceWindow, stack_switcher_top);
gtk_widget_class_bind_template_child (widget_class, FinanceWindow, transaction);
gtk_widget_class_bind_template_child (widget_class, FinanceWindow, transaction_view);
gtk_widget_class_bind_template_child (widget_class, FinanceWindow, view_switcher_bottom);
gtk_widget_class_bind_template_child (widget_class, FinanceWindow, view_transactions);
/* The CallBacks */
gtk_widget_class_bind_template_callback (widget_class, on_add_credit_clicked);
......@@ -197,7 +197,7 @@ finance_window_init (FinanceWindow *self)
self->controller_transactions = g_object_new (FINANCE_TYPE_CONTROLLER_TRANSACTIONS,
"pane", self->left_panel,
"view", self->view_transactions,
"view", self->transaction_view,
NULL);
finance_controller_transactions_startup (self->controller_transactions);
......
......@@ -246,7 +246,7 @@ finance_transaction_row_class_init (FinanceTransactionRowClass *klass)
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
/**
* FinanceTransactionRow::selected
* FinanceTransactionRow::selected:
*
* The transaction row selected
*/
......@@ -432,7 +432,7 @@ finance_transaction_row_get_selected (FinanceTransactionRow *self)
* @self: a #FinanceTransactionRow
* @selected: #TRUE if row is to be selected, and #FALSE otherwise
*
* Changes the state of #FinanceTransactionRow to the desired one
* Sets whether the row is in its “selected” or “unselected” state
*
* Since: 1.0
*/
......
......@@ -33,14 +33,9 @@ G_DECLARE_FINAL_TYPE (FinanceSummaryChild, finance_summary_child, FINANCE, SUMMA
GtkWidget * finance_summary_child_new (void);
gdouble finance_summary_child_get_amount (FinanceSummaryChild *self);
const gchar * finance_summary_child_get_amount (FinanceSummaryChild *self);
void finance_summary_child_set_amount (FinanceSummaryChild *self,
double amount);
const gchar * finance_summary_child_get_amount_string (FinanceSummaryChild *self);
void finance_summary_child_set_amount_string (FinanceSummaryChild *self,
const gchar *amount);
const gchar * finance_summary_child_get_category (FinanceSummaryChild *self);
......@@ -53,13 +48,10 @@ GdkRGBA * finance_summary_child_get_color (FinanceSummaryChild *
void finance_summary_child_set_color (FinanceSummaryChild *self,
const GdkRGBA *color);
gboolean finance_summary_child_get_currency_symbol (FinanceSummaryChild *self);
void finance_summary_child_set_currency_symbol (FinanceSummaryChild *self,
gboolean currency_symbol);
const gchar * finance_summary_child_get_date (FinanceSummaryChild *self);
void finance_summary_child_set_date (FinanceSummaryChild *self,
GDateTime *date);
const gchar *date);
const gchar * finance_summary_child_get_icon (FinanceSummaryChild *self);
......@@ -71,17 +63,25 @@ const gchar * finance_summary_child_get_name (FinanceSummaryChild *
void finance_summary_child_set_name (FinanceSummaryChild *self,
const gchar *name);
const gchar * finance_summary_child_get_payee_name (FinanceSummaryChild *self);
void finance_summary_child_set_payee_name (FinanceSummaryChild *self,
const gchar *payee_name);
const gchar * finance_summary_child_get_payment (FinanceSummaryChild *self);
void finance_summary_child_set_payment (FinanceSummaryChild *self,
gint payment);
const gchar *payment);
const gchar * finance_summary_child_get_repeat (FinanceSummaryChild *self);
void finance_summary_child_set_repeat (FinanceSummaryChild *self,
gint repeat);
const gchar *repeat);
gboolean finance_summary_child_get_selected (FinanceSummaryChild *self);
void finance_summary_child_set_symbol (FinanceSummaryChild *self,
gint symbol);
void finance_summary_child_set_selected (FinanceSummaryChild *self,
gboolean selected);
G_END_DECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment