summaryrefslogtreecommitdiff
path: root/gladeui/glade-design-layout.c
Commit message (Collapse)AuthorAgeFilesLines
* GladeProject: cleanup disposeJuan Pablo Ugarte2020-08-051-15/+21
| | | | | | | | | GladeAdaptorChooserWidget: use g_object_add_weak_pointer() instead of g_object_weak_ref() and unset project on dispose. GladeDesignLayout, GladeDesignView: use g_object_add_weak_pointer() GladeEditable: fix project signal disconnect issue
* gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeDesignLayoutCorentin Noël2019-08-201-62/+53
|
* dnd: Enable Drag&Drop on waylandAlberto Fanjul2019-08-061-1/+1
|
* Fix tab/space identationJuan Pablo Ugarte2018-08-021-1/+1
|
* GladeWidgetAdaptor: add glade_widget_adaptor_get_display_name()Juan Pablo Ugarte2018-08-021-2/+2
|
* Remove GladeInstantiable prefix from UIJuan Pablo Ugarte2018-08-021-1/+2
|
* GladeDesignView: set selected layout stateJuan Pablo Ugarte2018-01-301-6/+0
| | | | Update layout state in order to change border color with css
* add background class to GladeDesignLayout childrenLukas K2017-11-261-0/+3
|
* Fix use of GTK+ style context in GladeDesignLayout.Arnaud Rebillout2017-06-141-3/+4
| | | | | | | | | | It seems like modifying the style context in the 'draw' handler is not recommended, and we need to save/restore the context. Otherwise, for some widgets (GtkButton, GtkComboBox), the GladeDesignLayout gets trapped in draw-damage loop. See 0c076cc8828cd80f1f156a08569199675bf35165 for reference.
* GladeDesignLayout: fixed regresion drawing nodes and pushpin in margins and ↵Juan Pablo Ugarte2016-03-221-7/+16
| | | | | | alginment edit modes. _glade_design_layout_get_colors() removed context parameter.
* GladeDesignLayout: updated to new class css name APIJuan Pablo Ugarte2016-03-141-0/+2
|
* GladeDesignLayout: implemented selection box in cssJuan Pablo Ugarte2016-03-141-18/+9
|
* GladeDesignLayout: implemented frame using cssJuan Pablo Ugarte2016-03-141-62/+31
|
* GladeDesignLayout: use new api to check if a widget has a nameJuan Pablo Ugarte2016-01-281-5/+5
|
* GladeDesignView: show class name if widget is unnamedJuan Pablo Ugarte2016-01-271-1/+10
|
* GladeDesignLayout: Avoid GTK+ warningsMatthias Clasen2015-11-251-5/+9
| | | | | | | | | | GTK+ warns nowadays if the state passed to gtk_style_context_get_* does not match the state of the context. Avoid this by setting the state beforehand. This is just a bandaid fix; the drawing should be redone in terms of gtk_render_ APIs instead of poking at colors. https://bugzilla.gnome.org/show_bug.cgi?id=758296
* GladeDesignLayout: cursor and button event cleanup.Juan Pablo Ugarte2014-05-201-44/+56
| | | | | Propagate button press properly. Fixed several pointer glitches.
* Sealed deprecated functions gtk_widget_get_margin_left() andJuan Pablo Ugarte2014-05-071-52/+72
| | | | gtk_widget_get_margin_right()
* Convert every object to use G_DEFINE_TYPE_WITH_CODE() or G_ADD_PRIVATE() macrosJuan Pablo Ugarte2014-04-171-9/+4
| | | | Fixed function prototype identation and spacing.
* Drag&Drop clean up.Juan Pablo Ugarte2013-08-191-127/+60
| | | | | | | | | | | Added private _GladeDrag interface. (only used internaly in gladeui) Implemented _GladeDrag in GladePlaceholder GladeWidget GladeDesignView and GladeDesignLayout Added drag-dest property to GladeWidget to enable/disable drag support (used in GtkFixed GtkLayout and GtkOverlay containers) Made GladeInspector a drag source by implementing GtkTreeDragSource interface in GladeProject
* Fixed rendering issues now that we support GtkOverlay and overlay children ↵Juan Pablo Ugarte2013-08-191-26/+75
| | | | can be outside of its parent allocation.
* Replaced glade_design_layout_find_inside_container() with new private APIJuan Pablo Ugarte2013-08-191-84/+235
| | | | _glade_design_layout_get_child_at_position()
* Fixed leak in glade_design_layout_drag_begin()Juan Pablo Ugarte2013-07-111-0/+1
|
* Made double click on the toplevel border select the widget even if there is ↵Juan Pablo Ugarte2013-07-011-4/+5
| | | | a child selected.
* Update widget name when realizing layout to prevent lossing it after a reparent.Juan Pablo Ugarte2013-06-271-8/+23
|
* Replaced use of cairo_device_to_user() with cairo_translate() ↵Juan Pablo Ugarte2013-06-261-21/+21
| | | | | | cairo_move_to() combination to avoid a selection drawing bug on overlay children.
* bgo #700730 - Weird windows showing up when a dock is moved while editing a ↵Sébastien Granjoux2013-06-261-2/+15
| | | | GtkBuilder file
* Fixed drag icon rendering bug. for some reason we need a cairo save/restoreJuan Pablo Ugarte2013-06-061-1/+13
| | | | | around our custom draw methods otherwise the children rendering get affected by our modifications to the cairo matrix.
* Fixed drag&drop bug. A bogus drag was being triggered when resizing a widget ↵Juan Pablo Ugarte2013-06-061-5/+10
| | | | in the workspace.
* GladeDesignLayout: added GTK_STYLE_CLASS_BACKGROUND class to ↵Juan Pablo Ugarte2013-04-191-0/+1
| | | | default_context, so widgets other than GtkWindow get a proper background.
* GladeDesignLayout, GladePalette: Use class icon and name + widget name as ↵Juan Pablo Ugarte2013-04-191-21/+82
| | | | drag icon widget.
* GladeDesignLayout:Juan Pablo Ugarte2013-04-021-38/+34
| | | | | o Reserved SHIFT modifier and DRAG_RESIZE pointer mode for apdator use (GladeFixed) o Use middle button to enter ALIGN_EDIT pointer mode insted of SHIFT
* Fixed drag icon creation. Re implemented using gtk_widget_draw() on a ↵Juan Pablo Ugarte2013-04-011-31/+25
| | | | transparent window.
* Cleanup deprecations all around.Tristan Van Berkom2013-04-011-1/+1
| | | | | | | | GtkColorChooser APIs now used for color editing GladeBaseEditor now uses a GtkGrid for it's last GtkTable In some places to support deprecated types, we explicitly add G_GNUC_BEGIN/END_IGNORE_DEPRECATIONS statements.
* Fixed crasher on exit removing project hierarchy from GladeDesignLayoutJuan Pablo Ugarte2013-03-291-0/+16
|
* Use a window style context to render background in the offscreen window.Juan Pablo Ugarte2013-01-221-30/+14
|
* Implemented inline Drag and DropJuan Pablo Ugarte2013-01-181-59/+203
|
* Fixed bug #688326 "pointer tracking is off" by using every coordinateJuan Pablo Ugarte2013-01-171-18/+34
| | | | | | | relative to GladeDesignLayout. Optimized _glade_design_layout_do_event() replacing gdk_window_get_device_position() with a gdk_window_coords_to_parent() iteration to avoid server roundtrip.
* Set a background to the offscreen window, so that widgets without a window ↵Juan Pablo Ugarte2013-01-171-17/+29
| | | | added as toplevels look right.
* Render bg in GladeDesignLayout and GladeDesignViewJuan Pablo Ugarte2012-10-081-14/+41
|
* Removed use of custon style providers. Fixes color problems in adwaita themesJuan Pablo Ugarte2012-10-071-15/+11
|
* Do not explicit set window bg as it should be handled by gtk.Juan Pablo Ugarte2012-09-061-10/+0
| | | | Fixes glitches when the widget is on a different state.
* Made unselected border color darkerJuan Pablo Ugarte2012-05-031-2/+11
| | | | Removed use of deprecated function gtk_widget_get_pointer()
* Removed use of deprecated GtkHBox, GtkVBox and othersJuan Pablo Ugarte2012-04-281-3/+2
|
* Removed old theme hack widget_reset_bg_color()Juan Pablo Ugarte2012-04-271-33/+4
| | | | Set the right bg color for the offscreen window instead of drawing the bg for windowless children
* Draw bg for windowless widgets used as toplevels.Juan Pablo Ugarte2012-04-271-34/+32
| | | | | Added custom stype provider to setip bg color to @base_color. Symplyfied glade_design_layout_style_updated() using gtk_style_context_lookup_color()
* Fixed bug detecting widget including marginsJuan Pablo Ugarte2011-11-031-12/+7
|
* Added workaround for child bg bug on Adwaita theme on the workspace.Juan Pablo Ugarte2011-11-031-0/+23
|
* Make GladeDesignLayout use only button 1 press to select widgets.Juan Pablo Ugarte2011-10-311-16/+25
| | | | | Fixed bug in gdl_get_margins_from_pointer(), needed to translate coordinates In glade_design_layout_find_inside_container() use widget margins as if they where part of the widget allocation.
* gladeui/glade-design-layout.c unref GtkStyleContext object used in ↵Juan Pablo Ugarte2011-10-061-0/+2
| | | | glade_design_layout_style_updated()