Commit Graph

7224 Commits

Author SHA1 Message Date
Emmanuele Bassi
64ee947f42 Fix declaration of GtkNotebook::create_window()
GtkNotebook::create_window() was declared as returning a GtkNotebook
instead of a pointer to a GtkNotebook. (#446513, Kazuki Iwamoto)

svn path=/trunk/; revision=18103
2007-06-11 20:59:19 +00:00
Matthias Clasen
d090fe423b Accept class names starting with lowercase letters for style property
2007-06-10  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkrc.c (gtk_rc_parse_style): Accept class names starting
        with lowercase letters for style property assignments, since
        GType accepts these too, and gtkmm uses such class names.  (#343012,
        Murray Cumming, Johannes Schmid)


svn path=/trunk/; revision=18101
2007-06-11 04:45:18 +00:00
Matthias Clasen
fff5939da5 Store cursor_hadjustment as object data
svn path=/trunk/; revision=18100
2007-06-11 04:41:55 +00:00
Matthias Clasen
3c89a6b47c Don't leak cursor_hadjustment
svn path=/trunk/; revision=18099
2007-06-11 03:51:31 +00:00
Emmanuele Bassi
9b43c45d26 Define GNU libc symbols unconditionally
Unconditionally define _GNU_SOURCE and XOPEN_SOURCE, in order to make
the simple search engine backend build on really ancient GNU libc
(see bug 444097), which have ftw.h but need those symbols defined even
to export a POSIX-like ftw() and friends.

svn path=/trunk/; revision=18096
2007-06-10 17:25:16 +00:00
Emmanuele Bassi
2c18665743 Fix code style and warts in GtkScaleButton
This patch fixes the code style inconsistencies and some weird bits of
the GtkScaleButton widget implementation.

svn path=/trunk/; revision=18092
2007-06-10 15:32:02 +00:00
Matthias Clasen
08cc834061 Update docs Deprecate gtk_widget_{ref,unref}
2007-06-09  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkwidget.c:
        * gtk/gtkscrolledwindow.c: Update docs
        * gtk/gtkwidget.h: Deprecate gtk_widget_{ref,unref}

        * gtk/tmpl/gtkbindings.sgml:
        * gtk/tmpl/gtkrc.sgml:
        * gtk/tmpl/gtkwidget.sgml:
        * gtk/tmpl/gtkrecentmanager.sgml:
        * gtk/*.sgml:
        * gtk/tmpl/gtkstock.sgml:
        * gtk/gtk-sections.txt: Updates



svn path=/trunk/; revision=18090
2007-06-10 06:52:51 +00:00
Matthias Clasen
19f4715cee Some doc updates
svn path=/trunk/; revision=18089
2007-06-10 02:53:17 +00:00
Matthias Clasen
0d7f4951d1 Add an icons property, make gtk_scale_button_new() a convenience function.
2007-06-09  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkscalebutton.c: Add an icons property, make
        gtk_scale_button_new() a convenience function.  (#445855,
        Murray Cumming)



svn path=/trunk/; revision=18088
2007-06-10 01:26:28 +00:00
Matthias Clasen
08d065b500 Cosmetic change
svn path=/trunk/; revision=18087
2007-06-10 00:13:11 +00:00
Matthias Clasen
387ed45e9e Handle return values from nl_langinfo() more correctly.
2007-06-09  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkcalendar.c (gtk_calendar_init): Handle return values
        from nl_langinfo() more correctly.



svn path=/trunk/; revision=18085
2007-06-08 18:39:29 +00:00
Carlos Garnacho
705d6545e5 initialize rc_priv in the else branch too. (#445539)
2007-06-09  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkrc.c (gtk_rc_parse_engine): initialize rc_priv in the else
        branch too. (#445539)


svn path=/trunk/; revision=18084
2007-06-08 16:28:52 +00:00
Benjamin Berg
8a267fa7c9 Fix shadow painting if the scrollbars-within-bevel style property is set
2007-06-08  Benjamin Berg  <benjamin@sipsolutions.net>

	* gtk/gtkscrolledwindow.c: (gtk_scrolled_window_paint):
	Fix shadow painting if the scrollbars-within-bevel style property is
	set and border_width is nozero. (#445054)

svn path=/trunk/; revision=18082
2007-06-08 12:32:02 +00:00
Matthias Clasen
3c49e2ef62 Make it possible for theme engines to support symbolic colors. (#426192,
2007-06-08  Matthias Clasen  <mclasen@redhat.com>

        Make it possible for theme engines to support symbolic 
        colors.  (#426192, Andrea Cimitan, patch by Olivier Samyn)

        * gtk/gtk.symbols:
        * gtk/gtkrc.h:
        * gtk/gtkrc.c (gtk_rc_parse_color_full): Export this function

        * gtk/gtkrc.c (gtk_rc_parse_engine): Copy color hashes
        to new style before parsing engine section.

svn path=/trunk/; revision=18081
2007-06-08 05:02:13 +00:00
Matthias Clasen
8210544708 Fix a typo
svn path=/trunk/; revision=18076
2007-06-07 18:03:57 +00:00
Christian Neumair
a0295692d3 Add GTK_STOCK_DISCARD, #158008.
2007-06-07  Christian Neumair  <cneumair@gnome.org>

	* gtk/gtkstock.[ch]: Add GTK_STOCK_DISCARD, #158008.

svn path=/trunk/; revision=18075
2007-06-07 15:07:55 +00:00
Matthias Clasen
5dfb5b23ed Documentation additions
svn path=/trunk/; revision=18074
2007-06-07 06:19:15 +00:00
Matthias Clasen
1689390414 Add this file
svn path=/trunk/; revision=18073
2007-06-07 06:10:49 +00:00
Matthias Clasen
15cf60ae6d Add a doc comment
svn path=/trunk/; revision=18072
2007-06-07 06:09:43 +00:00
Matthias Clasen
232f30f1ba Use g_get_user_special_dir() to obtain the path for the DESKTOP directory.
2007-06-06  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilechooserbutton.c (model_add_special):
        * gtk/gtkfilechooserdefault.c (shortcuts_append_desktop):
        * gtk/gtkfilesystemunix.c (get_icon_name_for_directory):
        * gtk/gtkpathbar.c (_gtk_path_bar_set_file_system):
        Use g_get_user_special_dir() to obtain the path for the
        DESKTOP directory.

svn path=/trunk/; revision=18070
2007-06-07 04:23:10 +00:00
Matthias Clasen
ba95b0598b Add the 16x16 version of gtk-select-color.png to the list of stock icons.
2007-06-06  Matthias Clasen  <mclasen@redhat.com>

        * gtk/Makefile.am: Add the 16x16 version of gtk-select-color.png
        to the list of stock icons.  (#444786)



svn path=/trunk/; revision=18069
2007-06-07 03:27:32 +00:00
Kristian Rietveld
633cd695f6 add text-[xy]align properties for aligning the text label of the progress
2007-06-06  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_init),
	(gtk_cell_renderer_progress_class_init),
	(gtk_cell_renderer_progress_[gs]et_property),
	(gtk_cell_renderer_progress_render): add text-[xy]align properties
	for aligning the text label of the progress bar.  (#334576,
	suggestion from Steven Sheehy).


svn path=/trunk/; revision=18068
2007-06-06 20:27:15 +00:00
Yevgen Muntyan
2cbaeadf43 new method, gtk_widget_modify_cursor() (#89314).
2007-06-06  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtk/gtkwidget.c:
	* gtk/gtkwidget.h: new method, gtk_widget_modify_cursor() (#89314).

	* gtkrc.c:
	* gtkrc.h: new functions _gtk_rc_style_set_rc_property() and
	_gtk_rc_style_unset_rc_property().

	* gtk/gtk.symbols: added gtk_widget_modify_cursor.

	* tests/testtext.c (do_cursor_visible_changed):
	* tests/testgtk.c (create_styles): test it.


svn path=/trunk/; revision=18066
2007-06-06 19:43:31 +00:00
Emmanuele Bassi
f74c473299 Factor out the search shortcut, the recently used shortcut and the
2007-06-06  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkfilechooserdefault.c:
	(get_file_info_finished), (shortcuts_insert_path),
	(shortcuts_add_bookmarks), (shortcuts_add_current_folder): Factor
	out the search shortcut, the recently used shortcut and the separator
	from the shortcut selection combo. (#444734)

	(recent_idle_load): Remove the idle source that lazily loads the
	recently used files, if the GtkRecentManager returns an empty
	list. (#443913)

svn path=/trunk/; revision=18063
2007-06-06 16:07:03 +00:00
Johan Dahlin
bf5df2271f reviewed by: Matthias Clasen <mclasen@redhat.com>
2007-06-06  Johan Dahlin  <jdahlin@async.com.br>

    reviewed by: Matthias Clasen <mclasen@redhat.com>
    
    * gtk/gtkassistant.c (gtk_assistant_update_buttons_state): 
    Check if the wizard is empty before trying to access the first page.
    (#444310, Johan Dahlin)


svn path=/trunk/; revision=18060
2007-06-06 14:24:31 +00:00
Matthias Clasen
9c9e5dab9f 2.11.2
svn path=/trunk/; revision=18057
2007-06-06 13:40:24 +00:00
Kristian Rietveld
d09216f35b use GTK_IS_TREE_VIEW_COLUMN() in g_return_if_fail here.
2007-06-06  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_queue_resize): use
	GTK_IS_TREE_VIEW_COLUMN() in g_return_if_fail here.


svn path=/trunk/; revision=18054
2007-06-06 12:56:13 +00:00
Kristian Rietveld
8c07c5b129 new function. (#342471, Lorenzo Gil Sanchez).
2007-06-06  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreeviewcolumn.[ch] (gtk_tree_view_column_get_tree_view): new
	function.  (#342471, Lorenzo Gil Sanchez).

	* gtk/gtk.symbols: updated.


svn path=/trunk/; revision=18053
2007-06-06 12:54:35 +00:00
Kristian Rietveld
38b0ef28b0 remove unused call to gtk_widget_size_request(). (Reported by Carlos
2007-06-06  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktooltip.c (gtk_tooltip_paint_window): remove unused
	call to gtk_widget_size_request().  (Reported by Carlos
	Garnacho).


svn path=/trunk/; revision=18052
2007-06-06 12:33:08 +00:00
Kristian Rietveld
97af2e0063 bail out if last_window is not a GdkWindow anymore. (Fixes #434021,
2007-06-06  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktooltip.c (gtk_tooltip_show_tooltip): bail out if
	last_window is not a GdkWindow anymore. (Fixes #434021, several
	reporters).


svn path=/trunk/; revision=18051
2007-06-06 12:28:50 +00:00
Kristian Rietveld
1598526f5c also remove the auto expand timeout if it exists.
2007-06-06  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreeview.c (gtk_tree_view_unrealize): also remove the
	auto expand timeout if it exists.


svn path=/trunk/; revision=18048
2007-06-06 08:54:30 +00:00
Jakub Steiner
2105398a55 drop the paper sheet. d is used for search, rather than find within a
2007-06-05  Jakub Steiner <jimmac@ximian.com>

* gtk/stock-icons/{16,24}/gtk-find*: drop the paper sheet.
d is used for search, rather than find within a document
dialog).

svn path=/trunk/; revision=18042
2007-06-05 10:49:06 +00:00
Kristian Rietveld
21b381a2e2 Fix #399071, suggestion from Benoit Dejean.
2007-06-05  Kristian Rietveld  <kris@gtk.org>

	Fix #399071, suggestion from Benoit Dejean.

	* gtk/gtkliststore.[ch] (gtk_list_store_set_vector_internal): new
	function, factored out code iterating (columns, values) vectors from
	gtk_list_store_new_with_valuesv to here,
	(gtk_list_store_set_valuesv): new public function to set list store
	values using (columns, values) vectors,
	(gtk_list_store_new_with_valuesv): call new _set_vector_internal
	instead.

	* gtk/gtktreestore.[ch] (gtk_tree_store_set_vector_internal),
	(gtk_tree_store_set_valuesv), (gtk_tree_store_new_with_valuesv):
	likewise.

	* gtk/gtk.symbols: updated.


svn path=/trunk/; revision=18041
2007-06-04 23:48:38 +00:00
Cody Russell
5a01ec8551 gtk/gtklinkbutton.h Change function argument "link" to "link_" to fix
2007-06-04  Cody Russell  <bratsche@gnome.org>

        * gtk/gtklinkbutton.h
        * gtk/gtkaboutdialog.h: Change function argument "link"
        to "link_" to fix warnings for applications compiling      
        with -Wshadow. (#379213)


svn path=/trunk/; revision=18033
2007-06-04 18:57:55 +00:00
Cody Russell
ea8f3758dd Check if down_button is NULL. This happens when the pathbar button for the
2007-06-04  Cody Russell  <bratsche@gnome.org>

        * gtk/gtkpathbar.c (gtk_path_bar_scroll_down): Check
        if down_button is NULL.  This happens when the pathbar button
        for the current directory is too large to fit in the
        space, e.g. on Windows for directories named something like
        "My Documents and Settings".


svn path=/trunk/; revision=18030
2007-06-04 18:17:14 +00:00
Matthias Clasen
0f4d0f8e62 2.11.1
svn path=/trunk/; revision=18027
2007-06-04 17:01:14 +00:00
Michael Natterer
e631aef881 Move "move-focus" signals from several widgets to GtkWidget to enable more
2007-06-04  Michael Natterer  <mitch@imendio.com>

	Move "move-focus" signals from several widgets to GtkWidget to
	enable more flexible costomization of keyboard navigation via
	bindings. Fixes bug #414947.

	* gtk/gtkwidget.c: add "move-focus" binding signal, default to
	calling the toplevel GtkWindow's "move-focus" vfunc.

	* gtk/gtktextview.[ch]
	* gtk/gtkwindow.[ch]: remove "move-focus" signals and add compat
	code that makes sure that both emitting the signal on the widget
	and overriding the virtual functions keeps working as before.

	* gtk/gtktoolbar.c: remove "move-focus" signal here too and use
	GtkWidget's signal. This change slightly changes keyboard
	navigation in toolbars. I'll fix the behavior if somebody can
	explain me if and how exactly the new behavior is broken.


svn path=/trunk/; revision=18025
2007-06-04 15:00:22 +00:00
Matthias Clasen
17df875136 Add a create-window signal that allows to override the global
2007-06-04  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkmarshalers.list:
        * gtk/gtknotebook.[hc]: Add a create-window signal that allows
        to override the global create-window-hook on a per-notebook
        basis. The default handler falls back to the global hook.
        (#386935, Christian Hammond)


svn path=/trunk/; revision=18024
2007-06-04 14:39:56 +00:00
Emmanuele Bassi
9191e01b70 Revert previous commit; the API is not yet finalized - see bug #166995.
2007-06-04  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkradiobutton.[ch]:
	* gtk/gtk.symbols:
	* tests/testgtk.c: Revert previous commit; the API is not yet
	finalized - see bug #166995.

svn path=/trunk/; revision=18023
2007-06-04 14:37:17 +00:00
Emmanuele Bassi
1fff6b4fbd Add gtk_radio_button_set_value(), gtk_radio_button_get_current_value() and
2007-06-04  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkradiobutton.h:
	* gtk/gtkradiobutton.c:
	* gtk/gtk.symbols: Add gtk_radio_button_set_value(),
	gtk_radio_button_get_current_value() and gtk_radio_button_get_value().
	Use these functions to set and get an arbitrary integer associated to
	a GtkRadioButton in a group, like the value associated to a
	GtkRadioAction.

	* tests/testgtk.c:
	(create_radio_buttons), (radio_toggled_cb): Exercise the new API.

svn path=/trunk/; revision=18019
2007-06-03 23:39:43 +00:00
Torsten Schönfeld
5b12bfdad2 Initialize unthemed_icon to NULL to avoid accessing uninitialized memory
* gtk/gtkicontheme.c (choose_icon): Initialize unthemed_icon to NULL
	to avoid accessing uninitialized memory when
	gtk_icon_theme_choose_icon() is called with an empty names list.

svn path=/trunk/; revision=18018
2007-06-03 20:44:10 +00:00
Matthias Clasen
5962480827 Fix typo
svn path=/trunk/; revision=18013
2007-06-03 04:56:00 +00:00
Xan Lopez
fbfc884e0a Remove g_return_if_fail checks from private functions.
svn path=/trunk/; revision=18010
2007-06-03 04:28:16 +00:00
Xan Lopez
96a53e9bc0 The page num parameter is unused is redundant and unused in
the the switch_page and real_switch_page functions.

svn path=/trunk/; revision=18009
2007-06-03 04:27:56 +00:00
Matthias Clasen
ea1adbdd99 Forgotten file
svn path=/trunk/; revision=18008
2007-06-02 11:41:24 +00:00
Michael Natterer
62c13f0463 don't switch submenu opening direction for overlapping reasons if there is
2007-06-01  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): don't switch
	submenu opening direction for overlapping reasons if there is even
	less space on the other side (bug #441863, Tommi Komulainen).


svn path=/trunk/; revision=18002
2007-06-01 11:02:11 +00:00
Michael Natterer
f667ed1996 change fix for #347883 to not obfuscate the code.
2007-06-01  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfilechooserdialog.c (response_cb): change fix for #347883
	to not obfuscate the code.


svn path=/trunk/; revision=18001
2007-06-01 08:19:12 +00:00
Yevgen Muntyan
8f4aa8c6d7 Avoid recreating pangolayouts in GtkTextView on cursor movement (#435405,
2007-06-01  Yevgen Muntyan  <muntyan@tamu.edu>

	Avoid recreating pangolayouts in GtkTextView on cursor movement
	(#435405, Behdad Esfahbod).

	* gtk/gtktextlayout.c:
	* gtk/gtktextlayout.h: new GtkTextLayout method invalidate_cursors(),
	and functions gtk_text_layout_invalidate_cursors() and
	gtk_text_layout_cursors_changed(), to use when invalidation is due
	to moved marks or changed selection.

	* gtk/gtktextbtree.c:
	* gtk/gtktextbtree.h: use what's appropriate when invalidating layout.

	* gtk/gtk.symbols: add new functions.

	* README.in: added a note about changed GtkTextLayout API.


svn path=/trunk/; revision=18000
2007-06-01 06:25:43 +00:00
Yevgen Muntyan
405df7f7db use text colors from widget style to draw cursor instead of hardcoded
2007-05-31  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtk/gtkstyle.c (get_insertion_cursor_gc): use text colors from
	widget style to draw cursor instead of hardcoded black and grey
	(#79585, comment #30).


svn path=/trunk/; revision=17998
2007-06-01 05:02:05 +00:00
Kristian Rietveld
5fc26ddab7 transform the ink_rect using pango_extents_to_pixels to avoid rounding
2007-06-01  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcellrenderertext.c (get_size): transform the ink_rect using
	pango_extents_to_pixels to avoid rounding errors.  (Fixes #430218,
	Shlomi Israel).


svn path=/trunk/; revision=17996
2007-05-31 22:21:55 +00:00