]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkmenubar.c
Require XInput2.h in X11 backend
[~andy/gtk] / gtk / gtkmenubar.c
index 428cf51fb74b3e4643bfb378e1c3c0ef5e14021f..72b0b919e19547cc3105841163cbb482057ebaa7 100644 (file)
@@ -12,9 +12,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 /*
@@ -636,15 +634,11 @@ gtk_menu_bar_draw (GtkWidget *widget,
                   cairo_t   *cr)
 {
   GtkStyleContext *context;
-  GtkStateFlags state;
   int border;
 
   border = gtk_container_get_border_width (GTK_CONTAINER (widget));
   context = gtk_widget_get_style_context (widget);
 
-  state = gtk_widget_get_state_flags (widget);
-  gtk_style_context_set_state (context, state);
-
   if (get_shadow_type (GTK_MENU_BAR (widget)) != GTK_SHADOW_NONE)
     gtk_render_background (context, cr,
                            border, border,