aboutsummaryrefslogtreecommitdiffstats
path: root/src/camorama-window.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 05:18:21 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 07:20:49 -0300
commit16c8f03b7cd32dd040af1771411c9a906af94fe8 (patch)
tree1b93967d5701f69b84bfe06a8ed31501e8167b9e /src/camorama-window.c
parent3cada8d74f6a4e82538bc17923f27bd3e03f4e8e (diff)
Do some code cleanups
When building it with: CFLAGS="-Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -Werror=return-type" Lots of warning appear. Clean up the most trivial ones. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/camorama-window.c')
-rw-r--r--src/camorama-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/camorama-window.c b/src/camorama-window.c
index a4565c8..97d2d91 100644
--- a/src/camorama-window.c
+++ b/src/camorama-window.c
@@ -188,18 +188,19 @@ tray_clicked_callback (GtkStatusIcon* status, guint button, guint activate_time,
void
load_interface(cam_t *cam) {
- int i;
+ unsigned int i;
gchar *title;
GdkPixbuf *logo = NULL;
GtkCellRenderer* cell;
GtkWidget *small_res, *new_res;
GtkWidget *window = GTK_WIDGET(gtk_builder_get_object(cam->xml,
"main_window"));
+ GtkTreeView* treeview;
menu_item_filter_type = g_quark_from_static_string("camorama-menu-item-filter-type");
/* set up the tree view */
- GtkTreeView* treeview = GTK_TREE_VIEW(gtk_builder_get_object(cam->xml, "treeview_effects"));
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(cam->xml, "treeview_effects"));
cell = gtk_cell_renderer_text_new();
g_object_set(cell, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
gtk_cell_renderer_text_set_fixed_height_from_font(GTK_CELL_RENDERER_TEXT(cell), 1);

Privacy Policy