Lines Matching defs:private
175 GimpSpinScalePrivate *private = GET_PRIVATE (scale);
187 private->gamma = 1.0;
188 private->focusWidget = NULL;
189 private->transferFocus = FALSE;
190 private->appearanceMode = APPEARANCE_COMPACT;
196 GimpSpinScalePrivate *private = GET_PRIVATE (object);
198 if (private->layout)
200 g_object_unref (private->layout);
201 private->layout = NULL;
210 GimpSpinScalePrivate *private = GET_PRIVATE (object);
212 if (private->label)
214 g_free (private->label);
215 private->label = NULL;
227 GimpSpinScalePrivate *private = GET_PRIVATE (object);
239 private->focusWidget = GTK_WIDGET (g_value_get_pointer (value));
255 GimpSpinScalePrivate *private = GET_PRIVATE (object);
265 g_value_set_pointer (value, private->focusWidget);
278 GimpSpinScalePrivate *private = GET_PRIVATE (scale);
282 private->focusWidget = widget;
288 GimpSpinScalePrivate *private = GET_PRIVATE (widget);
291 private->appearanceMode = APPEARANCE_FULL;
293 private->appearanceMode = APPEARANCE_COMPACT;
303 GimpSpinScalePrivate *private = GET_PRIVATE (widget);
315 if (private->label)
363 GimpSpinScalePrivate *private = GET_PRIVATE (widget);
377 if (private->appearanceMode == APPEARANCE_COMPACT) {
383 if (private->label)
405 GimpSpinScalePrivate *private = GET_PRIVATE (widget);
409 if (private->layout)
411 g_object_unref (private->layout);
412 private->layout = NULL;
426 GimpSpinScalePrivate *private = GET_PRIVATE (widget);
454 if (private->label)
460 if (private->label &&
498 if (! private->layout)
500 private->layout = gtk_widget_create_pango_layout (widget,
501 private->label);
502 pango_layout_set_ellipsize (private->layout, PANGO_ELLIPSIZE_END);
505 pango_layout_set_width (private->layout,
512 pango_layout_get_pixel_extents (private->layout, NULL, &logical);
600 pango_cairo_show_layout (cr, private->layout);
614 pango_cairo_show_layout (cr, private->layout);
749 GimpSpinScalePrivate *private = GET_PRIVATE (scale);
751 if (private->scale_limits_set)
753 *lower = private->scale_lower;
754 *upper = private->scale_upper;
770 GimpSpinScalePrivate *private = GET_PRIVATE (widget);
801 if (private->relative_change)
815 diff = x - (text_area.width - private->start_x);
817 diff = x - (width - private->start_x);
820 diff = x - private->start_x;
822 value = (private->start_value + diff * step);
835 fraction = pow (fraction, private->gamma);
847 GimpSpinScalePrivate *private = GET_PRIVATE (widget);
849 private->changing_value = FALSE;
850 private->relative_change = FALSE;
860 private->changing_value = TRUE;
869 private->changing_value = TRUE;
873 private->relative_change = TRUE;
874 private->start_x = x;
875 private->start_value = gtk_adjustment_get_value (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (widget)));
888 private->changing_value = TRUE;
897 private->changing_value = TRUE;
901 private->relative_change = TRUE;
902 private->start_x = event->x;
903 private->start_value = gtk_adjustment_get_value (gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (widget)));
920 GimpSpinScalePrivate *private = GET_PRIVATE (widget);
929 if (private->changing_value)
931 private->changing_value = FALSE;
947 GimpSpinScalePrivate *private = GET_PRIVATE (widget);
959 if (private->changing_value)
1032 GimpSpinScalePrivate *private = GET_PRIVATE (widget);
1044 private->transferFocus = TRUE;
1057 GimpSpinScalePrivate *private = GET_PRIVATE (spin_button);
1059 if ( private->transferFocus ) {
1060 if ( private->focusWidget ) {
1061 gtk_widget_grab_focus( private->focusWidget );
1070 GimpSpinScalePrivate *private = GET_PRIVATE (spin_button);
1081 1.0 / private->gamma));
1111 GimpSpinScalePrivate *private;
1115 private = GET_PRIVATE (scale);
1117 if (label == private->label)
1120 g_free (private->label);
1121 private->label = g_strdup (label);
1123 if (private->layout)
1125 g_object_unref (private->layout);
1126 private->layout = NULL;
1147 GimpSpinScalePrivate *private;
1153 private = GET_PRIVATE (scale);
1160 private->scale_limits_set = TRUE;
1161 private->scale_lower = lower;
1162 private->scale_upper = upper;
1163 private->gamma = 1.0;
1171 GimpSpinScalePrivate *private;
1175 private = GET_PRIVATE (scale);
1177 private->scale_limits_set = FALSE;
1178 private->scale_lower = 0.0;
1179 private->scale_upper = 0.0;
1189 GimpSpinScalePrivate *private;
1193 private = GET_PRIVATE (scale);
1196 *lower = private->scale_lower;
1199 *upper = private->scale_upper;
1201 return private->scale_limits_set;
1208 GimpSpinScalePrivate *private;
1212 private = GET_PRIVATE (scale);
1214 private->gamma = gamma;