Further style mprovements
This commit is contained in:
parent
be0d58c54e
commit
dd488c3105
@ -224,9 +224,8 @@ int command_line_convert_gds(const char *gds_name,
|
|||||||
ret_destroy_library_list:
|
ret_destroy_library_list:
|
||||||
clear_lib_list(&libs);
|
clear_lib_list(&libs);
|
||||||
ret_clear_renderers:
|
ret_clear_renderers:
|
||||||
for (list_iter = renderer_list; list_iter; list_iter = list_iter->next) {
|
for (list_iter = renderer_list; list_iter; list_iter = list_iter->next)
|
||||||
g_object_unref(list_iter->data);
|
g_object_unref(list_iter->data);
|
||||||
}
|
|
||||||
ret_destroy_layer_mapping:
|
ret_destroy_layer_mapping:
|
||||||
g_object_unref(layer_sett);
|
g_object_unref(layer_sett);
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -215,7 +215,7 @@ static gboolean cell_store_filter_visible_func(GtkTreeModel *model, GtkTreeIter
|
|||||||
if (!cell)
|
if (!cell)
|
||||||
goto exit_filter;
|
goto exit_filter;
|
||||||
|
|
||||||
search_string = gtk_entry_get_text(GTK_ENTRY(self->cell_search_entry ));
|
search_string = gtk_entry_get_text(GTK_ENTRY(self->cell_search_entry));
|
||||||
|
|
||||||
/* Show all, if field is empty */
|
/* Show all, if field is empty */
|
||||||
if (!strlen(search_string))
|
if (!strlen(search_string))
|
||||||
@ -246,7 +246,9 @@ int gds_render_gui_setup_cell_selector(GdsRenderGui *self)
|
|||||||
G_TYPE_STRING, G_TYPE_STRING);
|
G_TYPE_STRING, G_TYPE_STRING);
|
||||||
|
|
||||||
/* Searching */
|
/* Searching */
|
||||||
self->cell_filter = GTK_TREE_MODEL_FILTER(gtk_tree_model_filter_new(GTK_TREE_MODEL(self->cell_tree_store), NULL));
|
self->cell_filter = GTK_TREE_MODEL_FILTER(
|
||||||
|
gtk_tree_model_filter_new(GTK_TREE_MODEL(self->cell_tree_store), NULL));
|
||||||
|
|
||||||
gtk_tree_model_filter_set_visible_func(self->cell_filter,
|
gtk_tree_model_filter_set_visible_func(self->cell_filter,
|
||||||
(GtkTreeModelFilterVisibleFunc)cell_store_filter_visible_func,
|
(GtkTreeModelFilterVisibleFunc)cell_store_filter_visible_func,
|
||||||
self, NULL);
|
self, NULL);
|
||||||
@ -273,8 +275,10 @@ int gds_render_gui_setup_cell_selector(GdsRenderGui *self)
|
|||||||
gtk_tree_view_append_column(self->cell_tree_view, column);
|
gtk_tree_view_append_column(self->cell_tree_view, column);
|
||||||
|
|
||||||
/* Callback for selection
|
/* Callback for selection
|
||||||
* This prevents selecting a library */
|
* This prevents selecting a library
|
||||||
gtk_tree_selection_set_select_function(gtk_tree_view_get_selection(self->cell_tree_view), tree_sel_func, NULL, NULL);
|
*/
|
||||||
|
gtk_tree_selection_set_select_function(gtk_tree_view_get_selection(self->cell_tree_view),
|
||||||
|
tree_sel_func, NULL, NULL);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -450,7 +454,9 @@ static void async_rendering_finished_callback(GdsOutputRenderer *renderer, gpoin
|
|||||||
g_object_unref(renderer);
|
g_object_unref(renderer);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void async_rendering_status_update_callback(GdsOutputRenderer *renderer, const char *status_message, gpointer data)
|
static void async_rendering_status_update_callback(GdsOutputRenderer *renderer,
|
||||||
|
const char *status_message,
|
||||||
|
gpointer data)
|
||||||
{
|
{
|
||||||
GdsRenderGui *gui;
|
GdsRenderGui *gui;
|
||||||
(void)renderer;
|
(void)renderer;
|
||||||
|
Loading…
Reference in New Issue
Block a user