Line data Source code
1 : /* File: gui_resources.c; Copyright and License: see below */ 2 : 3 : #include "gui_resources.h" 4 : #include "u8/u8_trace.h" 5 : #include <gtk/gtk.h> 6 : #include <stdbool.h> 7 : 8 : /* including resource files */ 9 : 10 : #if __GNUC__ >= 8 11 : #pragma GCC diagnostic push 12 : #pragma GCC diagnostic ignored "-Woverlength-strings" 13 : #endif 14 : 15 : #include "resources/crystal_facet_uml.c" 16 : #include "resources/edit_attributes_sect.c" 17 : #include "resources/edit_copy.c" 18 : #include "resources/edit_cut.c" 19 : #include "resources/edit_delete.c" 20 : #include "resources/edit_paste.c" 21 : #include "resources/edit_instantiate.c" 22 : #include "resources/edit_highlight.c" 23 : #include "resources/edit_redo.c" 24 : #include "resources/edit_undo.c" 25 : #include "resources/edit_reset.c" 26 : #include "resources/file_export.c" 27 : #include "resources/file_new_db.c" 28 : #include "resources/file_save.c" 29 : #include "resources/file_use_db.c" 30 : #include "resources/message_error.c" 31 : #include "resources/message_info.c" 32 : #include "resources/message_warn.c" 33 : #include "resources/message_user_doc.c" 34 : #include "resources/view_create.c" 35 : #include "resources/view_edit.c" 36 : #include "resources/view_navigate.c" 37 : #include "resources/view_new_window.c" 38 : #include "resources/view_search.c" 39 : #include "resources/tool_sect.c" 40 : #include "resources/navigate_breadcrumb_folder.c" 41 : #include "resources/navigate_closed_folder.c" 42 : #include "resources/navigate_create_child.c" 43 : #include "resources/navigate_create_child_0.c" 44 : #include "resources/navigate_create_sibling.c" 45 : #include "resources/navigate_create_sibling_0.c" 46 : #include "resources/navigate_open_folder.c" 47 : #include "resources/search_search.c" 48 : #include "resources/background_column.c" 49 : 50 : #include "resources/type_undef.c" 51 : #include "resources/type_diag_activity.c" 52 : #include "resources/type_diag_block.c" 53 : #include "resources/type_diag_box.c" 54 : #include "resources/type_diag_class.c" 55 : #include "resources/type_diag_communication.c" 56 : #include "resources/type_diag_component.c" 57 : #include "resources/type_diag_composite.c" 58 : #include "resources/type_diag_deployment.c" 59 : #include "resources/type_diag_internal.c" 60 : #include "resources/type_diag_list.c" 61 : #include "resources/type_diag_overview.c" 62 : #include "resources/type_diag_package.c" 63 : #include "resources/type_diag_parametric.c" 64 : #include "resources/type_diag_profile.c" 65 : #include "resources/type_diag_requirement.c" 66 : #include "resources/type_diag_sequence.c" 67 : #include "resources/type_diag_state.c" 68 : #include "resources/type_diag_timing.c" 69 : #include "resources/type_diag_usecase.c" 70 : 71 : #include "resources/type_clas_accept.c" 72 : #include "resources/type_clas_activity.c" 73 : #include "resources/type_clas_actor.c" 74 : #include "resources/type_clas_artifact.c" 75 : #include "resources/type_clas_block.c" 76 : #include "resources/type_clas_class.c" 77 : #include "resources/type_clas_comment.c" 78 : #include "resources/type_clas_component.c" 79 : #include "resources/type_clas_constraint.c" 80 : #include "resources/type_clas_decision.c" 81 : #include "resources/type_clas_deephistory.c" 82 : #include "resources/type_clas_diagram.c" 83 : #include "resources/type_clas_final.c" 84 : #include "resources/type_clas_fork.c" 85 : #include "resources/type_clas_history.c" 86 : #include "resources/type_clas_image.c" 87 : #include "resources/type_clas_initial.c" 88 : #include "resources/type_clas_interface.c" 89 : #include "resources/type_clas_join.c" 90 : #include "resources/type_clas_node.c" 91 : #include "resources/type_clas_object.c" 92 : #include "resources/type_clas_package.c" 93 : #include "resources/type_clas_part.c" 94 : #include "resources/type_clas_region.c" 95 : #include "resources/type_clas_requirement.c" 96 : #include "resources/type_clas_send.c" 97 : #include "resources/type_clas_state.c" 98 : #include "resources/type_clas_stereotype.c" 99 : #include "resources/type_clas_subsystem.c" 100 : #include "resources/type_clas_time.c" 101 : #include "resources/type_clas_usecase.c" 102 : 103 : #include "resources/type_feat_entry.c" 104 : #include "resources/type_feat_exit.c" 105 : #include "resources/type_feat_life.c" 106 : #include "resources/type_feat_operation.c" 107 : #include "resources/type_feat_port.c" 108 : #include "resources/type_feat_property.c" 109 : #include "resources/type_feat_provide.c" 110 : #include "resources/type_feat_require.c" 111 : #include "resources/type_feat_rx.c" 112 : #include "resources/type_feat_tag.c" 113 : #include "resources/type_feat_tx.c" 114 : 115 : #include "resources/type_rel_aggregate.c" 116 : #include "resources/type_rel_associate.c" 117 : #include "resources/type_rel_async.c" 118 : #include "resources/type_rel_compose.c" 119 : #include "resources/type_rel_communication_path.c" 120 : #include "resources/type_rel_contain.c" 121 : #include "resources/type_rel_control_flow.c" 122 : #include "resources/type_rel_depend.c" 123 : #include "resources/type_rel_deploy.c" 124 : #include "resources/type_rel_extend.c" 125 : #include "resources/type_rel_generalize.c" 126 : #include "resources/type_rel_include.c" 127 : #include "resources/type_rel_manifest.c" 128 : #include "resources/type_rel_object_flow.c" 129 : #include "resources/type_rel_realize.c" 130 : #include "resources/type_rel_refine.c" 131 : #include "resources/type_rel_return.c" 132 : #include "resources/type_rel_sync.c" 133 : #include "resources/type_rel_trace.c" 134 : 135 : #if __GNUC__ >= 8 136 : #pragma GCC diagnostic pop 137 : #endif 138 : 139 : #define GIMP_PIXBUF_DATA(STRUCTNAME) &(STRUCTNAME.pixel_data[0]), GDK_COLORSPACE_RGB, true /* alpha */, 8, \ 140 : STRUCTNAME.width, STRUCTNAME.height, STRUCTNAME.width * STRUCTNAME.bytes_per_pixel, \ 141 : NULL, NULL 142 : 143 456 : GdkTexture *gui_resources_new_texture_from_pixbuf_data( const guchar* data, 144 : GdkColorspace colorspace, 145 : gboolean has_alpha, 146 : int bits_per_sample, 147 : int width, 148 : int height, 149 : int rowstride, 150 : GdkPixbufDestroyNotify destroy_fn, 151 : gpointer destroy_fn_data 152 : ) 153 : { 154 456 : GdkPixbuf *pixbuf = gdk_pixbuf_new_from_data( data, colorspace, has_alpha, bits_per_sample, width, height, rowstride, destroy_fn, destroy_fn_data ); 155 456 : GdkTexture *result = gdk_texture_new_for_pixbuf( pixbuf ); 156 456 : g_object_unref( pixbuf ); 157 456 : return result; 158 : } 159 : 160 4 : void gui_resources_init ( gui_resources_t *this_ ) 161 : { 162 4 : U8_TRACE_BEGIN(); 163 : 164 4 : (*this_).crystal_facet_uml = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( crystal_facet_uml ) ); 165 : 166 4 : (*this_).edit_attributes_sect = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_attributes_sect ) ); 167 : 168 4 : (*this_).file_save = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( file_save ) ); 169 4 : (*this_).edit_copy = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_copy ) ); 170 4 : (*this_).edit_cut = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_cut ) ); 171 4 : (*this_).edit_delete = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_delete ) ); 172 4 : (*this_).edit_paste = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_paste ) ); 173 4 : (*this_).edit_instantiate = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_instantiate ) ); 174 4 : (*this_).edit_highlight = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_highlight ) ); 175 4 : (*this_).edit_redo = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_redo ) ); 176 4 : (*this_).edit_undo = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_undo ) ); 177 4 : (*this_).edit_reset = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_reset ) ); 178 : 179 4 : (*this_).file_export = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( file_export ) ); 180 4 : (*this_).file_new_db = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( file_new_db ) ); 181 4 : (*this_).view_new_window = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( view_new_window ) ); 182 4 : (*this_).file_use_db = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( file_use_db ) ); 183 : 184 4 : (*this_).message_error = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( message_error ) ); 185 4 : (*this_).message_info = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( message_info ) ); 186 4 : (*this_).message_warn = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( message_warn ) ); 187 : 188 4 : (*this_).message_user_doc = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( message_user_doc ) ); 189 : 190 4 : (*this_).view_search = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( view_search ) ); 191 4 : (*this_).view_navigate = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( view_navigate ) ); 192 4 : (*this_).view_create = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( view_create ) ); 193 4 : (*this_).view_edit = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( view_edit ) ); 194 4 : (*this_).tool_sect = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( tool_sect ) ); 195 : 196 4 : (*this_).navigate_breadcrumb_folder = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_breadcrumb_folder ) ); 197 4 : (*this_).navigate_closed_folder = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_closed_folder ) ); 198 4 : (*this_).navigate_create_child = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_create_child ) ); 199 4 : (*this_).navigate_create_child_0 = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_create_child_0 ) ); 200 4 : (*this_).navigate_create_sibling = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_create_sibling ) ); 201 4 : (*this_).navigate_create_sibling_0 = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_create_sibling_0 ) ); 202 4 : (*this_).navigate_open_folder = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_open_folder ) ); 203 : 204 4 : (*this_).search_search = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( search_search ) ); 205 : 206 4 : (*this_).background_column = gdk_pixbuf_new_from_data( GIMP_PIXBUF_DATA( background_column ) ); 207 : 208 4 : (*this_).type_undef = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_undef ) ); 209 : 210 4 : (*this_).type_diag_activity = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_activity ) ); 211 4 : (*this_).type_diag_block = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_block ) ); 212 4 : (*this_).type_diag_box = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_box ) ); 213 4 : (*this_).type_diag_class = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_class ) ); 214 4 : (*this_).type_diag_communication = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_communication ) ); 215 4 : (*this_).type_diag_component = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_component ) ); 216 4 : (*this_).type_diag_composite = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_composite ) ); 217 4 : (*this_).type_diag_deployment = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_deployment ) ); 218 4 : (*this_).type_diag_internal = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_internal ) ); 219 4 : (*this_).type_diag_list = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_list ) ); 220 4 : (*this_).type_diag_overview = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_overview ) ); 221 4 : (*this_).type_diag_package = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_package ) ); 222 4 : (*this_).type_diag_parametric = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_parametric ) ); 223 4 : (*this_).type_diag_profile = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_profile ) ); 224 4 : (*this_).type_diag_requirement = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_requirement ) ); 225 4 : (*this_).type_diag_sequence = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_sequence ) ); 226 4 : (*this_).type_diag_state = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_state ) ); 227 4 : (*this_).type_diag_timing = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_timing ) ); 228 4 : (*this_).type_diag_usecase = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_usecase ) ); 229 : 230 4 : (*this_).type_clas_accept = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_accept ) ); 231 4 : (*this_).type_clas_activity = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_activity ) ); 232 4 : (*this_).type_clas_actor = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_actor ) ); 233 4 : (*this_).type_clas_artifact = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_artifact ) ); 234 4 : (*this_).type_clas_block = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_block ) ); 235 4 : (*this_).type_clas_class = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_class ) ); 236 4 : (*this_).type_clas_comment = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_comment ) ); 237 4 : (*this_).type_clas_component = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_component ) ); 238 4 : (*this_).type_clas_constraint = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_constraint ) ); 239 4 : (*this_).type_clas_decision = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_decision ) ); 240 4 : (*this_).type_clas_deephistory = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_deephistory ) ); 241 4 : (*this_).type_clas_diagram = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_diagram ) ); 242 4 : (*this_).type_clas_final = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_final ) ); 243 4 : (*this_).type_clas_fork = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_fork ) ); 244 4 : (*this_).type_clas_history = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_history ) ); 245 4 : (*this_).type_clas_image = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_image ) ); 246 4 : (*this_).type_clas_initial = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_initial ) ); 247 4 : (*this_).type_clas_interface = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_interface ) ); 248 4 : (*this_).type_clas_join = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_join ) ); 249 4 : (*this_).type_clas_node = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_node ) ); 250 4 : (*this_).type_clas_object = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_object ) ); 251 4 : (*this_).type_clas_package = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_package ) ); 252 4 : (*this_).type_clas_part = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_part ) ); 253 4 : (*this_).type_clas_region = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_region ) ); 254 4 : (*this_).type_clas_requirement = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_requirement ) ); 255 4 : (*this_).type_clas_send = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_send ) ); 256 4 : (*this_).type_clas_state = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_state ) ); 257 4 : (*this_).type_clas_stereotype = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_stereotype ) ); 258 4 : (*this_).type_clas_subsystem = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_subsystem ) ); 259 4 : (*this_).type_clas_time = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_time ) ); 260 4 : (*this_).type_clas_usecase = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_usecase ) ); 261 : 262 4 : (*this_).type_feat_entry = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_entry ) ); 263 4 : (*this_).type_feat_exit = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_exit ) ); 264 4 : (*this_).type_feat_life = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_life ) ); 265 4 : (*this_).type_feat_operation = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_operation ) ); 266 4 : (*this_).type_feat_port = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_port ) ); 267 4 : (*this_).type_feat_property = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_property ) ); 268 4 : (*this_).type_feat_provide = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_provide ) ); 269 4 : (*this_).type_feat_require = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_require ) ); 270 4 : (*this_).type_feat_rx = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_rx ) ); 271 4 : (*this_).type_feat_tag = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_tag ) ); 272 4 : (*this_).type_feat_tx = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_tx ) ); 273 : 274 4 : (*this_).type_rel_aggregate = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_aggregate ) ); 275 4 : (*this_).type_rel_associate = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_associate ) ); 276 4 : (*this_).type_rel_async = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_async ) ); 277 4 : (*this_).type_rel_communication_path = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_communication_path ) ); 278 4 : (*this_).type_rel_compose = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_compose ) ); 279 4 : (*this_).type_rel_contain = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_contain ) ); 280 4 : (*this_).type_rel_control_flow = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_control_flow ) ); 281 4 : (*this_).type_rel_depend = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_depend ) ); 282 4 : (*this_).type_rel_deploy = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_deploy ) ); 283 4 : (*this_).type_rel_extend = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_extend ) ); 284 4 : (*this_).type_rel_generalize = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_generalize ) ); 285 4 : (*this_).type_rel_include = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_include ) ); 286 4 : (*this_).type_rel_manifest = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_manifest ) ); 287 4 : (*this_).type_rel_object_flow = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_object_flow ) ); 288 4 : (*this_).type_rel_realize = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_realize ) ); 289 4 : (*this_).type_rel_refine = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_refine ) ); 290 4 : (*this_).type_rel_return = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_return ) ); 291 4 : (*this_).type_rel_sync = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_sync ) ); 292 4 : (*this_).type_rel_trace = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_trace ) ); 293 : 294 4 : U8_TRACE_END(); 295 4 : } 296 : 297 : /*! 298 : * \brief destroys the gui_resources_t 299 : */ 300 4 : void gui_resources_destroy ( gui_resources_t *this_ ) 301 : { 302 4 : U8_TRACE_BEGIN(); 303 : 304 4 : g_object_unref ((*this_).crystal_facet_uml); 305 : 306 4 : g_object_unref ((*this_).edit_attributes_sect); 307 : 308 4 : g_object_unref ((*this_).file_save); 309 4 : g_object_unref ((*this_).edit_copy); 310 4 : g_object_unref ((*this_).edit_cut); 311 4 : g_object_unref ((*this_).edit_delete); 312 4 : g_object_unref ((*this_).edit_paste); 313 4 : g_object_unref ((*this_).edit_instantiate); 314 4 : g_object_unref ((*this_).edit_highlight); 315 4 : g_object_unref ((*this_).edit_redo); 316 4 : g_object_unref ((*this_).edit_undo); 317 4 : g_object_unref ((*this_).edit_reset); 318 : 319 4 : g_object_unref ((*this_).file_export); 320 4 : g_object_unref ((*this_).file_new_db); 321 4 : g_object_unref ((*this_).view_new_window); 322 4 : g_object_unref ((*this_).file_use_db); 323 : 324 4 : g_object_unref ((*this_).message_error); 325 4 : g_object_unref ((*this_).message_info); 326 4 : g_object_unref ((*this_).message_warn); 327 : 328 4 : g_object_unref ((*this_).message_user_doc); 329 : 330 4 : g_object_unref ((*this_).view_search); 331 4 : g_object_unref ((*this_).view_navigate); 332 4 : g_object_unref ((*this_).view_create); 333 4 : g_object_unref ((*this_).view_edit); 334 4 : g_object_unref ((*this_).tool_sect); 335 : 336 4 : g_object_unref ((*this_).navigate_breadcrumb_folder); 337 4 : g_object_unref ((*this_).navigate_closed_folder); 338 4 : g_object_unref ((*this_).navigate_create_child); 339 4 : g_object_unref ((*this_).navigate_create_child_0); 340 4 : g_object_unref ((*this_).navigate_create_sibling); 341 4 : g_object_unref ((*this_).navigate_create_sibling_0); 342 4 : g_object_unref ((*this_).navigate_open_folder); 343 : 344 4 : g_object_unref ((*this_).search_search); 345 : 346 4 : g_object_unref ((*this_).background_column); /* Type: GdkPixbuf */ 347 : 348 4 : g_object_unref ((*this_).type_undef); 349 : 350 4 : g_object_unref ((*this_).type_diag_activity); 351 4 : g_object_unref ((*this_).type_diag_block); 352 4 : g_object_unref ((*this_).type_diag_box); 353 4 : g_object_unref ((*this_).type_diag_class); 354 4 : g_object_unref ((*this_).type_diag_communication); 355 4 : g_object_unref ((*this_).type_diag_component); 356 4 : g_object_unref ((*this_).type_diag_composite); 357 4 : g_object_unref ((*this_).type_diag_deployment); 358 4 : g_object_unref ((*this_).type_diag_internal); 359 4 : g_object_unref ((*this_).type_diag_list); 360 4 : g_object_unref ((*this_).type_diag_overview); 361 4 : g_object_unref ((*this_).type_diag_package); 362 4 : g_object_unref ((*this_).type_diag_parametric); 363 4 : g_object_unref ((*this_).type_diag_profile); 364 4 : g_object_unref ((*this_).type_diag_requirement); 365 4 : g_object_unref ((*this_).type_diag_sequence); 366 4 : g_object_unref ((*this_).type_diag_state); 367 4 : g_object_unref ((*this_).type_diag_timing); 368 4 : g_object_unref ((*this_).type_diag_usecase); 369 : 370 4 : g_object_unref ((*this_).type_clas_accept); 371 4 : g_object_unref ((*this_).type_clas_activity); 372 4 : g_object_unref ((*this_).type_clas_actor); 373 4 : g_object_unref ((*this_).type_clas_artifact); 374 4 : g_object_unref ((*this_).type_clas_block); 375 4 : g_object_unref ((*this_).type_clas_class); 376 4 : g_object_unref ((*this_).type_clas_comment); 377 4 : g_object_unref ((*this_).type_clas_component); 378 4 : g_object_unref ((*this_).type_clas_constraint); 379 4 : g_object_unref ((*this_).type_clas_decision); 380 4 : g_object_unref ((*this_).type_clas_deephistory); 381 4 : g_object_unref ((*this_).type_clas_diagram); 382 4 : g_object_unref ((*this_).type_clas_final); 383 4 : g_object_unref ((*this_).type_clas_fork); 384 4 : g_object_unref ((*this_).type_clas_history); 385 4 : g_object_unref ((*this_).type_clas_image); 386 4 : g_object_unref ((*this_).type_clas_initial); 387 4 : g_object_unref ((*this_).type_clas_interface); 388 4 : g_object_unref ((*this_).type_clas_join); 389 4 : g_object_unref ((*this_).type_clas_node); 390 4 : g_object_unref ((*this_).type_clas_object); 391 4 : g_object_unref ((*this_).type_clas_package); 392 4 : g_object_unref ((*this_).type_clas_part); 393 4 : g_object_unref ((*this_).type_clas_region); 394 4 : g_object_unref ((*this_).type_clas_requirement); 395 4 : g_object_unref ((*this_).type_clas_send); 396 4 : g_object_unref ((*this_).type_clas_state); 397 4 : g_object_unref ((*this_).type_clas_stereotype); 398 4 : g_object_unref ((*this_).type_clas_subsystem); 399 4 : g_object_unref ((*this_).type_clas_time); 400 4 : g_object_unref ((*this_).type_clas_usecase); 401 : 402 4 : g_object_unref ((*this_).type_feat_entry); 403 4 : g_object_unref ((*this_).type_feat_exit); 404 4 : g_object_unref ((*this_).type_feat_life); 405 4 : g_object_unref ((*this_).type_feat_operation); 406 4 : g_object_unref ((*this_).type_feat_port); 407 4 : g_object_unref ((*this_).type_feat_property); 408 4 : g_object_unref ((*this_).type_feat_provide); 409 4 : g_object_unref ((*this_).type_feat_require); 410 4 : g_object_unref ((*this_).type_feat_rx); 411 4 : g_object_unref ((*this_).type_feat_tag); 412 4 : g_object_unref ((*this_).type_feat_tx); 413 : 414 4 : g_object_unref ((*this_).type_rel_aggregate); 415 4 : g_object_unref ((*this_).type_rel_associate); 416 4 : g_object_unref ((*this_).type_rel_async); 417 4 : g_object_unref ((*this_).type_rel_compose); 418 4 : g_object_unref ((*this_).type_rel_contain); 419 4 : g_object_unref ((*this_).type_rel_control_flow); 420 4 : g_object_unref ((*this_).type_rel_depend); 421 4 : g_object_unref ((*this_).type_rel_deploy); 422 4 : g_object_unref ((*this_).type_rel_extend); 423 4 : g_object_unref ((*this_).type_rel_generalize); 424 4 : g_object_unref ((*this_).type_rel_include); 425 4 : g_object_unref ((*this_).type_rel_manifest); 426 4 : g_object_unref ((*this_).type_rel_object_flow); 427 4 : g_object_unref ((*this_).type_rel_realize); 428 4 : g_object_unref ((*this_).type_rel_refine); 429 4 : g_object_unref ((*this_).type_rel_return); 430 4 : g_object_unref ((*this_).type_rel_sync); 431 4 : g_object_unref ((*this_).type_rel_trace); 432 : 433 4 : U8_TRACE_END(); 434 4 : } 435 : 436 : 437 : /* 438 : Copyright 2016-2024 Andreas Warnke 439 : 440 : Licensed under the Apache License, Version 2.0 (the "License"); 441 : you may not use this file except in compliance with the License. 442 : You may obtain a copy of the License at 443 : 444 : http://www.apache.org/licenses/LICENSE-2.0 445 : 446 : Unless required by applicable law or agreed to in writing, software 447 : distributed under the License is distributed on an "AS IS" BASIS, 448 : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 449 : See the License for the specific language governing permissions and 450 : limitations under the License. 451 : */