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