Mercurial > vim
comparison src/gui_gtk_f.c @ 15967:ddd82b1c9e9d v8.1.0989
patch 8.1.0989: various small code ugliness
commit https://github.com/vim/vim/commit/bdace838c67c1bd94e55e34270a8325933891466
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 2 10:13:42 2019 +0100
patch 8.1.0989: various small code ugliness
Problem: Various small code ugliness.
Solution: Remove pointless NULL checks. Fix function calls. Fix typos.
(Dominique Pelle, closes #4060)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Mar 2019 10:15:06 +0100 |
parents | 7fad90423bd2 |
children | a1229400434a |
comparison
equal
deleted
inserted
replaced
15966:04e63da5e0b3 | 15967:ddd82b1c9e9d |
---|---|
559 { | 559 { |
560 /* To get gtk_widget_draw() to work, it is required to call | 560 /* To get gtk_widget_draw() to work, it is required to call |
561 * gtk_widget_size_allocate() in advance with a well-posed | 561 * gtk_widget_size_allocate() in advance with a well-posed |
562 * allocation for a given child widget in order to set a | 562 * allocation for a given child widget in order to set a |
563 * certain private GtkWidget variable, called | 563 * certain private GtkWidget variable, called |
564 * widget->priv->alloc_need, to the proper value; othewise, | 564 * widget->priv->alloc_need, to the proper value; otherwise, |
565 * gtk_widget_draw() fails and the relevant scrollbar won't | 565 * gtk_widget_draw() fails and the relevant scrollbar won't |
566 * appear on the screen. | 566 * appear on the screen. |
567 * | 567 * |
568 * Calling gtk_form_position_child() like this is one of ways | 568 * Calling gtk_form_position_child() like this is one of ways |
569 * to make sure of that. */ | 569 * to make sure of that. */ |