Commit Graph

8374 Commits

Author SHA1 Message Date
Tim Janik
8a2fac3040 Fix indentation of a comment.
svn path=/trunk/; revision=20626
2008-06-20 11:10:20 +00:00
Tim Janik
bf2323b1de Change docs and signature of gtk_widget_get_allocation
svn path=/trunk/; revision=20625
2008-06-20 11:10:14 +00:00
Tim Janik
1a13990f6e Remove unneeded GtkColorSelectionDialog accessors
svn path=/trunk/; revision=20624
2008-06-20 11:10:08 +00:00
Tim Janik
dcbc5d021f Fix documentaion of gtk_menu_item_get_accel_path
svn path=/trunk/; revision=20623
2008-06-20 11:10:02 +00:00
Tim Janik
886ffbe067 Fix gtk_widget_get_allocation
svn path=/trunk/; revision=20622
2008-06-20 11:09:56 +00:00
Tim Janik
cd19149ad5 Switch to "guint GSEAL (foo) : width;" when packing fields in guints.
* gtk/gtkbox.h:
* gtk/gtkbutton.h:
* gtk/gtkcellrenderer.h:
* gtk/gtkcellrenderertext.h:
* gtk/gtkcheckmenuitem.h:
* gtk/gtkcontainer.h:
* gtk/gtkentry.h:
* gtk/gtkhandlebox.h:
* gtk/gtkimcontextsimple.h:
* gtk/gtklabel.h:
* gtk/gtkliststore.h:
* gtk/gtkmenu.h:
* gtk/gtkmenuitem.h:
* gtk/gtkmenushell.h:
* gtk/gtknotebook.h:
* gtk/gtkpaned.h:
* gtk/gtkplug.h:
* gtk/gtkprintjob.h:
* gtk/gtkprogressbar.h:
* gtk/gtkrange.h:
* gtk/gtkscale.h:
* gtk/gtkscrolledwindow.h:
* gtk/gtksizegroup.h:
* gtk/gtksocket.h:
* gtk/gtkspinbutton.h:
* gtk/gtkstatusbar.h:
* gtk/gtktable.h:
* gtk/gtktearoffmenuitem.h:
* gtk/gtktextbuffer.h:
* gtk/gtktextview.h:
* gtk/gtktogglebutton.h:
* gtk/gtktoolbar.h:
* gtk/gtktreestore.h:
* gtk/gtktreeviewcolumn.h:
* gtk/gtkwindow.h: Do not specify width inside GSEAL() when packing fields in guints.

svn path=/trunk/; revision=20621
2008-06-20 11:09:49 +00:00
Tim Janik
10896d4874 Seal GtkWidget
svn path=/trunk/; revision=20620
2008-06-20 11:09:42 +00:00
Tim Janik
161f29ca55 Seal GtkSelectionData
svn path=/trunk/; revision=20619
2008-06-20 11:09:36 +00:00
Tim Janik
847b87eb9f Fix GtkDialog, don't add vbox via gtk_container_add.
svn path=/trunk/; revision=20618
2008-06-20 11:09:30 +00:00
Tim Janik
094446d242 Make GtkCellRenderer::editing read-only. (Catched by Matthias)
svn path=/trunk/; revision=20617
2008-06-20 11:09:24 +00:00
Tim Janik
4c9b51f176 Seal GtkTextView.
svn path=/trunk/; revision=20616
2008-06-20 11:09:19 +00:00
Tim Janik
7fa935eb30 Seal GtkFontSelection & GtkFontSelectionDialog
svn path=/trunk/; revision=20615
2008-06-20 11:09:13 +00:00
Tim Janik
159edce905 Seal GtkTearoffMenuItem.
(the torn_off field is for internal state keeping, you can retrieve
the value from the parent menu's tearoff_state).

svn path=/trunk/; revision=20614
2008-06-20 11:09:08 +00:00
Tim Janik
1a1e048b4a Seal GtkObject
svn path=/trunk/; revision=20613
2008-06-20 11:09:02 +00:00
Tim Janik
50cd12d394 Seal GtkRange
svn path=/trunk/; revision=20612
2008-06-20 11:08:57 +00:00
Tim Janik
7d5da3f8cc Seal GtkPlug
svn path=/trunk/; revision=20611
2008-06-20 11:08:51 +00:00
Tim Janik
a66946e2a5 Seal GtkMenuItem
svn path=/trunk/; revision=20610
2008-06-20 11:08:45 +00:00
Tim Janik
f1f95ef71d Seal GtkMenuShell
svn path=/trunk/; revision=20609
2008-06-20 11:08:39 +00:00
Tim Janik
2fddfb496e Seal GtkInputDialog
svn path=/trunk/; revision=20608
2008-06-20 11:08:34 +00:00
Tim Janik
b0a42b3d78 Seal GtkIMMultiContext
svn path=/trunk/; revision=20607
2008-06-20 11:08:29 +00:00
Tim Janik
78ea6d1dc0 Seal GtkIMContextSimple
svn path=/trunk/; revision=20606
2008-06-20 11:08:23 +00:00
Tim Janik
b3ac47493e Seal GtkImage
svn path=/trunk/; revision=20605
2008-06-20 11:08:18 +00:00
Tim Janik
f40470a362 Seal GtkSocket
svn path=/trunk/; revision=20604
2008-06-20 11:08:13 +00:00
Tim Janik
c9b24c8817 Fix the build by including gdkconfig.h in gtkprinter.h.
svn path=/trunk/; revision=20603
2008-06-20 11:08:07 +00:00
Tim Janik
412e3072a1 Seal GtkGammaCurve
svn path=/trunk/; revision=20602
2008-06-20 11:08:02 +00:00
Tim Janik
1fae5f6303 Seal GtkHandleBox
svn path=/trunk/; revision=20601
2008-06-20 11:07:56 +00:00
Tim Janik
21e079f9a0 Seal GtkInvisible.
svn path=/trunk/; revision=20600
2008-06-20 11:07:50 +00:00
Tim Janik
9908eab771 Seal GtkPrintJob.
svn path=/trunk/; revision=20599
2008-06-20 11:07:45 +00:00
Tim Janik
ad8fcdd70a Seal GtkTextBuffer.
svn path=/trunk/; revision=20598
2008-06-20 11:07:40 +00:00
Tim Janik
e368c4972d Seal GtkSpinButton.
svn path=/trunk/; revision=20597
2008-06-20 11:07:35 +00:00
Tim Janik
ed884a132a Seal GtkTable.
svn path=/trunk/; revision=20596
2008-06-20 11:07:29 +00:00
Tim Janik
3378ee8ace Seal GtkRuler.
svn path=/trunk/; revision=20595
2008-06-20 11:07:24 +00:00
Tim Janik
f22e16307a Seal GtkStatusBar.
svn path=/trunk/; revision=20594
2008-06-20 11:07:19 +00:00
Tim Janik
5dfb53a9c6 Seal GtkTextMark.
svn path=/trunk/; revision=20593
2008-06-20 11:07:14 +00:00
Tim Janik
34148e552b Seal GtkTextTagTable.
svn path=/trunk/; revision=20592
2008-06-20 11:07:08 +00:00
Tim Janik
d3fdd57627 Seal GtkViewPort.
svn path=/trunk/; revision=20591
2008-06-20 11:07:03 +00:00
Tim Janik
95d2e86ee0 Seal GtkSettings.h
svn path=/trunk/; revision=20590
2008-06-20 11:06:58 +00:00
Tim Janik
f61c311176 Seal GtkMenu
svn path=/trunk/; revision=20589
2008-06-20 11:06:52 +00:00
Tim Janik
f79c213b33 Seal GtkLayout
svn path=/trunk/; revision=20588
2008-06-20 11:06:46 +00:00
Tim Janik
6ed334c3de Seal priv pointer in GtkToggleToolButton.
svn path=/trunk/; revision=20587
2008-06-20 11:06:40 +00:00
Tim Janik
f2e6883cd0 Seal priv pointer in GtkUIManager.
svn path=/trunk/; revision=20586
2008-06-20 11:06:35 +00:00
Tim Janik
8fce681653 Seal priv pointer in GtkToolItem.
svn path=/trunk/; revision=20585
2008-06-20 11:06:30 +00:00
Tim Janik
c5d557cf7c Seal priv pointer in GtkToolButton.
svn path=/trunk/; revision=20584
2008-06-20 11:06:25 +00:00
Tim Janik
a0865471e8 Seal priv pointer in GtkToggleAction.
svn path=/trunk/; revision=20583
2008-06-20 11:06:20 +00:00
Tim Janik
a64822742d Seal priv pointer in GtkStatusIcon.
svn path=/trunk/; revision=20582
2008-06-20 11:06:14 +00:00
Tim Janik
b0e2c53e0a Seal priv pointer in GtkSeparatorToolItem.
svn path=/trunk/; revision=20581
2008-06-20 11:06:09 +00:00
Tim Janik
82ab66057f Seal priv pointer in GtkScaleButton.
svn path=/trunk/; revision=20580
2008-06-20 11:06:04 +00:00
Tim Janik
79043f1e27 Seal priv pointer in GtkRecentManager.
svn path=/trunk/; revision=20579
2008-06-20 11:05:59 +00:00
Tim Janik
0155de729c Seal priv pointer in GtkRecentChooserWidget.
svn path=/trunk/; revision=20578
2008-06-20 11:05:53 +00:00
Tim Janik
e481c64df0 Seal priv pointer in GtkRecentChooserMenu.
svn path=/trunk/; revision=20577
2008-06-20 11:05:48 +00:00
Tim Janik
a4ce0b6caa Seal priv pointer in GtkRecentChooserDialog.
svn path=/trunk/; revision=20576
2008-06-20 11:05:43 +00:00
Tim Janik
7c1ed17d79 Seal priv pointer in GtkRecentAction.
svn path=/trunk/; revision=20575
2008-06-20 11:05:37 +00:00
Tim Janik
4778163777 Seal priv pointer in GtkRadioAction.
svn path=/trunk/; revision=20574
2008-06-20 11:05:32 +00:00
Tim Janik
63752366a6 Seal priv pointer in GtkPrintUnixDialog.
svn path=/trunk/; revision=20573
2008-06-20 11:05:27 +00:00
Tim Janik
cedbe79537 Seal priv pointer in GtkPrintOperation.
svn path=/trunk/; revision=20572
2008-06-20 11:05:21 +00:00
Tim Janik
ed2f8eedec Seal priv pointer in GtkPrinter.
svn path=/trunk/; revision=20571
2008-06-20 11:05:16 +00:00
Tim Janik
87943a277b Seal priv pointer in GtkPageSetupUnixDialog.
svn path=/trunk/; revision=20570
2008-06-20 11:05:11 +00:00
Tim Janik
4e730b98bf Seal priv pointer in GtkMenuToolButton.
svn path=/trunk/; revision=20569
2008-06-20 11:05:05 +00:00
Tim Janik
ac13b9a60d Add gdkconfig.h include to GtkBuilder for GSEAL macro.
svn path=/trunk/; revision=20568
2008-06-20 11:05:00 +00:00
Tim Janik
6867021640 Seal priv pointer in GtkLinkButton.
svn path=/trunk/; revision=20567
2008-06-20 11:04:55 +00:00
Tim Janik
2c8add817a Seal priv pointer in GtkIconView.
svn path=/trunk/; revision=20566
2008-06-20 11:04:50 +00:00
Tim Janik
33b19ed8ab Seal priv pointer in GtkIconTheme.
svn path=/trunk/; revision=20565
2008-06-20 11:04:45 +00:00
Tim Janik
370226aa9f Seal child_allocation field in GtkFrame.
svn path=/trunk/; revision=20564
2008-06-20 11:04:39 +00:00
Tim Janik
ded819caa9 Sealed priv pointer in GtkFontButton.
svn path=/trunk/; revision=20563
2008-06-20 11:04:34 +00:00
Tim Janik
0c19c584d8 Seal priv pointer in GtkFileChooserButton.
svn path=/trunk/; revision=20562
2008-06-20 11:04:29 +00:00
Tim Janik
fa16b40f56 Seal priv pointer in GtkExpander.
svn path=/trunk/; revision=20561
2008-06-20 11:04:23 +00:00
Tim Janik
ebdc9e8221 Sealed remaining (private) fields in GtkContainer.
svn path=/trunk/; revision=20560
2008-06-20 11:04:18 +00:00
Tim Janik
eee3432191 Seal priv pointer in GtkComboBoxEntry.
svn path=/trunk/; revision=20559
2008-06-20 11:04:13 +00:00
Tim Janik
e5fa194d70 Seal priv pointer in GtkComboBox.
svn path=/trunk/; revision=20558
2008-06-20 11:04:08 +00:00
Tim Janik
5eafc584ec Seal private_data pointer in GtkColorSel.
svn path=/trunk/; revision=20557
2008-06-20 11:04:03 +00:00
Tim Janik
7f4da5ab85 Seal 3 remaining fields in GtkButton.
svn path=/trunk/; revision=20556
2008-06-20 11:03:57 +00:00
Tim Janik
361f91f018 Seal priv pointer in GtkBuilder.
svn path=/trunk/; revision=20555
2008-06-20 11:03:52 +00:00
Tim Janik
f96da4bec5 Seal center_allocation field in GtkAspectFrame.
svn path=/trunk/; revision=20554
2008-06-20 11:03:47 +00:00
Tim Janik
d060126961 Seal priv pointer in GtkAction.
svn path=/trunk/; revision=20553
2008-06-20 11:03:42 +00:00
Tim Janik
f5e718b985 Seal priv pointer in GtkAboutDialog.
svn path=/trunk/; revision=20552
2008-06-20 11:03:36 +00:00
Tim Janik
3d2531e624 Seal GtkSizeGroup.
svn path=/trunk/; revision=20551
2008-06-20 11:03:31 +00:00
Tim Janik
e2b7eafd44 Seal GtkPaned.
svn path=/trunk/; revision=20550
2008-06-20 11:03:25 +00:00
Tim Janik
00dab379da Set the Since: values in the API docs to GSEAL-branch for the newly added accessors/properties.
svn path=/trunk/; revision=20549
2008-06-20 11:03:20 +00:00
Tim Janik
bf45ec46a6 Add new GtkColorSelectionDialog accessors to gtk.symbols.
svn path=/trunk/; revision=20548
2008-06-20 11:03:14 +00:00
Tim Janik
8697184d32 gtklabel.h: include bit-size of fields inside GSEAL parens.
svn path=/trunk/; revision=20547
2008-06-20 11:03:09 +00:00
Tim Janik
2974a7ce1f gtktoolbar.h: include bit-size of fields inside GSEAL parens.
svn path=/trunk/; revision=20546
2008-06-20 11:03:03 +00:00
Tim Janik
b2b1dbc121 gtkentry.h: include bit-size of fields inside GSEAL parens.
svn path=/trunk/; revision=20545
2008-06-20 11:02:58 +00:00
Tim Janik
bdc28ff2d1 Add new accessors for GtkEntry to gtk.symbols.
svn path=/trunk/; revision=20544
2008-06-20 11:02:52 +00:00
Tim Janik
f62acc13db Also seal GtkWindowGroup in gtkwindow.h
svn path=/trunk/; revision=20543
2008-06-20 11:02:46 +00:00
Tim Janik
dc35b5ed5e Fix the build by including gdkconfig.h in gtktextchild.h.
svn path=/trunk/; revision=20542
2008-06-20 11:02:41 +00:00
Tim Janik
9dcddb61dc Seal GtkLabel
svn path=/trunk/; revision=20541
2008-06-20 11:02:36 +00:00
Tim Janik
ba917629a4 Seal GtkToolbar
svn path=/trunk/; revision=20540
2008-06-20 11:02:30 +00:00
Tim Janik
19431e8b51 Seal GtkColorSelectionDialog
svn path=/trunk/; revision=20539
2008-06-20 11:02:25 +00:00
Tim Janik
a04318013f Seal GtkTextChildAnchor.
* gtk/gtktextchild.h: Sealed private member.

svn path=/trunk/; revision=20538
2008-06-20 11:02:19 +00:00
Tim Janik
9135675bfd Seal GtkWindow.
* gtk/gtkwindow.h: Seal all fields.

svn path=/trunk/; revision=20537
2008-06-20 11:02:14 +00:00
Tim Janik
26153af8af Add gtk_window_get_default()
* gtk/gtkwindow.[ch]: Add gtk_window_get_default().
* gtk/gtk.symbols: same here.

svn path=/trunk/; revision=20536
2008-06-20 11:02:08 +00:00
Tim Janik
5f1120a0b0 Seal GtkAccelGroup - fixed some issues with the initial attempt thanks to comments from Tim
svn path=/trunk/; revision=20535
2008-06-20 11:02:02 +00:00
Tim Janik
49b07b9460 Seal GtkEntry
svn path=/trunk/; revision=20534
2008-06-20 11:01:56 +00:00
Tim Janik
66e81271ac Seal GtkContainer - fixed Carlos' missing gtk_container_get_focus_child() header declaration
svn path=/trunk/; revision=20533
2008-06-20 11:01:50 +00:00
Tim Janik
891fba9dc8 Seal GtkToggleButton.
* gtk/gtktogglebutton.h: Seal all member fields.

svn path=/trunk/; revision=20532
2008-06-20 11:01:45 +00:00
Tim Janik
1a52d49b15 Seal GtkTreeViewColumn.
* gtk/gtktreeviewcolumn.h: Seal all public member fields.  The button field is
still troublesome.  We are probably going to need an accessor for this and
deprecated it immediately in GTK+ 3.0.  Accessors for requested_width and
resized_width can be useful, but I really consider them to be private and
of not much use to applications.

svn path=/trunk/; revision=20531
2008-06-20 11:01:40 +00:00
Tim Janik
a0782663f6 Seal GtkRadioMenuItem.
* gtk/gtkradiomenuitem.h: Seal member field.

svn path=/trunk/; revision=20530
2008-06-20 11:01:35 +00:00
Tim Janik
a346897fc5 Seal GtkRadioButton.
* gtk/gtkradiobutton.h: seal member field.

svn path=/trunk/; revision=20529
2008-06-20 11:01:29 +00:00
Tim Janik
4e1a46ebc3 Seal GtkTreeSelection.
* gtk/gtktreeselection.h: Seal all member fields.

svn path=/trunk/; revision=20528
2008-06-20 11:01:24 +00:00
Tim Janik
1ba7f437bc Add gtk_tree_selection_get_select_function().
* gtk/gtktreeselection.[ch] (gtk_tree_selection_get_select_function): new
function.
* gtk/gtk.symbols: add new function.

svn path=/trunk/; revision=20527
2008-06-20 11:01:18 +00:00
Tim Janik
2ff111071d Seal GtkScrolledWindow.
* gtk/gtkscrolledwindow.h: Seal all object member fields.

svn path=/trunk/; revision=20526
2008-06-20 11:01:13 +00:00
Tim Janik
2bb1cc877d Seal GtkCellRenderer.
* gtk/gtkcellrenderer.h: seal all member fields.  All member fields are
already accessible via GObject properties.

svn path=/trunk/; revision=20525
2008-06-20 11:01:07 +00:00
Tim Janik
d0852ad65c Add "editing" GObject property to GtkCellRenderer.
* gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init),
(gtk_cell_renderer_get_property),
(gtk_cell_renderer_set_property): add the property and hook
it up.

svn path=/trunk/; revision=20524
2008-06-20 11:01:02 +00:00
Tim Janik
a734a9bca1 Seal GtkCellRendererText.
* gtk/gtkcellrenderertext.h: seal all member fields (all of them were already
marked as private).

svn path=/trunk/; revision=20523
2008-06-20 11:00:57 +00:00
Tim Janik
50659b66dc Seal GtkCellRendererCombo.
* gtk/gtkcellrenderercombo.h: seal all member fields.  The members fields
that were not marked as private are already accessible via GObject properties.

svn path=/trunk/; revision=20522
2008-06-20 11:00:52 +00:00
Tim Janik
30c563a5ce Seal GtkCellRendererAccel.
* gtk/gtkcellrendereraccel.h: seal all member fields that were already
marked as private.

svn path=/trunk/; revision=20521
2008-06-20 11:00:46 +00:00
Tim Janik
c6bcd622f5 Seal GtkTreeView
* gtk/gtktreeview.h: seal private pointer.

svn path=/trunk/; revision=20520
2008-06-20 11:00:41 +00:00
Tim Janik
0e5b2302aa Seal GtkTreeModelFilter
* gtk/gtktreemodelfilter.h: include gdkconfig.h for GSEAL, seal private
pointer.

svn path=/trunk/; revision=20519
2008-06-20 11:00:35 +00:00
Tim Janik
78218ceccf Seal GtkTreeModelSort
* gtk/gtktreemodelsort.h: include gdkconfig.h to get GSEAL defined, seal
all public member fields.

svn path=/trunk/; revision=20518
2008-06-20 11:00:30 +00:00
Tim Janik
33ef105c6a Seal GtkTreeStore
* gtk/gtktreestore.h: include gdkconfig.h to get GSEAL defined, seal
public member fields.

svn path=/trunk/; revision=20517
2008-06-20 11:00:25 +00:00
Tim Janik
b4dafcbe6a Seal GtkListStore
* gtk/gtkliststore.h: include gdkconfig.h to get GSEAL defined; seal
public member fields.

svn path=/trunk/; revision=20516
2008-06-20 11:00:20 +00:00
Tim Janik
b2b2e6431e add accessor.
* gtk/gtkcontainer.c (gtk_container_get_focus_child): add accessor.

svn path=/trunk/; revision=20515
2008-06-20 11:00:12 +00:00
Tim Janik
2a10964008 seal members.
* gtk/gtkcontainer.h: seal members.

svn path=/trunk/; revision=20514
2008-06-20 11:00:06 +00:00
Tim Janik
36112dccd4 seal members.
* gtk/gtkmisc.h: seal members.

svn path=/trunk/; revision=20513
2008-06-20 10:59:58 +00:00
Tim Janik
6e1e3c5942 *gtk/gtkfixed.h: seal members.
svn path=/trunk/; revision=20512
2008-06-20 10:59:53 +00:00
Tim Janik
2c8371202a seal all members.
* gtk/gtkcellrendererpixbuf.h: seal all members.

svn path=/trunk/; revision=20511
2008-06-20 10:59:48 +00:00
Tim Janik
03a27c861d seal private member.
* gtk/gtkcellrendererprogress.h: seal private member.

svn path=/trunk/; revision=20510
2008-06-20 10:59:43 +00:00
Tim Janik
cf839d82c8 seal all members.
* gtk/gtkcellrenderertoggle.h: seal all members.

svn path=/trunk/; revision=20509
2008-06-20 10:59:38 +00:00
Tim Janik
d8bd3aecc8 Seal the private member.
* gtk/gtkfilechooserwidget.h: Seal the private member.

svn path=/trunk/; revision=20508
2008-06-20 10:59:32 +00:00
Tim Janik
2d63684418 gtk/gtkfilechooserdialog.h: seal the private member.
svn path=/trunk/; revision=20507
2008-06-20 10:59:27 +00:00
Tim Janik
84086c1e07 Seal private member.
* gtk/gtkentrycompletion.h: Seal private member.

svn path=/trunk/; revision=20506
2008-06-20 10:59:22 +00:00
Tim Janik
7b287e64bc Seal the private member.
* gtk/gtkcellview.h: Seal the private member.

svn path=/trunk/; revision=20505
2008-06-20 10:59:17 +00:00
Tim Janik
5d0c759d3d seal private member.
* gtk/gtkcolorbutton.h: seal private member.

svn path=/trunk/; revision=20504
2008-06-20 10:59:11 +00:00
Tim Janik
fd807d45be seal public struct members.
* gtk/gtkcheckmenuitem.h: seal public struct members.

svn path=/trunk/; revision=20503
2008-06-20 10:59:06 +00:00
Tim Janik
4c323f5716 seal public struct members.
* gtk/gtkcalendar.h: seal public struct members.

svn path=/trunk/; revision=20502
2008-06-20 10:59:01 +00:00
Tim Janik
fa1e2eb009 Also seal variables marked as private.
* gtk/gtkdialog.h: Also seal variables marked as private.

svn path=/trunk/; revision=20501
2008-06-20 10:58:55 +00:00
Tim Janik
d0b16c1151 seal private member.
* gtk/gtkimagemenuitem.h: seal private member.

svn path=/trunk/; revision=20500
2008-06-20 10:58:50 +00:00
Tim Janik
db9b3c138e seal private member.
* gtk/gtkiconfactory.h: seal private member.

svn path=/trunk/; revision=20499
2008-06-20 10:58:45 +00:00
Tim Janik
868135e879 Seal GtkActionGroup
* gtk/gtkactiongroup.[ch]: Use GSEAL macro on ->private_data public
  member and clean up .c file to reflect this.

svn path=/trunk/; revision=20498
2008-06-20 10:58:40 +00:00
Tim Janik
9f58854b06 Seal GtkAccelLabel
gtk/gtkaccellabel.h: deprecate direct field access to GtkAccelLabel fields

svn path=/trunk/; revision=20497
2008-06-20 10:58:34 +00:00
Tim Janik
1ebf1af100 seal instance struct member.
* gtk/gtkdrawingarea.h: seal instance struct member.

svn path=/trunk/; revision=20496
2008-06-20 10:58:29 +00:00
Tim Janik
9cc14da90c Seal GtkScaleButton public fields
* gtk/gtkscalebutton.h: Deprecate direct access through GSEAL().

svn path=/trunk/; revision=20495
2008-06-20 10:58:23 +00:00
Tim Janik
133ebd1c47 Seal GtkScale public fields
* gtk/gtkscale.h: Deprecate direct access through GSEAL().

svn path=/trunk/; revision=20494
2008-06-20 10:58:18 +00:00
Tim Janik
9fd6a33aed Seal GtkProgressBar public fields
svn path=/trunk/; revision=20493
2008-06-20 10:58:13 +00:00
Tim Janik
171adb0a1d Seal GtkFrame public vars
svn path=/trunk/; revision=20492
2008-06-20 10:58:07 +00:00
Tim Janik
81acd2e7be Deprecate direct access to public variables in GtkButton.
* gtk/gtkbutton.h: Deprecate direct access through GSEAL().

svn path=/trunk/; revision=20491
2008-06-20 10:58:02 +00:00
Tim Janik
6c365eba73 Deprecate direct access to public variables in GtkButtonBox.
* gtk/gtkbbox.h: Deprecate direct access through GSEAL().

svn path=/trunk/; revision=20490
2008-06-20 10:57:57 +00:00
Tim Janik
fe53ab75bb Deprecate direct access to public variables in GtkBox.
* gtk/gtkbox.h: Deprecate direct access through GSEAL().

svn path=/trunk/; revision=20489
2008-06-20 10:57:52 +00:00
Tim Janik
acea4faf74 Seal GtkMessageDialog public vars
svn path=/trunk/; revision=20488
2008-06-20 10:57:46 +00:00
Tim Janik
b3c47333f3 Seal GtkDialog public vars
svn path=/trunk/; revision=20487
2008-06-20 10:57:41 +00:00
Tim Janik
b15ca51c35 Add accessors for GtkDialog public vars, also implement GtkContainer::add/remove
svn path=/trunk/; revision=20486
2008-06-20 10:57:35 +00:00
Tim Janik
112f03938c Seal GtkAssistant public fields
svn path=/trunk/; revision=20485
2008-06-20 10:57:29 +00:00
Tim Janik
12b99bbd64 Seal GtkNotebook public fields
svn path=/trunk/; revision=20484
2008-06-20 10:57:23 +00:00
Tim Janik
bde0b4458f Deprecate direct access to child in GtkBin.
* gtk/gtkbin.h: Deprecate direct access to child by GSEAL.

svn path=/trunk/; revision=20483
2008-06-20 10:57:18 +00:00
Tim Janik
2436a762e4 Sealed GtkAccelGroup and added
* gtk/gtkaccelgroup.[ch]: Added GObject properties for lock_count,
  modifier_mask, acceleratables, n_accels and priv_accels. Added seal
  macro for public struct members which should be private.

svn path=/trunk/; revision=20482
2008-06-20 10:57:08 +00:00
Tim Janik
2aa3a83bd4 Deprecate xalign, yalign, ratio and obey_child direct access in GtkAspectFrame.
* gtk/gtkaspectframe.h: Deprecate public object fields by GSEAL.

svn path=/trunk/; revision=20481
2008-06-20 10:57:01 +00:00
Tim Janik
e8cb6e4a8c Deprecate arrow_type and shadow_type direct access in GtkArrow.
* gtk/gtkarrow.h: Deprecate public object fields by GSEAL.

svn path=/trunk/; revision=20480
2008-06-20 10:56:55 +00:00
Tim Janik
b345e36f97 Added GSEAL to GtkAlignment.
* gtk/gtkalignment.h: Seal the object data with GSEAL.

svn path=/trunk/; revision=20479
2008-06-20 10:56:50 +00:00
Michael Natterer
2ba736d775 Bug 538395 – gtk_combo_box_append_text() on non-compliant model
2008-06-20  Michael Natterer  <mitch@imendio.com>

	Bug 538395 – gtk_combo_box_append_text() on non-compliant model
	segfaults

	* gtk/gtkcombobox.c (gtk_combo_box_append_text)
	(gtk_combo_box_insert_text)
	(gtk_combo_box_prepend_text)
	(gtk_combo_box_remove_text)
	(gtk_combo_box_real_get_active_text): apply patch from Christian
	Dywan which adds the needed g_return_if_fail() to prevent the
	crashes.


svn path=/trunk/; revision=20477
2008-06-20 10:00:40 +00:00
Johan Dahlin
9276cf5a06 Remove svn:executable property
svn path=/trunk/; revision=20475
2008-06-19 20:40:06 +00:00
Johan Dahlin
a4617da3bd Remove executable property
svn path=/trunk/; revision=20474
2008-06-19 20:36:01 +00:00
Johan Dahlin
234dc3726f remove an unused variable and cast accel_path to gchar, just like in
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkmenuitem.c: remove an unused variable and cast
    accel_path to gchar, just like in gtkmenu.c


svn path=/trunk/; revision=20473
2008-06-19 19:09:50 +00:00
Matthias Clasen
e1c47e2ee0 Use GIO for this.
* gtk/gtkrecentmanager.c (get_icon_for_mime_type): Use GIO
        for this.

svn path=/trunk/; revision=20472
2008-06-19 19:04:22 +00:00
Johan Dahlin
2a5a00646d Fix a typo in a comment
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkprintbackend.c: Fix a typo in a comment


svn path=/trunk/; revision=20471
2008-06-19 17:42:14 +00:00
Johan Dahlin
8aa6c973d8 Cast buf to unsigned char to avoid two compiler warnings.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkhsv.c (paint_ring, paint_triangle):
    Cast buf to unsigned char to avoid two compiler
    warnings.


svn path=/trunk/; revision=20470
2008-06-19 14:19:34 +00:00
Johan Dahlin
ce811f7cec Do not ignore the return value of g_slist_remove. gtkstyle.c changes
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkclist.c:
    * gtk/gtkstyle.c (gtk_style_finalize):
    Do not ignore the return value of g_slist_remove.
    gtkstyle.c changes rubberstamped by Owen.


svn path=/trunk/; revision=20469
2008-06-19 14:08:59 +00:00
Johan Dahlin
9678ce2eb9 gdk_gc_set_dashes expects a list of gint8, not guint8.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtktreeview.c (gtk_tree_view_set_grid_lines),
    (gtk_tree_view_set_enable_tree_lines):
    gdk_gc_set_dashes expects a list of gint8, not guint8.


svn path=/trunk/; revision=20468
2008-06-19 14:07:28 +00:00
Johan Dahlin
6ef2f57450 Remove an unused variable and cast to gchar to avoid a compiler warning.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkmenu.c (gtk_menu_set_accel_path):
    Remove an unused variable and cast to gchar to avoid a compiler
    warning.


svn path=/trunk/; revision=20467
2008-06-19 13:43:51 +00:00
Christian Persch
c9e85e48f8 Add clipboard convenience helpers for URIs. Bug #537639.
svn path=/trunk/; revision=20465
2008-06-19 12:55:57 +00:00
Christian Persch
a58a173b48 Use gtk_drag_[dest|source]_add_[text|uri]_targets(), and simplify code. Bug #516092.
svn path=/trunk/; revision=20464
2008-06-19 12:52:40 +00:00
Christian Persch
446f41757b Use g_set_error_literal where appropriate. Bug #538640.
svn path=/trunk/; revision=20463
2008-06-19 12:47:48 +00:00
Johan Dahlin
1a30e12586 Use g_object_new instead of gtk_widget_new
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * demos/testpixbuf.c (new_testrgb_window):
    * gtk/gtkctree.c (gtk_ctree_new_with_titles):
    * gtk/gtkitemfactory.c (gtk_item_factory_construct),
    (gtk_item_factory_create_item):
    * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
    * gtk/gtkprogressbar.c (gtk_progress_bar_new),
    (gtk_progress_bar_new_with_adjustment):
    * gtk/gtkscrolledwindow.c (gtk_scrolled_window_new):
    * gtk/gtktext.c (gtk_text_new):
    * gtk/gtkviewport.c (gtk_viewport_new):
    * tests/simple.c (main):
    * tests/testgtk.c (create_statusbar), (create_get_image),
    (create_saved_position), (create_tooltips), (create_cursors),
    (create_display_screen), (create_progress_bar), (create_idle_test):
    * tests/testmultidisplay.c (make_selection_dialog), (main):
    * tests/testmultiscreen.c (main):
    * tests/testrgb.c (new_testrgb_window):
    Use g_object_new instead of gtk_widget_new


svn path=/trunk/; revision=20462
2008-06-19 12:25:19 +00:00
Johan Dahlin
a14ce91e91 Remove an unused prototype.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkcellrendererpixbuf.c: Remove an unused prototype.


svn path=/trunk/; revision=20461
2008-06-19 12:16:44 +00:00
Johan Dahlin
cafd4ffab2 Remove an unused variable.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtklabel.c (gtk_label_set_text_with_mnemonic): Remove
    an unused variable.


svn path=/trunk/; revision=20460
2008-06-19 12:15:55 +00:00
Johan Dahlin
94e207777d Use GdkModifierType instedd of guint, to avoid a gcc warning.
2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkactiongroup.c: Use GdkModifierType instedd of guint,
    to avoid a gcc warning.


svn path=/trunk/; revision=20459
2008-06-19 12:15:07 +00:00
Olle Bergkvist
ad54e22fc7 bgo538784 - Don't change the filename entry in CREATE_FOLDER mode
2008-06-18  Olle Bergkvist <olle.bergkvist@yahoo.se>

	http://bugzilla.gnome.org/show_bug.cgi?id=538784 - Don't change
	the filename in the name entry in CREATE_FOLDER mode when changing
	folders, so that you can enter a new subfolder name, double-click on a
	folder to change to it, and close the dialog.

	* gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
	the filename in the entry in CREATE_FOLDER mode, either.

Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=20457
2008-06-18 22:35:32 +00:00
Olle Bergkvist
666b544ddd bgo419737 - Don't clear filename entry in SAVE/CREATE_FOLDER modes
2008-06-18  Olle Bergkvist <olle.bergkvist@yahoo.se>

	http://bugzilla.gnome.org/show_bug.cgi?id=419737#c59 - The file
	chooser clears the filename entry in SAVE/CREATE_FOLDER modes when
	it shouldn't.

	* gtk/gtkfilechooserdefault.c (shortcuts_activate_iter): Don't
	clear the entry for CREATE_FOLDER either; this needs the same
	behavior as SAVE mode.
	(update_chooser_entry): Only clear the entry in OPEN/SELECT_FOLDER
	modes.

Signed-off-by: Federico Mena Quintero <federico@novell.com>

svn path=/trunk/; revision=20455
2008-06-18 22:23:39 +00:00
Matthias Clasen
d217ec4f90 Use standard icon names.
2008-06-18  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilesystem.c (_gtk_file_system_volume_render_icon):
        * gtk/gtkfilechooserbutton.c (change_icon_theme):
        (model_add_bookmarks):
        (model_update_current_folder):
        * gtk/gtkfilechooserdefault.c (shortcuts_insert_file):
        (shortcuts_reload_icons): Use standard icon names.


svn path=/trunk/; revision=20454
2008-06-18 16:22:42 +00:00
Matthias Clasen
ad7fccfd96 Add some more standard icon names
svn path=/trunk/; revision=20453
2008-06-18 16:14:59 +00:00
Michael Natterer
09e8017c91 set the maximum of the "year" property to G_MAXINT >> 8 instead of
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkcalendar.c: set the maximum of the "year" property to
	G_MAXINT >> 8 instead of G_MAXINT to fix overflows in internal
	calculations which in turn caused writing beyond the boundaries of
	the calendar->day_month[] and day[] arrays which in turn caused a
	SEGV. This limits the lifetime of GTK+ to the year 8,388,608 ;)


svn path=/trunk/; revision=20452
2008-06-18 15:42:27 +00:00
Michael Natterer
d5565f5b63 tests/Makefile.am tests/autotestfilechooser.c tests/buildertest.c
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* tests/Makefile.am
	* tests/autotestfilechooser.c
	* tests/buildertest.c
	* tests/defaultvaluetest.c
	* tests/floatingtest.c
	* tests/objecttests.c
	* tests/pixbuf-init.c
	* tests/textbuffertest.c: remove unit tests here...

	* gtk/tests/Makefile.am
	* gtk/tests/builder.c
	* gtk/tests/defaultvalue.c
	* gtk/tests/filechooser.c
	* gtk/tests/floating.c
	* gtk/tests/object.c
	* gtk/tests/pixbuf-init.c
	* gtk/tests/textbuffer.c: ...and add them here.


svn path=/trunk/; revision=20450
2008-06-18 13:29:02 +00:00
Michael Natterer
67c6c28fe0 deprecate GdkDestroyNotify.
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* gdk/gdk.h: deprecate GdkDestroyNotify.

	* gdk/gdkevents.c
	* gdk/gdktypes.h
	* gdk/x11/gdkevents-x11.c
	* gtk/gtkmain.c: s/GdkDestroyNotify/GDestroyNotify/g.


svn path=/trunk/; revision=20449
2008-06-18 09:39:24 +00:00
Michael Natterer
fe8a946e87 deprecate GtkDestroyNotify.
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.h: deprecate GtkDestroyNotify.

	* gtk/gtkactiongroup.[ch]
	* gtk/gtkcombobox.[ch]
	* gtk/gtkcontainer.[ch]
	* gtk/gtkliststore.[ch]
	* gtk/gtkmain.[ch]
	* gtk/gtkmenu.c
	* gtk/gtkstock.[ch]
	* gtk/gtktreedatalist.[ch]
	* gtk/gtktreemodelfilter.[ch]
	* gtk/gtktreemodelsort.[ch]
	* gtk/gtktreeprivate.h
	* gtk/gtktreeselection.[ch]
	* gtk/gtktreesortable.[ch]
	* gtk/gtktreestore.[ch]
	* gtk/gtktreeview.[ch]
	* gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g.


svn path=/trunk/; revision=20448
2008-06-18 09:12:32 +00:00
Michael Natterer
9d21042702 deprecate GtkType, GtkSignalFunc and GTK_SIGNAL_FUNC().
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.h: deprecate GtkType, GtkSignalFunc and
	GTK_SIGNAL_FUNC().

	(struct GtkArg): s/GtkType/GType/ and s/GtkSignalFunc/GCallback/


svn path=/trunk/; revision=20446
2008-06-18 08:26:53 +00:00
Michael Natterer
73800758fd deprecate gtk_type_class().
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.[ch]: deprecate gtk_type_class().

	* gtk/gtk.symbols: changed accordingly.

	* gtk/gtksettings.c (gtk_settings_install_property)
	(gtk_settings_install_property_parser): get rid of using
	gtk_type_class() by keeping a static reference to GtkSettingsClass
	around in both functions and passing that pointer on to
	settings_install_property_parser().

	* tests/testgtk.c: use g_type_class_ref()/unref() instead of
	gtk_type_class().

	* gtk/gtkobject.c: #undef GTK_DISABLE_DEPRECATED around including
	gtktypeutils.h.


svn path=/trunk/; revision=20444
2008-06-18 07:00:46 +00:00
Johan Dahlin
78c88e77d6 Add deprecated version and change the deprecation markup used by ref/unref
2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkstyle.c: Add deprecated version
    and change the deprecation markup used by ref/unref 


svn path=/trunk/; revision=20443
2008-06-18 01:42:13 +00:00
Johan Dahlin
7c45f6f5fc Add deprecated versions and fixup markup.
2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkwidget.c: 
    Add deprecated versions and fixup markup.


svn path=/trunk/; revision=20442
2008-06-18 01:31:22 +00:00
Johan Dahlin
12934f6841 Don't markup deprecated in italics.
2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkaboutdialog.c:
    * gtk/gtkbutton.c (gtk_button_class_init):
    Don't markup deprecated in italics.


svn path=/trunk/; revision=20441
2008-06-18 01:19:53 +00:00
Carlos Garnacho
6bb24bf6c8 Remove GtkFileSystemError, use GtkFileChooserError instead. (#538378,
2008-06-18  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkfilesystem.[ch]: Remove GtkFileSystemError, use
        GtkFileChooserError instead. (#538378, patch by Matthias Clasen)

svn path=/trunk/; revision=20440
2008-06-17 23:33:48 +00:00
Michael Natterer
07bf0bdb94 remove bogus extern declaration of non-existing function
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkobject.c: remove bogus extern declaration of non-existing
	function gtk_object_init_type().


svn path=/trunk/; revision=20438
2008-06-17 21:34:15 +00:00
Michael Natterer
554e1eec70 s/GtkType/GType/
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkbindings.c (gtk_binding_entry_add_signal):
	* gtk/gtktoolbutton.c (gtk_tool_button_get_type): 
	* examples/gtkdial/gtkdial.h (gtk_dial_get_type): 
	s/GtkType/GType/


svn path=/trunk/; revision=20436
2008-06-17 20:43:07 +00:00
Tor Lillqvist
293ed565ee Need to do the GTK_DISABLE_DEPRECATED #undef/#define dance here, too,
2008-06-17  Tor Lillqvist  <tml@novell.com>

	* gtk/gtknotebook.c: Need to do the GTK_DISABLE_DEPRECATED
	#undef/#define dance here, too, because
	gtk_notebook_set_group_id() is deprecated but used here before it
	is defined, and gcc complains about conflicting type from the
	implicit int declaration when it sees the actual void definition.


svn path=/trunk/; revision=20435
2008-06-17 19:29:22 +00:00
Michael Natterer
bd69ea0a7c build with GTK_DISABLE_DEPRECATED.
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/Makefile.am: build with GTK_DISABLE_DEPRECATED.

	* gtk/gtkclist.c
	* gtk/gtkcombo.c
	* gtk/gtkctree.c
	* gtk/gtklist.c
	* gtk/gtklistitem.c
	* gtk/gtkoldeditable.c
	* gtk/gtkpixmap.c
	* gtk/gtktext.c
	* gtk/gtktipsquery.c
	* gtk/gtktree.c
	* gtk/gtktreeitem.c: whenever we #undef GTK_DISABLE_DEPRECATED and
	actually use deprecated symbols (not just types or macros),
	#define it again before #include "gtkalias.h" so the symbols match
	and the beast links.


svn path=/trunk/; revision=20433
2008-06-17 16:03:46 +00:00
Paolo Borelli
96d61db436 more tests for GtkRecentManager.
2008-06-17  Paolo Borelli  <pborelli@katamail.com>

	* gtk/tests/recentmanager.c: more tests for GtkRecentManager.

svn path=/trunk/; revision=20431
2008-06-17 15:46:40 +00:00
Michael Natterer
e96a880621 really move the GtkType typedef to an undeprecated section.
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.h: really move the GtkType typedef to an
	undeprecated section.


svn path=/trunk/; revision=20429
2008-06-17 14:34:59 +00:00
Michael Natterer
8676c45d5c deprecate GTK_CHECK_CAST, GTK_CHECK_CLASS_CAST, GTK_CHECK_GET_CLASS,
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.h: deprecate GTK_CHECK_CAST,	GTK_CHECK_CLASS_CAST,
	GTK_CHECK_GET_CLASS, GTK_CHECK_TYPE and GTK_CHECK_CLASS_TYPE.
	Move the GtkType typedef to an undeprecated section.


svn path=/trunk/; revision=20428
2008-06-17 14:17:29 +00:00
Michael Natterer
ea80bf6097 use G_TYPE macros for type checking instead of GTK_CHECK ones because it's
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkprogress.h: use G_TYPE macros for type checking instead
	of GTK_CHECK ones because it's the parent class of an undeprecated
	class and the GTK_CHECK stuff will soon be deprecated.


svn path=/trunk/; revision=20427
2008-06-17 14:14:06 +00:00
Michael Natterer
d6ebf18108 gtk/gtkfilesel.c gtk/gtkinputdialog.c gtk/gtkmenutoolbutton.c
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfilesel.c
	* gtk/gtkinputdialog.c
	* gtk/gtkmenutoolbutton.c
	* gtk/gtkoptionmenu.c
	* gtk/gtktoolitem.c
	* gtk/gtktooltips.c: add or move around
	#undef GTK_DISABLE_DEPRECATED so it's possible to build without
	deprecated stuff again (with the minor glitch that it doesn't
	link ;) but at least it's a tool to keep the code clean).


svn path=/trunk/; revision=20426
2008-06-17 14:11:26 +00:00
Emmanuele Bassi
21284ce95f Fix dumb typo in the previous commit.
2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentmanager.c:
	(gtk_recent_manager_remove_item): Fix dumb typo in the previous
	commit.

svn path=/trunk/; revision=20425
2008-06-17 13:46:48 +00:00
Emmanuele Bassi
8bab0d7d03 Increase the consistency of the errors returned by GtkRecentManager.
2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentmanager.c:
	(gtk_recent_manager_remove_item),
	(gtk_recent_manager_move_item): Increase the consistency of the
	errors returned by GtkRecentManager. (Paolo Borelli)

svn path=/trunk/; revision=20424
2008-06-17 13:42:53 +00:00
Paolo Borelli
72a9cc895a add some unit tests for GtkRecentManager.
2008-06-17  Paolo Borelli  <pborelli@katamail.com>

	* gtk/tests/recentmanager.c: add some unit tests for GtkRecentManager.


svn path=/trunk/; revision=20423
2008-06-17 13:37:59 +00:00
Emmanuele Bassi
88c469420d Consistently use the same error when removing a URI from an empty
2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentmanager.c:
	(gtk_recent_manager_remove_item): Consistently use the same
	error when removing a URI from an empty GtkRecentManager.

svn path=/trunk/; revision=20422
2008-06-17 13:15:45 +00:00
Michael Natterer
40b6173aa3 remove static integer variables which hold the number of members in
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkfilechooserdefault.c: remove static integer variables
	which hold the number of members in GtkTargetEntry arrays and use
	G_N_ELEMENTS() directly instead.


svn path=/trunk/; revision=20421
2008-06-17 12:54:16 +00:00
Michael Natterer
e8b84723ca move some deprecated symbols into #ifndef GTK_DISABLE_DEPRECATED.
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtk.symbols: move some deprecated symbols into
	#ifndef GTK_DISABLE_DEPRECATED.


svn path=/trunk/; revision=20420
2008-06-17 12:47:57 +00:00
Emmanuele Bassi
ea51ac13f8 Remove the GtkRecentManager screen dance, as it has been deprecated since
2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkfilechooserdefault.c:
	(gtk_file_chooser_default_init),
	(gtk_file_chooser_default_constructor),
	(gtk_file_chooser_default_screen_changed),
	(recent_start_loading): Remove the GtkRecentManager screen
	dance, as it has been deprecated since 2.12. Now we get the
	GtkRecentManager singleton whewn we create the FileChooserDefault
	instance. (Michael Natterer)

svn path=/trunk/; revision=20419
2008-06-17 12:46:12 +00:00
Michael Natterer
4d4e558efd cast menu's toplevel to GtkWindow when passing to
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkoptionmenu.c (gtk_option_menu_position): cast menu's
	toplevel to GtkWindow when passing to gtk_window_set_type_hint().


svn path=/trunk/; revision=20417
2008-06-17 11:27:37 +00:00
Michael Natterer
86f27564bd #undef GTK_DISABLE_DEPRECATED, clean up includes a bit.
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktestutils.c: #undef GTK_DISABLE_DEPRECATED, clean up
	includes a bit.

	* gtk/gtkuimanager.c: #include "gtkwindow.h", it was only pulled
	in via deprecated headers.


svn path=/trunk/; revision=20416
2008-06-17 09:58:09 +00:00
Michael Natterer
9dd2aa7edc use g_object_ref() and unref() instead of the deprecated gtk_widget_ref()
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkplug.c (_gtk_plug_send_delete_event): use g_object_ref()
	and unref() instead of the deprecated gtk_widget_ref() and unref().


svn path=/trunk/; revision=20411
2008-06-16 22:47:50 +00:00
Michael Natterer
a09bebd5b9 removed function drag_begin_cb(), which was in svn since 2.8 but was never
2008-06-16  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkentry.c: removed function drag_begin_cb(), which was in
	svn since 2.8 but was never used.


svn path=/trunk/; revision=20409
2008-06-16 20:10:17 +00:00
Michael Natterer
f5f865d43c use gtk_binding_entry_clear() instead of gtk_binding_entry_add() (the
2008-06-16  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkbindings.c (_gtk_binding_entry_add_signall): use
	gtk_binding_entry_clear() instead of gtk_binding_entry_add()
	(the former is deprecated and #defined to gtk_binding_entry_clear)


svn path=/trunk/; revision=20408
2008-06-16 20:02:33 +00:00