summaryrefslogtreecommitdiff
path: root/endless
diff options
context:
space:
mode:
authorFernando Farfan <fernando@endlessm.com>2013-06-15 09:40:10 -0700
committerFernando Farfan <fernando@endlessm.com>2013-06-17 14:19:35 -0700
commita458260bfc7455f4d70e04d45d3f313209d6ba08 (patch)
treec75f3c71f47b1c1ff6c1a6fea89d9299e98d0531 /endless
parentb9c46afd1f518f22e7c1446cf0dbfc0f2f2bcca3 (diff)
Addressed code review comments
Addressed the following code review comments: - Added newline at the end of the file - Replaced gtk_widget_unparent with gtk_widget_destroy in eos_top_bar_set_*_widget methods [endlessm/eos-sdk#97]
Diffstat (limited to 'endless')
-rw-r--r--endless/eostopbar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/endless/eostopbar.c b/endless/eostopbar.c
index 67918e6..5a60d90 100644
--- a/endless/eostopbar.c
+++ b/endless/eostopbar.c
@@ -184,7 +184,7 @@ eos_top_bar_set_left_widget (EosTopBar *self,
return;
if (priv->left_top_bar_widget)
- gtk_widget_unparent (priv->left_top_bar_widget);
+ gtk_widget_destroy (priv->left_top_bar_widget);
priv->left_top_bar_widget = left_top_bar_widget;
if (left_top_bar_widget)
@@ -218,7 +218,7 @@ eos_top_bar_set_center_widget (EosTopBar *self,
return;
if (priv->center_top_bar_widget)
- gtk_widget_unparent (priv->center_top_bar_widget);
+ gtk_widget_destroy (priv->center_top_bar_widget);
priv->center_top_bar_widget = center_top_bar_widget;
if (center_top_bar_widget)
@@ -231,4 +231,4 @@ eos_top_bar_set_center_widget (EosTopBar *self,
center_top_bar_widget,
TRUE, TRUE, 0);
}
-} \ No newline at end of file
+}