Commit Graph

7439 Commits

Author SHA1 Message Date
Michael Natterer
eb8f23f90f don't animate the expander arrows if gtk-enable-animations is FALSE (bug
2006-01-13  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktreeview.c (gtk_tree_view_real_expand_row)
	(gtk_tree_view_real_collapse_row): don't animate the expander
	arrows if gtk-enable-animations is FALSE (bug #142582).
2006-01-13 10:03:31 +00:00
Matthias Clasen
dda636ee77 Replace hardcoded values for tab-overlap and tab-curvature with style
2006-01-12  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtknotebook.c: Replace hardcoded values for tab-overlap and
	tab-curvature with style properties.  (#325282, Alexander Nedotsukov)
2006-01-12 21:31:55 +00:00
Matthias Clasen
bef8f3e46c Reset the virtual cursor position. (#326003, Evert Verhellen)
2006-01-12  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_commit_text)
	(gtk_text_view_delete_from_cursor, gtk_text_view_backspace):
	Reset the virtual cursor position.  (#326003, Evert Verhellen)
2006-01-12 21:14:30 +00:00
Matthias Clasen
37e804fe5a Add some docs about RGBA windows. (#326486, Benjamin Otte)
2006-01-12  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add some docs
	about RGBA windows. (#326486, Benjamin Otte)
2006-01-12 18:43:35 +00:00
Michael Natterer
b060715deb connect to the display's "closed" signal and free the cached scratch
2006-01-12  Michael Natterer  <mitch@imendio.com>

	* gdk/gdkimage.c (scratch_image_info_for_depth): connect to the
	display's "closed" signal and free the cached scratch images upon
	display closing (bug #85715).
2006-01-12 13:50:51 +00:00
Michael Natterer
1945476285 skip the animation if the gtk-enable-animations setting is FALSE (bug
2006-01-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkexpander.c (gtk_expander_set_expanded): skip the
	animation if the gtk-enable-animations setting is FALSE
	(bug #142582).
2006-01-12 09:54:54 +00:00
Matthias Clasen
5c62a90e38 Fix a C99ism 2006-01-12 04:33:33 +00:00
Matthias Clasen
c5584b10ca Add some notify batching, always emit notify after setting the new value.
2006-01-11  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtklabel.c: Add some notify batching, always
	emit notify after setting the new value.
2006-01-11 16:13:23 +00:00
Matthias Clasen
235144125f Add properties. (#311254, Johan Dahlin) (gtk_message_dialog_new): Remove
* gtk/gtkmessagedialog.c: Add properties.  (#311254,
	Johan Dahlin)
	(gtk_message_dialog_new): Remove some redundant code, pointed
	out by Gustavo Carneiro.
2006-01-11 15:23:05 +00:00
Matthias Clasen
5453f11464 Clean up properly if the grab fails. (finish_drag): Don't leak a reference
2006-01-11  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkwindow-x11.c (create_moveresize_window): Clean
	up properly if the grab fails.
	(finish_drag): Don't leak a reference to moveresize_window
	here.
2006-01-11 14:54:05 +00:00
Matthias Clasen
29b890f951 Fix string offsets.
2006-01-11  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkevents-x11.c: Fix string offsets.
2006-01-11 06:26:30 +00:00
Matthias Clasen
f35d4e1e47 Allow falling back to another icon theme before hicolor. (#325546, Rodney
2006-01-11  Matthias Clasen  <mclasen@redhat.com>

	Allow falling back to another icon theme before
	hicolor.   (#325546, Rodney Dawes)

	* gtk/gtksettings.c: Add a gtk-fallback-icon-theme setting.

	* gdk/x11/gdkevents-x11.c: Map it to the XSetting Net/FallbackIconTheme.

	* gtk/gtkicontheme.c: Consult the fallback icon theme before
	looking in hicolor.
2006-01-11 06:20:17 +00:00
Matthias Clasen
a469257a23 Add an expander example.
2006-01-10  Matthias Clasen  <mclasen@redhat.com>

	* tests/testgtk.c: Add an expander example.
2006-01-11 04:18:19 +00:00
Matthias Clasen
4da4ca3103 Queue a draw when losing the focus. (#326064, Andrew Conkling)
2006-01-10  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcalendar.c (gtk_calendar_focus_out): Queue a draw
	when losing the focus.  (#326064, Andrew Conkling)
2006-01-11 03:48:27 +00:00
Matthias Clasen
7d109b26b7 Remove duplicate include. (#326429, Benoît Carpentier)
2006-01-10  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.h: Remove duplicate include.  (#326429,
	Benoît Carpentier)
2006-01-10 19:55:11 +00:00
Matthias Clasen
0278fb06f7 Convert to use instance private data.
2006-01-10  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkpaned.c: Convert to use instance private data.
2006-01-10 17:56:27 +00:00
Michael Natterer
65c8f103d6 disconnect from the right object ("closed" is emitted by the display, not
2006-01-10  Michael Natterer  <mitch@imendio.com>

	* gdk/gdkpango.c (on_renderer_display_closed): disconnect from the
	right object ("closed" is emitted by the display, not the screen).
	(bug #85715)
2006-01-10 16:47:37 +00:00
Anders Carlsson
c18f7da40d Implement local-only atoms.
2006-01-10  Anders Carlsson  <andersca@imendio.com>

        * gdk/quartz/gdkproperty-quartz.c:
        (ensure_atom_tables):
        (intern_atom_internal):
        (gdk_atom_intern):
        (gdk_atom_intern_static_string):
        (gdk_atom_name):
        Implement local-only atoms.
2006-01-10 16:38:26 +00:00
Matthias Clasen
4483d48b75 Correct a warning. (#326341, Benoît Carpentier)
2006-01-09  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdkgc.c (gc_get_foreground): Correct a warning.
	(#326341, Benoît Carpentier)
2006-01-10 04:42:18 +00:00
Matthias Clasen
dcfac2c69c Make this function public API. (#307099, Todd Berman)
2006-01-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.symbols:
	* gtk/gtkwindow.h:
	* gtk/gtkwindow.c (gtk_window_get_group): Make this function
	public API.  (#307099, Todd Berman)

	* gtk/gtkmenu.c:
	* gtk/gtkmain.c:
	* gtk/gtkentrycompletion.c:
	* gtk/gtkcombo.c:
	* gtk/gtkcombobox.c: Update all callers.
2006-01-10 04:33:30 +00:00
Matthias Clasen
990b529379 Make GtkEntryCompletion complete on pastes at the end. (#165714, Christian
2006-01-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentry.c (paste_received):  Make GtkEntryCompletion
	complete on pastes at the end.  (#165714, Christian Neumair)
2006-01-10 04:07:32 +00:00
Matthias Clasen
0d313b587b Prevent the first row being focused on map. (#137351, Niklas Knutsson)
2006-01-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentrycompletion.c (_gtk_entry_completion_popup):
	Prevent the first row being focused on map.  (#137351,
	Niklas Knutsson)
2006-01-09 19:22:33 +00:00
Johan Dahlin
b3f14e09e4 Add gtk_size_group_get_widgets, fixes #326324. Also mark all fields of
* gtk/gtk.symbols:
    * gtk/gtkeditable.h:
    * gtk/gtksizegroup.c: (gtk_size_group_get_widgets):
    * gtk/gtksizegroup.h:
    (struct _GtkSizeGroup):

    Add gtk_size_group_get_widgets, fixes #326324.
    Also mark all fields of GtkSizeGroup as private
2006-01-09 19:18:14 +00:00
Matthias Clasen
bd90bfbc96 Don't leak preedit_string and preedit_attrs. (#322332, Paolo Borelli)
2006-01-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
	leak preedit_string and preedit_attrs.  (#322332, Paolo
	Borelli)
2006-01-09 18:20:23 +00:00
Matthias Clasen
f23bdf7a68 New function to get the action for a proxy. (#326288)
2006-01-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.symbols:
	* gtk/gtkaction.h:
	* gtk/gtkaction.c (gtk_widget_get_action): New function to
	get the action for a proxy.  (#326288)
2006-01-09 18:07:14 +00:00
Matthias Clasen
eb590e8487 Go back to the old key for attaching the action to the proxy. (#326288,
2006-01-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaction.c: Go back to the old key for attaching the
	action to the proxy.  (#326288, Diego González)
2006-01-09 16:54:04 +00:00
Matthias Clasen
ed565c27ba Don't translate empty strings. (#326200, Christian Stimming)
2006-01-08  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
        empty strings.  (#326200, Christian Stimming)
2006-01-08 23:25:14 +00:00
Matthias Clasen
a7a85ac867 Shrink the private structs of these a bit.
2006-01-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentry.[hc]:
	* gtk/gtklabel.[hc]: Shrink the private structs of these a bit.
2006-01-08 07:54:43 +00:00
Matthias Clasen
8f526a5dc9 Fix label alignment when width-chars is set. (#326098, Benjamin Otte)
2006-01-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtklabel.c (get_layout_location): Fix label alignment
	when width-chars is set.  (#326098, Benjamin Otte)
2006-01-08 06:44:11 +00:00
Matthias Clasen
ea8167d919 Fix this for the single-rectangle case. (#326127, Benjamin Berg)
2006-01-08  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdkregion-generic.c (miRegionCopy): Fix this for the
	single-rectangle case.  (#326127, Benjamin Berg)
	(gdk_region_copy): Use miRegionCopy() here.
2006-01-08 06:11:18 +00:00
Matthias Clasen
36d81d4085 Fix actiongroup-action interaction that relied on actions connecting to
2006-01-07  Matthias Clasen  <mclasen@redhat.com>

	Fix actiongroup-action interaction that relied on
	actions connecting to notify on themselves:

	* gtk/gtkaction.[hc]: Factor out the code updating the
	visibility/sensitivity of proxies into _gtk_action_sync_visible()
	and _gtk_action_sync_sensible().

	* gtk/gtkactiongroup.c: Call the new functions when the
	group visibility/sensitivity changes.
2006-01-07 06:08:07 +00:00
Matthias Clasen
91cde9cedf Add missing property change notification.
2006-01-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkactiongroup.c (gtk_action_group_set_sensitive)
	(gtk_action_group_set_visible): Add missing property change
	notification.
2006-01-07 04:18:40 +00:00
Matthias Clasen
fd96117f72 Just use the directory name for the home dir. (#325817, Federico Mena
2006-01-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserbutton.c (model_add_special): Just use the
	directory name for the home dir.  (#325817, Federico Mena Quintero)
2006-01-06 21:49:59 +00:00
Matthias Clasen
dd402c49f8 Initialize editable to TRUE. (gtk_text_tag_class_init): The default value
2006-01-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable to
	TRUE.
	(gtk_text_tag_class_init): The default value for the direction property
	is GTK_TEXT_DIR_NONE. Add notes about the initial values of the
	font and language properties.
2006-01-06 17:53:53 +00:00
Matthias Clasen
12b2db9c67 Make clicked an action signal. (#325782, Martyn Russell)
2006-01-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
	an action signal.  (#325782, Martyn Russell)
2006-01-06 15:21:32 +00:00
Matthias Clasen
d08217457f Disconnect from the old adjustments signals. (#325869, Jorn Baayen)
2006-01-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkviewport.c (viewport_set_adjustment): Disconnect from
	the old adjustments signals.  (#325869, Jorn Baayen)
2006-01-06 14:07:24 +00:00
Hans Breuer
b546df99ea added a bunch of tests use g_snprintf() don't include unistd.h twice.
2006-01-06  Hans Breuer  <hans@breuer.org>

	* tests/makefile.msc : added a bunch of tests
	* tests/testcellrenderertext.c : use g_snprintf()
	* tests/testfilechooserbutton.c : don't include unistd.h twice.
	Removed the unconditional one and added direct.h for G_OS_WIN32
2006-01-06 12:05:28 +00:00
Hans Breuer
7b550043d0 also recurse into win32 for ::clean create gtkbuiltincache.h (most code to
2006-01-05  Hans Breuer  <hans@breuer.org>

	* gdk/makefile.msc : also recurse into win32 for ::clean
	* gtk/makefile.msc.in : create gtkbuiltincache.h (most code
	to simulate links) and file renames
2006-01-05 23:55:08 +00:00
Johan Dahlin
4810de4a0d Set minimum for activity-step property to 0 instead of -G_MAXUINT.
* gtk/gtkprogressbar.c: Set minimum for activity-step property to 0
  instead of -G_MAXUINT.
2006-01-05 19:59:18 +00:00
Matthias Clasen
905254f775 Only connect to the event if we have a frame, since the handler is only
2006-01-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwindow.c: Only connect to the event if we have
	a frame, since the handler is only relevant in that case.
2006-01-05 19:15:45 +00:00
Matthias Clasen
c781cbbee8 Some more 2006-01-05 17:39:17 +00:00
Matthias Clasen
d623d6a529 Use a weak reference rather than the destroy signal to track proxies going
2006-01-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaction.c (connect_proxy): Use a weak reference rather
	than the destroy signal to track proxies going away.
2006-01-05 17:30:44 +00:00
Matthias Clasen
a5ed2693c0 Revert the last change.
2006-01-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkbindings.c (binding_signal_new): Revert the last change.
2006-01-05 15:56:14 +00:00
Matthias Clasen
013349c2ea Removed.
2006-01-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaction.c: (gtk_action_sync_property): Removed.
2006-01-05 14:40:27 +00:00
Rodrigo Moya
2ffc74793b allocate correct amount for signal and arguments.
2006-01-05  Rodrigo Moya <rodrigo@novell.com>

	* gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
	signal and arguments.
2006-01-05 11:26:59 +00:00
Matthias Clasen
8de623acd4 Don't return a value from a void function.
2006-01-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from
	a void function.
2006-01-05 06:28:58 +00:00
Matthias Clasen
6441a62967 Revert questionable changes.
2006-01-04  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkbindings.h (struct _GtkBindingSignal): Revert questionable
	changes.

	* gtk/gtkbindings.c: Use the slice allocator and allocate signal
	and arguments in one block.
2006-01-05 04:21:09 +00:00
Matthias Clasen
b43a41e77a Don't return a list of NULLs. (#325723, Steve Chaplin)
2006-01-04  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkuimanager.c (gtk_ui_manager_get_toplevels): Don't return
	a list of NULLs.  (#325723, Steve Chaplin)
2006-01-04 15:32:05 +00:00
Rodrigo Moya
cfe00e5709 guard against multiplying by -1 (when n_args is 0).
2006-01-04  Rodrigo Moya <rodrigo@novell.com>

	* gtk/gtkbindings.c (binding_signal_new): guard against multiplying
	by -1 (when n_args is 0).
2006-01-04 12:38:06 +00:00
Michael Natterer
51517c1a72 use gtk_menu_attach_to_widget() and gtk_menu_detach() instead of
2006-01-04  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkmenutoolbutton.c
	(gtk_menu_tool_button_set_menu)
	(gtk_menu_tool_button_destroy): use gtk_menu_attach_to_widget()
	and gtk_menu_detach() instead of reffing/unreffing the menu
	manually. Also fixes brokenness on screen change (bug #85715).
2006-01-04 11:25:19 +00:00